Questions tagged [amazon-vpc]

Amazon Virtual Private Cloud (Amazon VPC) lets you provision a logically isolated section of the Amazon Web Services (AWS) Cloud where you can launch AWS resources in a virtual network that you define

Amazon Virtual Private Cloud (Amazon VPC) lets you provision a logically isolated section of the Amazon Web Services (AWS) Cloud where you can launch AWS resources in a virtual network that you define. For additional information, see:

747 questions
7
votes
1 answer

How can I enable outgoing HTTP/HTTPS requests on an EC2 in a public subnet within a VPC on Amazon AWS

I set up a VPC using scenario 2 from the AWS Docs: http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Scenario2.html I've assigned an Elastic IP to an EC2 instance running in a Public Subnet. SSH works fine and I can access the website…
T. Brian Jones
  • 927
  • 4
  • 17
  • 29
7
votes
2 answers

Static IP for cloudfront

Is there any way to bind static IP to my cloudfront distribution? I'm wondering if VPC can make that work. I need static IP just to eliminate the problem of allowing in my firewall everytime AWS Cloudfront IP changes.
droidlabour
  • 147
  • 1
  • 3
  • 7
7
votes
4 answers

AWS VPC internet gateway and AWS services

Am I doing something wrong or is the AWS VPC ec2 instances not able to reach any of the AWS managed services (s3/sns/sqs) without a public route to the Internet Gateway in the routetable? I was told here Aws vpc default route table in CloudFormation…
Sleeper Smith
  • 523
  • 1
  • 4
  • 11
7
votes
1 answer

Traffic in a AWS virtual private cloud

On Amazon AWS, should I encrypt sensitive traffic between instances in a virtual private cloud? More specifically, is the traffic between the instances in such a VPC private as in a virtual network, or can it be intercepted? Couldn't find this info…
arnuschky
  • 418
  • 4
  • 12
7
votes
1 answer

How do you get Redis connections working within an Amazon VPC private subnet?

I have an Amazon VPC setup with a private subnet containing 2 instances. One of them has redis running on it, the other instance I want to use to connect to the redis server. I have the redis instance listening on port 6123. When I connect locally…
Tomek
  • 215
  • 3
  • 8
6
votes
1 answer

Connecting to SMTP server from AWS Lambda

On my AWS Lambda function, my javascript code times out whenever I try to use nodemailer to connect to my Amazon SES SMTP server (port 465). However, if I run the script locally, it works fine, which leads me to believe it's either a problem with…
user68842
6
votes
2 answers

AWS: reduce nat gateway costs for a small system

I am setting up infrastructure for a startup which pretty much will not have a lot of traffic, but should be able to scale when needed. We are favouring a setup with a LB, that distributes traffic to the frontend nodes in a dedicated private subnet…
st-h
  • 257
  • 2
  • 8
6
votes
1 answer

IP Address exhaustion for lambdas in VPC

I am currently part of a group that is dealing with the repercussions of deploying 300+ AWS Lambda functions running Node.js in place of a more traditional REST API. I recently implemented an application that runs on EC2 instances in a VPC on a…
SirCapsLock
  • 63
  • 1
  • 3
6
votes
2 answers

Do you need or you don't need an IGW to get access to the internet if you create a EC2 instance with an EIP

I’m confused about Internet Gateway in AWS, if it says that in order for your VPC to access the internet you need a IGW why then when you create a EC2 instance with an EIP you automatically have access to the internet. I then have this question that…
VaTo
  • 221
  • 6
  • 22
6
votes
1 answer

Associate Elastic IP to Interface or Instance?

What advantages are there to pairing an Elastic IP (EIP) to an interface as opposed to the instance itself? I see the point of the network interfaces - you can associate and disassociate them from/to instances on-demand without losing configuration.…
6
votes
1 answer

Is it possible to split an active subnet in aws?

I created a VPC thinking I wouldn't need subnets. I just gave the vpc a CIDR range like 192.168.0.1/24 I then created a subnet which matches that exactly. Low and behold RDS requires it's own subnet. What happens if I delete the existing subnet and…
jorfus
  • 745
  • 7
  • 14
6
votes
3 answers

What is the benefit of VPC Endpoints on AWS?

I learned a long time ago that if you want an EC2 instance to be able to talk to AWS services like SQS, Kinesis and the like, the instance has to either have a public IP address or there needs to be something within the VPC doing NAT. When I first…
smitelli
  • 1,214
  • 1
  • 10
  • 16
6
votes
2 answers

Ec2 instance static private ip address

I am using an on-demand instance for testing some services in my spare time. So, I start and stop that instance very frequently, and I see its public and private IPs changing each time. This is annoying, because I always need to change hostname in…
Fabio B.
  • 299
  • 2
  • 6
  • 17
6
votes
2 answers

Amazon AWS IAM Policy for single VPC Subnet

I want to create an IAM policy that allows a user deploy instances as follows: They can only use 1 AMI They can only deploy to 1 specific VPC subnet They can only use 1 specific VPC security group This scenario is addressed in the VPC…
Garreth McDaid
  • 3,449
  • 1
  • 27
  • 42
6
votes
3 answers

Where should I setup a staging environment in Amazon VPC? And testing?

I setup the production environment for my service in an Amazon VPC in Oregon: 2 availability zones 1 public subnet (including bastion, nat, and ELBs) and 3 private subnets (database, web servers and configuration/supervision) in each availability…
MiniQuark
  • 3,875
  • 2
  • 21
  • 23