Questions tagged [amazon-vpc]

1

votes
1

answer
449

Views

Is it mandatory for EC2 instance in AWS VPC to have IP addresses starting with 10.0.0.0?

My networking knowledge is somewhat poor. I have created one VPC in AWS for which I have given CIRD block as "21.0.0.0/16". I have re-created network ACLs, security groups and subnets according one more VPC we have. All these settings in new and old VPC are exactly the same. Then I created bastion...
Shekhar
1

votes
1

answer
45

Views

Access AWS S3 from Lambda within Default VPC

I have a lambda function which needs to access ec2 through ssh and load files and save it to s3. So,for that I have kept ec2 and lambda both in default VPCs and same subnet. Now the problem is that I am able to connect the function to ec2 but not to s3. Its killing me since morning as when I remove...
Tanisha
0

votes
0

answer
6

Views

Subnet problem in VPC creation via cloudformation

I am a noob in networking. I am creating VPC via cloudformation. In that, I have to add 4 subnets. When I run that template it is giving me this error. Template error: Fn::Select cannot select nonexistent value at index 3 But, when I try to create with 3 subnets it gets created. My Template sample:...
ImPurshu
1

votes
2

answer
1.4k

Views

Runing multiple instances with the same, single ip address

Using Amazon VPC, what is the best possible way to attach multiple instances to a single ip address? My company needs the ability to open/shutdown instances upon request and traffic. All instances created must have the same ip address attached, as the service I try to connect to allows only certain...
Mike
1

votes
1

answer
626

Views

Is it possible to route all external requests through one elastic IP in AWS VPC Network

I have several EC2 instances which need to have a white listed IP address to talk with an external service. Is it possible to have these all route through the same Elastic IP when they make external calls using strictly AWS features (not another nginx reverse proxy server)? I need them to all go thr...
matthewdaniel
1

votes
1

answer
82

Views

Unable to get associated vpc from the hosted zones boto

I am trying to get the associated vpc id from the hosted zone but the result set does not show anything indicating a vpc id. Need help.
Sachin K
0

votes
0

answer
2

Views

Access S3 files from Datacenter over VPN to VPC

I am trying to access S3 files from non-EC2 machine. non-EC2 machine is connected to VPC over VPN, also can reach to other hosts in VPC. Created VPC Endpoint for S3 Main routing table of VPC has route for S3 pointing to VPCe (pl-68a54001 (com.amazonaws.us-west-2.s3, 54.231.160.0/19, 52.218.128.0/17,...
roy
0

votes
1

answer
80

Views

AWS Lambda potential alternatives to connect to RDS in VPC

I am using a lambda function in a VPC to connect to an RDS instance in the same VPC. I am considering removing the lambda from the VPC to massively reduce the cold-start time but I want to keep my RDS instance in the VPC. Can anyone foresee major problems with making the lambda function use an SSH t...
Will
1

votes
2

answer
1.2k

Views

How do I connect my AWS::EC2::DBSecurityGroup to my AWS::RDS::DBSecurityGroup in a VPC context?

I have this AWS::EC2::SecurityGroup: "InstanceSecurityGroup" : { "Type" : "AWS::EC2::SecurityGroup", "Properties" : { "GroupDescription" : "Enable HTTP access on the configured port", "VpcId" : { "Ref" : "VpcId" }, "SecurityGroupIngress" : [ { "IpProtocol" : "tcp", "FromPort" : { "Ref" : "WebServerP...
Mike Hogan
1

votes
4

answer
1.6k

Views

EC2: How can I get the Vpc ID of an Instance?

I am trying to find out the vpc-id of an instance. Can anyone refer to an API that would work this out? Im using the java sdk.
ihsan
1

votes
3

answer
267

Views

Amazon Web Services VPC setup

I am bit confused on the above setup. As per my understanding, inside the public subnet, there are four instances (3 webservers + 1 NAT). How come they all have public (elastic) IP addresses? Why would the webservers have public IP addresses? Shouldn't they be accessible via the NAT instance? I mea...
soupybionics
1

votes
1

answer
710

Views

Unable to connect redis server on AWS EC2 port 6379

I have two servers on EC2. One hosting my php application and other hosting my redis server. I am managing my php session and data on redis server. So on my php server I gave the ip:port as session save path and got the error FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught exception...
user2045990
1

votes
1

answer
70

Views

AWS SDK - How to set the VPC name tag using Boto3

How can I specify the VPC name tag using the AWS SDK when creating vpc? I tried a number of options as shown here but no success. Here is how I create my VPC using python, boto3 SDK. import os import boto3 import time .... .... print('Creating VPC') # Create new VPC environment vpc = client.crea...
Stryker
1

votes
1

answer
1k

Views

How to determine subnet IPv4 CIDR address in AWS?

How to determine subnet IPv4 CIDR address in AWS. Suppose my VPC CIDR block is 172.31.0.0/16 and I want to create a subnet with 172.31.1.0/16 but it says " *** is not within the range of ****/*. Please explain me how to determine CIDR?
Kamakshya
17

votes
1

answer
4.8k

Views

Using knife ec2 plugin to create VM in VPC private subnet

Although I've written a fair amount of chef, I'm fairly new to both AWS/VPC and administrating network traffic (especially a bastion host). Using the knife ec2 plugin, I would like the capability to dynamically create and bootstrap a VM from my developer workstation. The VM should be able to exist...
scubadev
1

votes
2

answer
2.4k

Views

How to open mongo port in amazon aws vpc private subnet

I setup the VPC as described here: http://docs.amazonwebservices.com/AmazonVPC/latest/UserGuide/VPC_Scenario2.html And I have a box in the private subnet, that I want to use as a mongo box. The private IP is 10.0.1.51. I can connect to mongod instance over localhost, but not over the private IP: ubu...
Victor Piousbox
2

votes
1

answer
12

Views

AWS S3 ObjectCreated triggers lambda with delay

I've configured the simple trigger for lambda, which process image up on arrive to S3. In general, the lambda triggered with minimum delay, many times in the same second when S3 received the image. But, occasionally, around 7% cases, there is a delay between image received and ObjectCreated event, t...
Kostanos
3

votes
1

answer
806

Views

Will Route53 private hosted zone work over AWS VPC Peering in two account

I have similar question as Will Route53 private hosted zone work over AWS VPC Peering but with one difference. Is it possible to setup same scenario when these two VPCs are in different Accounts? So hosted zone is in one Account with one VPC and there is second VPC but in different account (connecte...
5

votes
2

answer
1.6k

Views

How to structure AWS Elastic Beanstalk production and staging environments with web and worker tiers?

I'm planning on transfer an application from Heroku to AWS Elastic Beanstalk. On the Heroku, I have two different applications, one for staging and the other for production, and both have their web and workers dynos. I'd like to setup something like that on AWS EB. I've read the difference about We...
Ricardo Nacif
5

votes
2

answer
2.7k

Views

AWS ubuntu instance can't reach the world

I created a new ubuntu instance in AWS, I can ssh connect to it successfully. However when I try to install packages using this command, it won't work : sudo apt-get install apache2 ... ... 0% [Connecting to ap-southeast-2.ec2.archive.ubuntu.com (91.189.91.23)]^[email protected]:/etc$ This nev...
askanaan
5

votes
1

answer
2.7k

Views

Multiple VPC and Subnet with same CIDR blocks

I realized that I can create multiple AWS VPCs and Subnets with Same CIDR blocks, I am not sure what is the philosophy behind that and how it is possible.
Vaibhav Jain
6

votes
1

answer
1.1k

Views

Why can I call an on-VPC aws lambda from an off-VPC aws lambda but not vice versa?

So if I have two lambdas, one inside a private VPC, and one not on a VPC, calling the private lambda from inside the public lambda works but I cant call the public from the private lambda. There's no NAT setup. Why is this? It seems that I should not be able to call the private from the public theor...
mutant_city
1

votes
2

answer
1.5k

Views

Unable to access amazon RDS mysql instance from lightsail instance

I am new to AWS and not a network admin, mere a developer, and need your help. I am unable to connect to my aws RDS (mysql) from my lightsail ubuntu instance. when trying to connect, it just wait for a minute and then fails. I am unable to ping my RDS either. here is the setup the lightsail instance...
Maiq Fash
5

votes
1

answer
694

Views

How to setup Application Load Balancer for Elastic Beanstalk in AWS

I'm trying to create a new ElasticBeanstalk application with an Application Load Balancer. I'm calling the following commands: $ mkdir HelloWorld $ cd HelloWorld $ eb init $ echo "Hello World" > index.html $ eb create dev-env --elb-type application Output of the last command results in this error: C...
Brian Anderson
4

votes
1

answer
1.2k

Views

How to use CloudFormation to edit a VPC's default network ACL?

If I declare the following resource in a CloudFormation template, "CoolVpc": { "Type": "AWS::EC2::VPC", "Properties": { "CidrBlock": "10.10.0.0/16", "Tags": [ {"Key": "Name", "Value": "cool-vpc"}, ] } } ... CloudFormation will dutifully comply and create my VPC, and as part of the process it will au...
smitelli
6

votes
2

answer
606

Views

How to find unused VPC in AWS account

Is there any way to find unused VPCs in an AWS account? I mean the VPCs that don't have any EC2 instances, RDS and other services associated with it. One way is to just search with VPC ID in running instances, RDS and for other services to find out whether it is in use or not. Is there any other way...
MichealMills
5

votes
4

answer
7.6k

Views

CloudFormation Inside VPC?

I get that I can create resources using CloudFormation, and that I can also create a VPC using CloudFormation, along with the resources inside it. Can I create a stack, using a CloudFormation template, inside a pre-existing VPC? For example, let's say that I have a VPC for my company, and there is a...
deitch
5

votes
4

answer
1.7k

Views

How should a .dockercfg file be hosted in a Mesosphere-on-AWS setup so that only Mesosphere can use it?

We have set up a test cluster with Mesosphere on AWS, in a private VPC. We have some Docker images which are public, which are easy enough to deploy. However most of our services are private images, hosted on the Docker Hub private plan, and require authentication to access. Mesosphere is capable of...
user1475135
11

votes
5

answer
10.2k

Views

issue in deleting 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: InvalidParameterValue; Request ID: xxxxxx-dd86-47c8-9...
Sujoy
3

votes
1

answer
2.1k

Views

AWS Lambda access to RDS outside VPC

The RDS instance is not on VPC (Classic); it is associated to a security group with allowances to some CIDR/IPs and EC2 security groups. I want to create a AWS Lambda function that will execute some SQL statements on this database, and also make requests to a EC2 instance that is in the same securit...
ftkg
6

votes
3

answer
3.8k

Views

AWS Cloudfront for VPC/VPN

Does AWS allow usage of Cloudfront for websites usage, eg:- caching web pages. Website should be accessible within corporate VPN only. Is it a good idea to cache webpages on cloudfront when using Application restricted within one network?
Chiran Ravani
3

votes
1

answer
647

Views

Limit access to lambda or api gateway to a specific vpc

is it possible to make an api gateway or lambda function accessible only by a specific vpc. I searched in amazon doc, but I didn't find anything about this subject. Thank you in advance
MrGildarts
11

votes
3

answer
3.3k

Views

Amazon VPC: ami-vpc-nat: throughput of micro instance

I am manually setting up an Amazon VPC network, and have a need to create a NAT instance. Amazon has VPC specialized AMIs that come in various scales. Due to budget considerations, I am ambling towards using a micro instance of ami-vpc-nat. I am concerned that with only 613mb, a micro instance may...
Chux Uzoeto
6

votes
1

answer
5.4k

Views

Amazon Web Services EC2 to RDS Connectivity with VPC

I have been trying to set up an AWS Free Tier account using an EC2 instance and an RDS database running MySQL. Unfortunately, I cannot figure out how to grant access to the database from the EC2 instance. I have read all of the AWS documentation, but it is unfortunately out of date as are all the qu...
Alonzo
1

votes
2

answer
457

Views

How to add inbound rule to AWS default VPC security group using boto

I want to add inbound rules to my default vpc security group using boto. But i find no proper documentation to do so. Does it possible to do? can anyone help?
Zahidul Islam Jamy
5

votes
2

answer
1.8k

Views

Python Boto AWS Remove VPC Security Group Rules

I'm currently automating the build of an AWS VPC but wish to remove the default rules added to the security group created with the VPC. I can view security group rules like so: for security_group in vpc_connection.get_all_security_groups(): for rule in vpc_security_group.rules: print dir(rule) I'd b...
Huw
2

votes
2

answer
556

Views

Invoking the lambda gets timed out after adding VPC configurations

I am using serverless framework for creating lambdas. I created a simple Lambda function, which queries from an mongo instance and returns the response. Initially, I created the mongo instance with publicIp and made the Lambda access that instance with publicIP. It worked well. Now, in order to incr...
2

votes
2

answer
1.1k

Views

Amazon DAX client throws “No endpoints available” exception

I am trying to connect to DAX from a localhost using the following code: ClientConfig daxConfig = new ClientConfig() .withEndpoints("dax-cluster.yhdqu5.clustercfg.dax.use1.cache.amazonaws.com:8111"); AmazonDaxClient client = new ClusterDaxClient(daxConfig); The cluster is up and running, I've create...
Ivan Mushketyk
2

votes
1

answer
309

Views

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 so that the private EC2 instance can download whatev...
Luis
5

votes
1

answer
844

Views

How to know a EC2 instance is EC2 Classic or EC2 VPC instance?

I have a list of EC2 instances in my AWS account. So how could I identify whether an instance is a EC2-Classic or is a EC2-VPC type of instance?
Debesh Nayak

View additional questions