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
3
votes
4 answers

AWS : SSH to private subnet EC2 instance from public subnet EC2 instance via NAT GATEWAY is not happening

I have set up below VPC configuration but the SSH to the instance is not happening at the moment: Created a new VPC Created a public and private subnet Launched an ec2 instance to the public subnet updated route tables for internet gateway Launched…
narayanan s
  • 101
  • 2
  • 11
3
votes
2 answers

How to put a NAT-Instance in auto scaling?

I wanted to create a fault tolerant website and was trying to create an autoscaling group.NAT-instance was used instead of NAT-Gateway. I experienced the following issues. When a NAT instance gets terminated [for some reason].The auto-scaling…
amazon tam
  • 35
  • 1
  • 5
3
votes
0 answers

AWS create-cache-cluster - security group id not recognized

I tried to create a elastic cache using aws cli and faced an error. The security group id that I use is my accounts default security group id and I see it exists on the aws console. Not sure why it is erring out. user$ aws elasticache…
auhuman
  • 962
  • 2
  • 13
  • 34
2
votes
1 answer

How can I import data from MySQL(AWS RDS) using Logstash of Elastic Cloud via AWS VPC?

I'm trying to import some data from AWS RDS to Elasticsearch of Hosted Elastic Cloud - It's not AWS Elasticsearch Service What I want to do is below. What: Data import From: AWS RDS MySQL To: Elasticsearch in Elastic Cloud How: Using Logstash of…
Jay Lim
  • 371
  • 3
  • 14
2
votes
1 answer

Unable to create AWS security group via Terraform

I am using Jenkins to automate Terraform to create my AWS environment. Although Jenkins has permissions to CreateSecurityGroup, I get this error when Jenkins runs my Terraform main file: * aws_security_group.lambda_security_group:…
Shabina Rayan
  • 389
  • 1
  • 8
  • 22
2
votes
1 answer

AWS Lambda and RDS outside a VPC

From my understanding, I can run AWS Lambda outside a VPC, as well as the RDS and have that set to publicly accessible. That would be the perfect solution for me because my lambda functions need internet access and a NAT Gateway which would allow…
Rony Azrak
  • 527
  • 2
  • 6
  • 16
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
1 answer

User Data is not running on EC2 instance in Private VPC subnet

This is the user data used: #!/bin/bash yum install httpd -y yum update -y aws s3 cp s3://YOURBUCKETNAMEHERE/index.html /var/www/html/ service httpd start chkconfig httpd on NAT gateway is configured for the private EC2 instance and also…
2
votes
0 answers

Migrating from a public elastic cluster to VPC cluster

I currently, have one public elastic cluster with one data node(m3.xlarge.elasticsearch) which is working fine. I would like to move from the public domain to VPC based domain. I was able to take a manual snapshot from the public endpoint and…
2
votes
1 answer

Fargate error: cannot pull container hosted in ECR from a private subnet

I am trying to create a following architecture: a vpc with two subnets (one is public containing a NatGateway and an InternetGateway, and another one is private. I start a fargate service in a private subnet and it fails with this…
Igor Deruga
  • 1,504
  • 1
  • 10
  • 18
2
votes
2 answers

Lambda lost connection to RDS at 01:00 2019-01-12 (EU/London)

I have a set of lambda functions that processes messages on an SQS stack. They take data sets, process them and store the results in an RDS MySQL database, which it connects to via VPC. Both the Lambda functions and the RDS database are in the same…
2
votes
0 answers

How to delete network acl using terraform?

I have created vpc and network acl using terraform. I am storing terraform state inside s3 buckets. While destroying environment I am facing the issue at refresh level for network acl. Following are the error…
2
votes
1 answer

How do AWS Direct connect and VPC peering differ ?

Can someone help me understand the basic difference between AWS direct connect and VPC peering.
2
votes
1 answer

Is there a way to query RDS DB in VPC from Lambda outside VPC without NAT

I was searching for a while for some good design ideas, but haven't found yet the best option. Basically I'm developing serverless API for existing database (RDS MySQL inside VPC, private security group). So I want to query the database from…
2
votes
1 answer

How to configure OpenVPN for AWS VPC Peering with single private in 1st and single subnet in 2nd VPC?

I've just installed OpenVPN from AMI Marketplace in my account and connected via LDAP to AWS Simple AD. To start with, here are the details below: Bastion Host VPC Name: Bastion-VPC ---> Has single public subnet VPC ID: vpc-01000000000000000 CIDR:…
Sanket Tarun Shah
  • 637
  • 10
  • 28
1 2
3
8 9