Questions tagged [aws-vpc]

31 questions
11
votes
1 answer

How to automatically remove a dead node from RabbitMQ cluster

I am planning to create RabbitMQ cluster using Ansible on AWS VPC with Amazon internal load balancer as the frontend to point connections to it. Any suggestion how to remove a dead node from RabbitMQ cluster based on autoscaling rule where nodes can…
Berlin
  • 780
  • 6
  • 15
8
votes
2 answers

Placing an AWS Lambda in a public subnet

Is it possible to place an aws lambda in a public subnet and thus avoid paying for NAT? The docs state the following If your Lambda function needs Internet access, do not attach it to a public subnet or to a private subnet without Internet access.…
Ulad Kasach
  • 181
  • 1
  • 4
4
votes
1 answer

Why don't the instances in the auto-scaling group get assigned public ip addresses unless it's a default vpc?

I'm trying to migrate our deployment process over to aws code deploy (by following instructions here:https://pionect.nl/autoscaling-aws-laravel-codedeploy-opsworks-chef-automation/). When I'm creating the auto-scaling group, I selected the same vpc…
abbood
  • 473
  • 4
  • 13
4
votes
1 answer

How to auto generate a diagram out of my AWS VPC?

Does AWS provide a tool to visualize my VPC? I would like to generate an image file with all services (shown as icons) provisioned inside a VPC. Tools like draw.io and others are available. But doesnt AWS provide a cloud native tool for this?
Biju
  • 255
  • 4
  • 8
4
votes
2 answers

One NAT attachment for two private subnets

I have two NAT gateway attachments for two private subnets in AWS. Is it possible to have one NAT gateway attachment for two private subnets so that I can save one EIP?
3
votes
1 answer

AWS-Terraform VPC difference between aws_route_table and aws_route

I'm struggling to understand the difference between the following Terraform Resources: Example 1: resource "aws_route_table" "public_1" { vpc_id = aws_vpc.test.id route { cidr_block = "0.0.0.0/0" gateway_id =…
Shaddar
  • 31
  • 3
3
votes
2 answers

Why do I need a Nat Gateway for ECS containers using AWSVPC?

So here is a scenario: I have a route table that routes all traffic to the internet gateway, and I have a subnet associated with that route table, which makes it a public subnet. Now I create another route table and I route all its traffic to a Nat…
mega6382
  • 133
  • 1
  • 6
2
votes
1 answer

How to Block Traffic From a Single IP in AWS

Our server being hammered by traffic from some particular IP. It was causing a 20x increase in traffic to some URLs. So I wanted to block all traffic from that single IP.
Jay
  • 1,064
  • 2
  • 12
  • 21
2
votes
1 answer

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…
rp346
  • 135
  • 2
  • 6
2
votes
1 answer

Can you replicate Active Directory from a Corporate Intranet to an AWS VPC where there is an outbound-only link?

In our work environment we have a standard Corporate Intranet with Active Directory. We've been granted limited access to an AWS VPC. Our connection allows outbound (from the Intranet to the VPC) but not inbound. That is - if we run a webserver in…
hawkeye
  • 1,153
  • 1
  • 9
  • 14
2
votes
2 answers

Get a list of remote VPCs on AWS using Terraform?

I'd like to get a list of all remote VPCs from AWS with terraform. I've read the documentation and found two data sources: AWS_DEFAULT_VPC AWS_VPC The first one will give you the default VPC and the second one accepts a VPC id and toss out other…
Pouya Ataei
  • 123
  • 4
2
votes
1 answer

Troubleshooting VPC flow logs with an S3 bucket using SSE-KMS encryption with CMK

I'm using Terraform and trying to set up automatic export of VPC flow logs into an S3 bucket in the same AWS account and region (ca-central-1) that has default encryption turned on with AWS-KMS (using a CMK). Even after trying many permutations of…
Nic
  • 351
  • 1
  • 4
  • 12
2
votes
2 answers

How to get VPC id in Terraform module?

I have a module structure like module "vpc" { source = "./modules/vpc" } module "prod_subnets" { source = "./modules/vpc/modules/subnets/production" } when running am getting an error like [0m on…
PRASANTHMV
  • 121
  • 1
  • 1
  • 3
2
votes
2 answers

Configure VPC for ECR access

I am creating my infrastructure with Ansible. I create a VPC and an ECS cluster where I use Fargate to run my docker containers. When the tasks are started I am prompted that the task was not able to pull the Image from the ECR. STOPPED…
Kyu96
  • 145
  • 3
  • 17
1
vote
1 answer

can't access my instances by public IP in a VPC (aka: what is wrong with my terraform)?

As stated in the title of the question, I have a Terraform file (attached below), but the infrastructure it builds doesn't allow me to connect by SSH (I get "Connection timed out"). So either the packets aren't getting to the EC2 instances or the…
Hypertable
  • 13
  • 2
1
2 3