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
2
votes
1 answer

Using two different roles to build resources in one terraform code

Is it possible to create two security groups in two different accounts and reference one of them in the egress rules of other using Terraform in one code file? For instance if we have two VPCs A and B, I want to create two security groups in each of…
2
votes
0 answers

Private static URL for AWS Elastic Beanstalk

I have multiple services running in the elastic beanstalk. Say service A, Service B and Service C. These 3 services should be on the same network. All these services are connected with the domain name from route 53 and pointed to the private IP…
2
votes
2 answers

Updating api gateway to vpc link through cli

I have a api gateway set up as follows: Now I need to update the above set up to to vpc link and the same url so at the end I want to convert it to: As you see I can do it through console.Can I do the above through cli as well? I found the…
2
votes
1 answer

Terraform Route Table forcing new resource every apply

Thanks in advance if you know the answer! When I add the routing for multiple subnets like this for cross account vpc peering it forces a new resource every apply resource "aws_route" "route" { count =…
2
votes
3 answers

How to give a VPC and all its instances access to a AWS Security Group

My goal is simple: Allow any instance inside a VPC to connect to a specific security group. The field for allowed sources suggests: "CIDR, IP or Security group". Is there a way for me to specify a VPC? The reason beeing that I have multiple…
2
votes
1 answer

AWS - Lambda cannot access ElasticTranscoder

I have an infrastructure consisting of the following services in a VPC (except S3 and Transcoder obviously): EC2 (webserver) RDS (database) Lambda function with Node.js S3 Elastic Transcoder The scenario is the following: the user uploads a video…
2
votes
1 answer

unable to connect to AWS RDS postgresql database from AWS lambda

I am working on an application where i want to connect to postgresql database from AWS lambda.I have setup the database with Publicly Accessible property set as true.Inbound and outbound policies are I am able to access the database through…
Rohit
  • 895
  • 1
  • 9
  • 19
1
vote
2 answers

AWS - Cannot ping EC2 instance on private subnet in VPC

My goal is to create an EC2 instance in a private subnet on a VPC that I will be able to ping from external internet. So far, I have: created an elastic IP created a VPC with one public subnet and one private subnet created a NAT Gateway on the…
Petar Ivcec
  • 672
  • 1
  • 8
  • 23
1
vote
1 answer

AWS Lambda how to access on-premise sql server

Our local server is connected to AWS via VPN. I can telnet our on-premise sql server in AWS EC2, but I can't connect to the sql server in Lambda function, always timeout. The EC2 and Lambda function are in same VPC. Did I miss something?
Sven
  • 79
  • 10
1
vote
1 answer

Accessing AWS Elasticsearch VPC endpoint through VPC peering

I have an Elasticsearch domain with VPC access (i.e. no public access). I'd like to access the endpoint from an instance in another VPC. I've created a peering connection between the two VPCs, but since it's not possible to attach ES security group…
lfk
  • 2,423
  • 6
  • 29
  • 46
1
vote
1 answer

AWS Lambda and AWS SNS: Does it need a NAT Gateway?

I am developing a React Native application for IOS and Android. I am using Django for my backend and aws rds for my database. It is deployed on AWS Lambda and both my lambdas and my rds are in a VPC. Everything worked well except for push…
1
vote
0 answers

Rules for detecting malicious or suspicious VPC flow log entry

Hi Can any one point me to some rules for detecting malicious or suspicious VPC flow log entry? I Have a few rules like malicious IP scan, large data transfer, transfer from cloud to external IP over ssh, or too many entries for IP over a small…
1
vote
1 answer

How to connect a machine on VPN to AWS PHZ DNS?

I have an AWS VPC with Private Hosted Zone (PHZ) setup so all machines launched within the VPC can resolve my console-defined domains, for example a1.mydomain. I would like for on-site machines at the end of my VPN (not in VPC but connected to a VPN…
jsstuball
  • 4,104
  • 7
  • 33
  • 63
1
vote
0 answers

Does direct private-to-private IP routing within a shared VPC go through NATs and is it necessarily faster than going through a public proxy?

Assume we have two instances in two different regions under a shared VPC with no public IPs (i.e. within two private clusters). How exactly does routing from one instance to the other work, assuming private addresses used? Does it necessitate the…
Leeren
  • 1,931
  • 2
  • 20
  • 31
1
vote
1 answer

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…
Sunaina
  • 61
  • 1
  • 7
1 2 3
8 9