Questions tagged [aws-vpc]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
9 views

How to set the vpc quota value for the terraform vpc module for aws?

I have a terraform module defined like so: module "vpc" { source = "terraform-aws-modules/vpc/aws" version = "2.77.0" name = "test_vpc" ...
user avatar
  • 101
0 votes
1 answer
22 views

Unable to connect from my local system to ec2 instance created by terraform script

Following is the source code: variable "ec2_instance_type_name" { type = string default = "t2.nano" } terraform { required_providers { aws = { ...
user avatar
1 vote
1 answer
32 views

Unable to ssh into EC2 instance to the peered VPC which is in different region

It's a very simple setup in which there are two EC2 instances each in a different region but under the same account. Both are peered. Requester EC2 EC2Virginia has the following details: Public IP: 34....
user avatar
0 votes
0 answers
39 views

Disable public DNS for EKS with private API server

When EKS API server endpoint access is set to 'Private', as per the docs: The cluster's API server endpoint is resolved by public DNS servers to a private IP address from the VPC. In the past, the ...
user avatar
  • 101
0 votes
1 answer
513 views

Terraform get subnet id by it's CIDR block

I have a list of CIDRs for my subnets and want to get their ids. Is it possible to do with terraform? my_subnets = ["212.12.1.0/24", "212.12.2.0/24", "212.12.3.0/24"] I ...
user avatar
3 votes
1 answer
144 views

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 ...
user avatar
  • 225
2 votes
2 answers
504 views

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 ...
user avatar
1 vote
1 answer
35 views

Common permissions for EC2 usage and VPC Security Groups in enterprise use

Context: Looking to create some software that acts as middleware to a user's AWS account, where the user will provide their cloud credentials, and have the software use their EC2 instances. Question: ...
user avatar
  • 13
2 votes
2 answers
1k views

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 ...
user avatar
  • 123
4 votes
2 answers
71 views

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?
user avatar
1 vote
1 answer
1k views

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 ...
user avatar
  • 301
2 votes
2 answers
8k views

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 ...
user avatar
0 votes
1 answer
44 views

Unable to connect to remote service using AWS VPC Peering

I have a question regarding some AWS infra I'm trying to build. Due to legacy constraints, I have a service running in a remote VPC that I need to access, and I have a new service I'm developing in ...
user avatar
  • 141
2 votes
2 answers
1k views

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 ...
user avatar
  • 105
1 vote
1 answer
56 views

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 ...
user avatar
-1 votes
1 answer
61 views

Ansible ec2_vpc_net and ec2_vpc_subnet - where to set subnet default public ip

Since upgrading to these 2 Ansible modules I am having difficulties in setting the subnets to have default public IP when new instances are created by autoscaling? I can't find any setting on the ...
user avatar
  • 650
1 vote
1 answer
1k views

Using Amazon VPC provided DNS trough AWS Site-to-Site VPN

Currently I have an AWS VPC connected to our corporate network using AWS Site-to-Site VPN. I can reach my EC2 instances trough the tunnel by their private IP Address. Inside the VPC each EC2 ...
user avatar
  • 212
1 vote
1 answer
24 views

Which option do I select for Security Group Source?

I am developing my Security Group for a VPC that has my Elasticbeanstalk, RDS and ElastiCache services and I am at this dashboard: Under Source, it used to be that you could select sg-0x12345-my-...
user avatar
  • 419
2 votes
1 answer
890 views

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.
user avatar
  • 854
1 vote
1 answer
485 views

How to Allow AWS S3 Access From only Specific IPs

Recently we were testing with AWS VPC, and a requirement for our project was that we needed to allow nodes within a VPC access to S3 buckets, but deny access from any other IP address. Is there ...
user avatar
  • 854
0 votes
3 answers
1k views

Jenkins in private subnet

For development environment, to be used by multiple developers, we have a pipeline to be created with Git-Jenkins-Tomcat(dev) Do I need to place jenkins in private subnet and access thru bastion host?
user avatar
2 votes
1 answer
5k 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 ...
user avatar
  • 135
0 votes
1 answer
73 views

Communication between VPCs and a transit VPC hosting VPN Server without Masking source IP

I am setting up a VPN Server to move all resources behind VPN on AWS, which includes moving multiple VPCs. The simple setup is: I have a separate VPC (VPC1) running VPN Server and another VPC (VPC2) ...
user avatar
  • 103
5 votes
2 answers
6k views

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 ...
user avatar
4 votes
1 answer
2k views

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 ...
user avatar
  • 453
1 vote
1 answer
1k views

Migrate Rancher host from server to server

I have 4 Rancher servers: one for each environment: dev, sandbox, staging & prod. 3 of them are of an older Rancher 1.4 version (sandbox, staging, prod) & are hosted on OVH hosting, the one ...
user avatar
2 votes
1 answer
41 views

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) ...
user avatar
  • 1,083
0 votes
2 answers
6k views

How do I launch Lambda in my own VPC?

The VPC configurations option in Lambda tells this: All AWS Lambda functions run securely inside a default system-managed VPC. However, you can optionally configure Lambda to access resources, ...
user avatar
  • 2,756
11 votes
1 answer
2k views

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 ...
user avatar
  • 780