Questions tagged [amazon-vpc]

Amazon Virtual Private Cloud (Amazon VPC) lets you provision a private, isolated section of the Amazon Web Services (AWS) Cloud where you can launch AWS resources in a virtual network that you define. With Amazon VPC, you can define a virtual network topology that closely resembles a traditional network that you might operate in your own datacenter.

Docs

2516 questions
0
votes
0 answers

How can I map the subnet and its routing table to the firewall endpoint in the same availability zone using CDK?

I am trying to update my subnet routing table to point to the firewall endpoint in the same AZ using CDK. I have the firewall created using CfnFirewall and I can fetch all the firewall endpoints with attrEndpointIds property. attrEndpointIds returns…
lipeiran
  • 526
  • 13
  • 33
0
votes
1 answer

aws network firewall conditional rules

I work for the platform team of my company and we have a central AWS Network Firewall in a central VPC. We provide AWS accounts for different teams and if they need internet access, we connect the VPCs of the teams with a transit gateway to our…
nilskch
  • 307
  • 3
  • 10
0
votes
2 answers

Connect to RDS through VPC Peering

I am trying to connect to an RDS Instance from my local machine through a VPC Peering connection. In my AWS Account I have two VPCs: VPC1 is connected to my local network via DirectConnect, VPC2 isn't. VPC2 contains all of my infrastructure and…
dparsons
  • 2,812
  • 5
  • 28
  • 44
0
votes
1 answer

How to launch multiple AWS EC2 instances from a single VPC using Terraform?

Is it possible to launch multiple ec2 instances from terraform using a single VPC? I'm building something which requires multiple instances to be launched from the same region and I'm doing all this using Terraform. But there's a limit in AWS VPC:…
0
votes
1 answer

Error creating subnet in aws_vpc with terraform

Everything seems right. What am I missing? main.tf provider "aws" { region = "us-east-1" access_key = "---" secret_key = "---" } resource "aws_instance" "MyWinServer" { ami = "ami-085d15593174f2582" instance_type = "t2.micro" tags = { Name =…
GTx
  • 3
  • 1
0
votes
0 answers

Connecting to an RDS Instance that is on VPC

I am trying to connect to my AWS RDS Mariadb instance that I am hosting on us-east/ohio from my local machine. I am trying to avoid making the instance publicly available but I am struggling to get this connection to work. Right now I am trying to…
0
votes
0 answers

Connect MySQL DB on EC2 from Fargate Container application

I have a container application running on ECS Fargate (Network awsvpc), And tried to connect MySQL database set up on EC2 instance... But it is not happening. I can connect same database (on EC2) from local machine with same containerized…
0
votes
0 answers

Configuring use NAT gateway only in specific request url

Condition: 1 Public subnet A in VPC (No private subnet) Internet gateway is connected to VPC 1 NAT gateway is subnet A One server instance resides in subnet A. Question: Is it possible to use NAT gateway in specific case, otherwise send request…
Gipyo.Choi
  • 155
  • 2
  • 14
0
votes
1 answer

how to attach ENI to lambda to test reachability to dynamodb?

i have 2 lambdas - "results" and "voting", "voting" does have ENI attached. lambda function "results" does have ENI attached to it. i used vpc reachability analyzer to test connectivity from lambda ENI "voting" to dynamodb - and it has status…
ERJAN
  • 23,696
  • 23
  • 72
  • 146
0
votes
1 answer

AWS VPC for EKS node group

I am trying to create a Node group in my EKS cluster, but I am getting '''NodeCreationFailure: Instances failed to join the kubernetes cluster'''. After reading many documentations I think the problem is in the VPC configuration. I've tried…
0
votes
0 answers

URL forwarding for Lambda functions within VPC

My AWS lambda function code is calling an external API says GET method example.com/getBooks That lambda function is deployed using AWS SAM and running within VPC & Subnets. What I am trying to achieve is to redirect the example.com/getBooks to my…
CT5275
  • 1
  • 2
0
votes
1 answer

How can I host a server from two domains?

I have two domains in Cloudflare. I want to use those two domains for my application. For example, www.abc.com, www.xzy.com They should host the same server. I created load balancers and target groups for ECS Clusters. They are working but there is…
0
votes
0 answers

How To Solve 504 Bad Gateway Timeout Error From Aws Api Gateway?

I am getting 504 Bad Gateway Timeout error in responce but data gets inserted sucessfully to the databse. Code executes perfectly locally with response time within 1.15s but whenever deployed to lambda it start giving this Timeout Error. Node js…
0
votes
1 answer

Why do AWS recommend public and private subnets with a nat gateway?

I'll be complying with AWS best practise and having e.g. database instances inside a private subnet but I am wondering why this architecture is recommended? AWS recommend this architecture so that the DBMS is not accessible to the outside world. If…
Remotec
  • 10,304
  • 25
  • 105
  • 147
0
votes
1 answer

Elastic Beanstalk Ruby failing on private subnet

I have a ruby application deployed to Elastic Beanstalk that successfully deploys and runs when connected to my public subnet but fails with an error when connected to my private subnet. 2023/01/04 21:16:25.937590 [INFO] Running command /bin/su…