Questions tagged [aws-nat-gateway]

75 questions
19
votes
3 answers

How to assign a public IP to container running in AWS ECS cluster in EC2 mode

I am trying to implement a multi-service ECS cluster using service discovery between the services. I'm attempting to follow the tutorial Creating an Amazon ECS Service That Uses Service Discovery Using the Amazon ECS CLI. However, it doesn't…
19
votes
1 answer

Can a single NAT Gateway span across multiple AZ?

When I configure a NAT Gateway, I will have to select a subnet, hence to my understanding, one NAT Gateway for one Subnet which falls under one Availability Zones. Then I saw the below statement If you have resources in multiple Availability Zones…
Isaac
  • 12,042
  • 16
  • 52
  • 116
16
votes
6 answers

Lambda function can't access Secrets Manager

I wrote a lambda function to access a database so the first step is to get secrets from AWS Secrets Manager. I have a private VPC as well as subnets, NAT Gateway, and security group associated with the lambda function. I also have…
6
votes
1 answer

AWS SSM Session Manager and Nat Gatway

I have created an EC2 instance in a private subnet (i.e. the route table has no Internet Gateway attached). The route table attached to the private subnet routes 0.0.0.0/0 to a NAT Gateway. The EC2 instance has the correct SSM Role and appears in…
APD
  • 1,459
  • 1
  • 13
  • 19
5
votes
2 answers

AWS VPC can't access Internet despite configuring NAT, Internet Gateway according to rules

I'm a bit lost on that one - I've followed AWS documentation and it seems that there is nothing more I can find. The situation summary is that I have an EC2 instance within a VPC and it can't reach the Internet despite following Amazon AWS…
5
votes
2 answers

How to Attach Elastic IP to NatGateway via Cloud Formation

I am trying to learn Aws cloud Formation , where I am trying to create VPC as shown in picture. it contains three public subnets, private subnets , natgateway and Internetgateway with public and private Route table.I am trying to achieve it through…
3
votes
0 answers

Lookup executing subnet in AWS Lambda function

I've the following scenario: I have an external API what I need to call from a Lambda function. The external API has some restrictions: Require an API key what stick to the caller's IP address Only 1:1 (IP : API key) mappings allowed Our…
SUF
  • 31
  • 2
3
votes
4 answers

How can I have a single NAT Gateway with multiple public IPs?

I have a project that involves running several hundred Lambda functions fetching data from the internet. These functions are running inside a private subnet of my VPC. I would like these functions to not all have the same IP for their internet…
NewbiZ
  • 2,395
  • 2
  • 26
  • 40
3
votes
1 answer

Terraform NAT Gateway To Setup Route Table

I'm trying to setup my private multiple NAT Gateways in my Route Table but I am confused on what I am missing. Can someone help me with my code on what I am missing? This is my Route Table: resource "aws_route_table" "private" { count …
Roma
  • 535
  • 6
  • 18
3
votes
1 answer

Connection issues through AWS Nat Gateway

I have an Amazon Linux 2 application server with the Spring Boot application aboard in the private subnet. There is a Nat gateway in front of that application server in the public subnet. Application sends a request with Connection: keep-alive…
3
votes
0 answers

AWS Nat Gateway, wrong requests limits - high load - timeout

I did a load test for NAT Gateway in AWS. I reached a much lower requests-limit than described in docs. According to the docs the Nat is supposed to support ~900 requests per second, but with my configuration, I saw that ~0.04% of the requests are…
2
votes
1 answer

Remove unnecessary AWS resources, VPC + NAT gateway

I recently set up an application on AWS via CDK. The application consists of a Dockerized nodejs application, which connects to an RDS instance, and has a Redis caching layer as well. After having the application deployed for a few days, the costs…
e-e
  • 1,071
  • 1
  • 11
  • 20
2
votes
1 answer

AWS private subnet with NAT gateway and VPC PrivateLink: which one will be used?

Say I have an ec2 in a private subnet with access to the internet through a NAT Gateway and I have VPC endpoints (PrivateLink) for AWS services like DynamoDB or SNS. If my ec2 instance needs to interact with those services, it will use the private…
2
votes
1 answer

Is it possible to use AWS WAF to block users behind a NAT

I am trying to place AWS WAF behind a NAT gateway to block some specific users. The image below explains exactly what I want to achieve.
Shammir
  • 927
  • 4
  • 17
  • 32
2
votes
2 answers

Connecting to internet through VPC peering

I have two custom VPCs for the purpose of Private & public access: VPC1(private) & VPC2(public). Each VPC has one subnet and further one EC2 with proper inbound rules. I am able to update software in public EC2 which is absolutely fine. Also, I am…
Ramesh
  • 131
  • 1
  • 1
  • 10
1
2 3 4 5