Questions tagged [aws-vpc]

AWS-VPC is the Virtual Private Cloud from the AWS. It enables us to create resources in the virtual network.

A virtual private cloud (VPC) is a virtual network dedicated to your AWS account. It is logically isolated from other virtual networks in the AWS Cloud. You can launch your AWS resources, such as Amazon EC2 instances, into your VPC. You can specify an IP address range for the VPC, add subnets, associate security groups, and configure route tables.

A subnet is a range of IP addresses in your VPC. You can launch AWS resources into a specified subnet. Use a public subnet for resources that must be connected to the internet, and a private subnet for resources that won't be connected to the internet.

For more information check below link :

https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html

127 questions
35
votes
5 answers

What is Destination and Target in Route table (AWS VPC)?

What is Destination and Target in Route table? I can see Destination and target can be configured to Internet gateway, is there any other use case ?
Ananda-SteelTownBoy
  • 541
  • 1
  • 6
  • 14
21
votes
3 answers

Cidr blocks AWS explanation

Can someone explain exactly how CIDR blocks work and how it translates into 0.0.0.0/32 for example? Please use laymen’s terms or perhaps even an analogy to something not network related. Can’t seems to find an explanation that clicks with me.…
Billy
  • 1,049
  • 3
  • 14
  • 23
20
votes
2 answers

How to setup IAM policy for AWS Lambda in VPC to resolve error "You are not authorized to perform: CreateNetworkInterface."

I am trying to setup my Lambda to access my Mongo server on one of the EC2 instances in VPC. After selecting all the subnets and security groups, I get the following error when saving "You are not authorized to perform: CreateNetworkInterface." I…
Chenna V
  • 10,185
  • 11
  • 77
  • 104
16
votes
1 answer

How to move an AWS subnet into a different availability zone?

I created two subnets without any preference of the availability zone(AZ). So, now I have two subnets in one AZ. I know that I can extend the VPC and create new subnets but I simply want to move a subnet into a different zone. Is there any way I can…
bot
  • 1,293
  • 3
  • 17
  • 34
14
votes
1 answer

S3 buckets are not residing in VPCs?

When we create an EC2 instance we can specify a specific VPC and a subnet of it. But when we create a S3 bucket, we only have the option to select a specific region only. Does this mean that the S3 buckets we create are residing in the default VPC…
10
votes
2 answers

Cannot Delete an AWS VPC

I want to delete an AWS VPC which I don't know how it came into existence. When I try to delete it in AWS Console, it says: We could not delete the following VPC (vpc-0a72ac71) Network interface 'eni-ce2a0d10' is currently in use. (Service:…
Kamran Bigdely
  • 7,946
  • 18
  • 66
  • 86
10
votes
1 answer

VPN clients to resolve private DNS hostnames in AWS

I've recently setup OpenVPN server on an AWS EC2 instance in order to connect my office to the AWS VPC environment. I'm using TunnelBlick as the VPN client and all is good! I can ssh to the private IPs in the VPC. However, resolving the DNS VPC…
Antonio Gomez Alvarado
  • 1,842
  • 2
  • 13
  • 24
9
votes
2 answers

How do I get my IP address from inside an ECS container running with the awsvpc network mode?

From a regular ECS container running with the bridge mode, or from a standard EC2 instance, I usually run curl http://169.254.169.254/latest/meta-data/local-ipv4 to retrieve my IP. In an ECS container running with the awsvpc network mode, I get…
wonton
  • 7,568
  • 9
  • 56
  • 93
9
votes
2 answers

AWS API Gateway Access Private Subnet

I have Public and Pvt Subnets in my VPC. I have some services running on EC2 in Pvt subnet, that needs to be accessed by external/mobile resources. How do I do this- is VPCLink and NLB the way to do it, or any other way, create some access point in…
Sam-T
  • 1,877
  • 6
  • 23
  • 51
8
votes
2 answers

How to invoke step function from a lambda which is inside a vpc?

I am trying to invoke a step function from a lambda which is inside a VPC. I get exception that HTTP request timed out. Is it possible to access step function from a lambda in a vpc? Thanks,
sujith
  • 665
  • 2
  • 9
  • 22
5
votes
1 answer

VPC Peering - Overlapping IP Ranges - Workarounds

For example, A company acquired other company that has existing AWS Cloud running production workloads and is configured with custom VPC (not the default) and the VPC IP ranges somehow overlaps with each other. The plan is to merge the two networks…
Edcel Cabrera Vista
  • 1,087
  • 1
  • 9
  • 29
5
votes
1 answer

AWS Public Subnet Internet Access for Non Public IP Instances

I have a public subnet in AWS and I have 3 instances in it ... WebApp01 (Elastic IP - 54.23.61.239 for example) WebApp02 (Private IP - 192.168.0.24) WebApp03 (Private IP - 192.168.0.25) And my route table is setup as 192.168.0.0/16 ->…
Tarunpreet Ubhi
  • 405
  • 1
  • 3
  • 18
5
votes
1 answer

AWS Application in Private EC2 and HTTP traffic

I have an application running in an EC2 instance in a private subnet (to add extra security), receiving traffic directly from an internet-facing NLB that is associated to the public subnet. I have also configured a NAT Gateway in the public subnet…
Luis
  • 595
  • 2
  • 7
  • 16
5
votes
1 answer

AWS CodeDeploy not working in private VPC

I have private Subnet inside VPC, with a routing table as follows: XX.X.0.X/16 local 0.0.0.0/0 nat-0XXXXXXXXX With above configuration AWS CodeDeploy fails with error as Error code: HEALTH_CONSTRAINTS with no log entry in…
MasterCode
  • 975
  • 5
  • 21
  • 44
5
votes
2 answers

How do I determine what a given AWS Security Group is associated with?

The AWS EC2 Security Groups documentation mentions that "Security groups for EC2-VPC have additional capabilities that aren't supported by security groups for EC2-Classic" but the Security Groups dashboard does not provide any information on the…
orome
  • 45,163
  • 57
  • 202
  • 418
1
2 3
8 9