Questions tagged [private-subnet]

Use this tag for questions related to private subnets, i.e. subnets of a private network. A subnet is a part of a greater network/net.

This tag is used for questions related to the subnets of a (virtual) private network.

For example, one could use this tag when posting a question related to how his subnet can have Internet access.

129 questions
1
vote
2 answers

Microsoft Defender for Cloud: "Subnets should be associated with a network security group" status is Not Applicable for a private endpoints subnet

I have a subnet dedicated to private endpoints and I don't have NSG associated with this subnet. Microsoft Defender for Cloud shows that "Subnets should be associated with a network security group" status is Not Applicable for the above mentioned…
One Developer
  • 99
  • 5
  • 43
  • 103
1
vote
1 answer

Can we connect private subnet lambda to resources in public subnet?

I am connecting different AWS sources (RDS, Elasticache, EFS) in my lambda function. My AWS resources are configured in public subnets including my Lambda function. My Lambda also needs to access the internet but when we configure the lambda…
1
vote
1 answer

AWS CLI: try to write query for subnets

When listing route tables, I want to show the subnet id of all those who has more than one route, which I couldn't get it right. $ aws ec2 describe-route-tables --region us-west-2 --query 'RouteTables[*]' [ { "Associations": [ …
user180574
  • 5,681
  • 13
  • 53
  • 94
1
vote
1 answer

Can I acces RDS (MySQL) in private subnet with local Spring boot Application?

I have 3 databases (one RDS instance) in private subnet. I wanna connect my local spring boot application with RDS DB (in private subnet). I have a bastion server for checking DB. so, I wanna connect this db with my local spring boot application…
1
vote
1 answer

Fetch private subnet through name filter

I am trying to fetch private subnet-ids through aws cli. I have used this command earlier: aws ec2 describe-subnets --filters Name=vpc-id,Values=abc Name=tag:Name,Values=private --query 'Subnets[*].SubnetId' But this time I don't want to provide a…
YusufDoc
  • 55
  • 5
1
vote
0 answers

How does an ECS service communicate with a container instance which is running inside a private subnet?

Today, I was reading about the AWS container orchestration tool which is ECS. I have one question about this. If we place an Ec2 instance on a private subnet, then we require a NAT gateway so that ECS agent can provide info to the ECS service. But…
1
vote
1 answer

SageMaker: Unable to create network interface because subnet 'subnet-xxxx' does not have enough free addresses to satisfy the request

When you setup SageMaker you specify the VPC that it runs in, and any corresponding subnets. If no subnets are specified it uses 2 by default. But during the course of architecture creation it's easy to have different resources use the same subnets,…
Cybernetic
  • 12,628
  • 16
  • 93
  • 132
1
vote
1 answer

Setting up Application Load Balancer for Private Subnet EC2 instances running tomcat

I have setup a VPC with two public subnets and two private subnets. The two private subnets have two EC2 instates and each has tomcat server running on port 8080. I have set up a load balancer (terraform) as following but the health check is always…
Subbu
  • 217
  • 2
  • 11
1
vote
1 answer

google beta permissions not found terraform

I'm trying to create a reserved subnet for regional load balancer. It is the first time i'm using google-beta provider and when i try to create the subnet using the following script...: resource "google_compute_subnetwork" "proxy-subnet" { …
1
vote
0 answers

How to access EC2 in a private Subnet from the internet?

Im quite new to AWS. I have a CMS that I hosted on a EC2 inside a private subnet. I can make the EC2 access internet (EC2 TO Internet) thanks to a NAT and Internet Gateway. My question is how am I supposed to give access to users who are going to…
Lina
  • 45
  • 1
  • 7
1
vote
0 answers

Ansible inventory cannot recognize ec2 instance inside private subnet

I have a ec2 instance(without public IP) inside a private subnet. I need to do a code build via code pipeline to the above stated ec2 instance. Further, I have created a bastion host inside a public subnet. Both subnets resides in the same VPC. The…
1
vote
1 answer

AWS EIP for an instance in private subnet?

I am trying to understand why AWS allows to associate EIP for an instance in private subnet. How to make use of this EIP? Is there any possibility to access the instance using this EIP without an igw in the private subnet?
1
vote
1 answer

Creating different EC2 instances in separate AZs using for each terraform

I am trying to deploy different EC2 instances in separate AZs using terraform. I am then associating the subnets the EC2 instances are on to a route table with a NAT gateway. I am getting stuck on associating the subnets with the nat gateway on the…
Dave Michaels
  • 847
  • 1
  • 19
  • 51
1
vote
1 answer

In AWS, how do I configure SSM for an instance joined to an AWS AD Domain in a Private Subnet?

I am trying to set up SSM on Windows. I have an ASG in a private subnet (absolutely 0 internet access). I can not use NAT, only VPC endpoints. In the instance launch configuration, I have a PowerShell script that uses Set-DnsClientServerAddress so…
1
vote
1 answer

How to call an api using private ip in an ec2-instance

I have deployed an Angular app and a Java REST-API on my ec2-instance. My angular app is hitting the Java REST-API if I use a public IP, but when I provide a private IP of my instance, it throws an connection time out error. So is there any way I…
1 2
3
8 9