Amazon Virtual Private Cloud (Amazon VPC) lets you provision a private, isolated section of the Amazon Web Services (AWS) Cloud where you can launch AWS resources in a virtual network that you define. With Amazon VPC, you can define a virtual network topology that closely resembles a traditional network that you might operate in your own datacenter.
Questions tagged [amazon-vpc]
2516 questions
363
votes
22 answers
EC2 instance has no public DNS
A guy I work with gave me the EC2 credentials to log onto his EC2 console. I was not the one who set it up. Some of the instances show a public dns name and others have a blank public DNS. I want to be able to connect to the instances that have a…

user1456508
- 3,761
- 2
- 15
- 11
233
votes
3 answers
AWS VPC - Internet Gateway vs. NAT
What is an Internet Gateway? What is a NAT Instance? What services do they offer?
Reading AWS VPC documentation, I gather they both map private IP addresses to internet route-able addresses for the outgoing requests and route the incoming responses…

HappyTown
- 6,036
- 8
- 38
- 51
148
votes
4 answers
Why do we need private subnet in VPC?
There are 4 scenarios in AWS VPC configure. But let's look at these two:
Scenario 1: 1 public subnet.
Scenario 2: 1 public subnet and 1 private subnet.
Since any instance launched in public subnet does not have EIP (unless it's assigned), it is…

Tommy
- 7,400
- 4
- 30
- 26
91
votes
26 answers
Issue when trying to delete VPC and Network Interface
I am trying to delete AWS VPC (a non default one). I am getting error that "We could not delete the following VPC (vpc-xxxxxxx (xx.xx.xx.x/16))
Network interface 'eni-xxxxxx' is currently in use. (Service: AmazonEC2; Status Code: 400; Error Code:…

Sujoy
- 1,186
- 1
- 9
- 12
88
votes
4 answers
What is VPC, Subnet in AWS
What are AWS VPCs (virtual private clouds)? What practical purposes do they serve? Is it mandatory to launch instances within a VPC?
What are the subnets and why are they necessary? Do subnets correspond to a particular region?

Santosh Dhanasure
- 995
- 2
- 8
- 10
86
votes
8 answers
Access AWS S3 from Lambda within VPC
Overall, I'm pretty confused by using AWS Lambda within a VPC. The problem is Lambda is timing out while trying to access an S3 bucket. The solution seems to be a VPC Endpoint.
I've added the Lambda function to a VPC so it can access an RDS hosted…

musingsole
- 1,057
- 1
- 8
- 21
80
votes
5 answers
Amazon ELB in VPC
We're using Amazon EC2, and we want to put an ELB (load balancer) to 2 instances on a private subnet. If we just add the private subnet to the ELB, it will not get any connections, if we attach both subnets to the ELB then it can access the…

Kevin Willock
- 1,912
- 1
- 13
- 16
75
votes
2 answers
Amazon ELB for EC2 instances in private subnet in VPC
I'm using Amazon EC2, and I want to put an internet-facing ELB (load balancer) to 2 instances on a private subnet. I am using VPC with public and private subnets.
If I just add the private subnet to the ELB, it will not get any connections.
If I…

Manish Singh
- 5,848
- 4
- 43
- 31
64
votes
7 answers
Can't delete AWS internet Gateway
I created an internet gateway in AWS VPC dashboard, I attached it to a VPC then I want to detach it but I keep getting this error:
Network vpc-xxxx has some mapped public adresses, Please unmap those public addresses before detaching the gateway. (…

Souad
- 4,856
- 15
- 80
- 140
63
votes
4 answers
AWS VPC identify private and public subnet
I have a VPC in AWS account and there are 5 subnets associated with that VPC. Subnets are of 2 types - Public and private. How to identify which subnet is public and which is private ? Each subnet has CIDR 10.249.?.? range.
Basically when I launch…

user1846749
- 2,165
- 3
- 23
- 36
63
votes
15 answers
EC2 t2.micro instance has no public DNS
I launched an Amazon Web Service (AWS) EC2 Instance, t2.micro, which must be launched into a VPC.
The VPC has Auto-assign Public IP set to Yes.
DNS resolution: Yes
DNS hostnames: Yes
But on the EC2 Dashboard, the instance still has a blank Public…

J21042
- 1,214
- 4
- 19
- 33
62
votes
6 answers
Should I use Amazon's AWS Virtual Private Cloud (VPC)
Currently moving to Amazon EC2 from another VPS provider. We have your typical web server / database server needs. Web servers in front of our database servers. Database servers are not directly accessible from the Internet.
I am wondering if there…

spicer
- 905
- 1
- 8
- 9
59
votes
15 answers
Can't detach network interfaces
I did the AWS misfits tutorial and I thought the cleanup would be as simple as deleting the Cloud Formation stack. However, items failed to delete so I am trying to clean them up manually to assist the Cloud Formation stack deletion.
I keep getting…

Blake Rivell
- 13,105
- 31
- 115
- 231
56
votes
6 answers
Allow AWS Lambda to access RDS Database
I am trying to connect to RDS Database from an AWS Lambda (Java).
Which IP should I enable from the RDS Security group rules?

giò
- 3,402
- 7
- 27
- 54
55
votes
6 answers
Assigning Static IP Address to AWS Load Balancer
How can I assign a static IP address to a ELB. Seems like I cannot.
Some articles online asks to create a Route 53 record but this requires changing CNAME of domain which also redirect email traffic. I just want to change A record not CNAME.
Some…

Narayan Prusty
- 2,501
- 3
- 22
- 41