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
2
votes
2 answers

Can I have same outbound IP for multiple NAT gateways on AWS?

I have 2 AZs on my VPC. A public and a private subnet in each of them. Currently I have my application deployed on the private subnets and outbound traffic routed using a NAT Gateway on the public subnets of each AZ. The thing is that some vendors…
Bruno Lira
  • 177
  • 3
  • 13
2
votes
1 answer

In AWS, why do we keep RDS instance in Private subnet?

We need ID/PW to login and access RDS instance, then why do we keep it in Private subnet? What's the harm in putting RDS in public subnet, as anyway the RDS instance is password protected?
2
votes
1 answer

Attach multiple private subnet to route table for each terraform

I have public and private subnets established in a VPC created with for each. I am now trying to create route tables for the subnets and nat gateways specifically for access for private instances. My subnets, route tables, and public subnet…
2
votes
1 answer

How to define a private subnet in Azure

I am working on an architecture on azure where I need to create 3 private subnets where I have a bunch of vms with private address only and no public address but I want them to contact outside for updates and all but none in outside world can…
RAJAT RAWAT
  • 498
  • 7
  • 17
2
votes
0 answers

Resolve DNS name of Network Load Balancer from Lambda

I'm trying to run a lambda function to call a Fargate service that is located in a private subnet. The lambda is triggered when I insert a file in a S3 bucket. I made a Network Load Balancer (AWS::ElasticLoadBalancingV2::LoadBalancer) that listen on…
DavidCG
  • 141
  • 1
  • 1
  • 10
2
votes
2 answers

Terraform AWS subnet_id list is treated as single value string for ec2 instance

I have code to create VPC, with 2 private subnets, 2xec2 instances in private and bastion in public. ec2 code uses outputs.tf of VPC module subnet_ids. as there are 2 private subnets there are 2 subnet_ids being generated. when these generated…
2
votes
1 answer

Can we move ec2 instances from private subnet to public subnet directly?

I want to move my ec2-instances from private subnet to public subnet. Is there is a way to do that other than creating AMI of those instances and then launching new instances from those AMI's and attaching volumes and elastic ips with them?
Mukul
  • 631
  • 1
  • 8
  • 17
2
votes
0 answers

How to send ARP Packet to different subnet?

I have 2 pairs of setups. 1. OpenSuse(A) and Opensuse(B) 2. OpenSuse(C) and Centos(D) I have 3 interfaces in both the setups, all are connected internally between them. i.e, First pair has eth0,eth1,eth2 and second pair has eth0,eth1,eth2. The IP…
2
votes
1 answer

Connect to private RDS in AWS

I want to test a Docker container that run with a DB connection. That DB is a RDS DB instance in AWS but it is in a private VPC subnet. Is possible to connect to a RDS DB instance that is in a private VPC Subnet from my computer? Using a SQL Client…
gtx911
  • 1,189
  • 4
  • 25
  • 46
2
votes
1 answer

aws private subnets connectivity

I have a VPC, inside there is a public subnet and two private subnets. I configured security groups as well as route tables and I can access ES2 instances in the two private subnets from the instance in the public subnet. Now I want to know if I can…
Philip Shangguan
  • 449
  • 5
  • 19
2
votes
1 answer

cannot run ecs container on ec2 instance in private subnet

I'm trying to run the container of a service I created with AWS ECS. But the ecs agent on the EC2 instance fails to retrieve some configuration from an AWS managed s3 bucket: Failed to pull image…
Jeremie
  • 1,267
  • 12
  • 33
2
votes
1 answer

where to place web app server in AWS VPC ?

What is the best practice to place web app server in AWS VPC? In Private subnet with ELB or Public subnet? As per my understanding the best practice is to place web app server in public subnet.
2
votes
1 answer

How to setup bastion hosts for accessing EC2 instances that are in different VPCs

Currently, we have setup which uses different bastion hosts for EC2 in different VPCs. Is it possible to use only one bastion host to access all EC2 hosts which are in different VPCs by using VPC peering? Is it recommended? Did any one try it?
chandra
  • 693
  • 3
  • 8
  • 21
2
votes
1 answer

Setting up a non-default VPC with a public and a private subnet and without using the "Create VPC" wizard

I set up a non-default VPC using the "Create VPC" rather than the "Create VPC Wizard" command button on the VPC service's home page in the AWS Management Console - that's because I will eventually automate the process using CloudFormation. I set up…
1
vote
1 answer

How to check if Azure subnet's Microsoft.Storage service endpoint is currently used

As stated in the question, I would like to know how to check whether Microsoft.Storage service endpoint in a private subnet is necessary or currently being used. We have some resources that were created a long time ago, and we don't understand why…
Muerte
  • 83
  • 9
1
2
3
8 9