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.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
17 views

How to set up URL for app in AWS private VPC

I deployed a simple 'hello world' Dockerized React app (with nginx) as a 'Backend Service' via AWS Copilot. The VPC, per requirements, is private and has no internet gateway or NAT gateway. I connect ...
jspru's user avatar
  • 1,088
0 votes
1 answer
38 views

AWS VPC Endpoints - Not functioning

I am struggling to get my AWS VPC endpoints to work. I've missed something in the setup but cannot work it out. I have a lambda that is triggered by an SQS entry, the lambda is within a VPC. The ...
BENBUN Coder's user avatar
  • 4,851
0 votes
0 answers
29 views

Invalid endpoint: sqs.eu-west-1.amazonaws.com

I have a Lambda inside VPC (because of RDS) and want to publish messages to SQS. The Lambda could publish to SQS before putting it into VPC, now it can fetch from RDS but can not publish to SQS. I ...
rkochar's user avatar
  • 444
0 votes
1 answer
40 views

How can I filter subnet by ID for Ec2 CDK?

I'm looking for a way to filter a subnet by Id, from the docs seems like we can use SubnetFilter but I can't parse the subnetFilter to a SubnetSelection: // Err: Initializer type Subnetfilter Is not ...
Jaime FH's user avatar
  • 148
0 votes
0 answers
44 views

Moving a Lambda function into a VPC causes it to error with `Phase: invoke Status: error Error Type: Runtime.Unknown`

I have a .Net 6 Lambda function that has a Hello World style endpoint that is running perfectly well. It is triggered by API Gateway in proxy mode. It currently is not deployed in a VPC. However, I ...
baynezy's user avatar
  • 6,579
0 votes
1 answer
21 views

Whitelisting an IP address for sms notification with an AWS application Load Balancer

I have my frontend & backend application in separate ec2 behind a single application load balancer with different target groups. I need to have a static IP address that can be whitelisted with a ...
Gurugeeksroyalty's user avatar
0 votes
1 answer
56 views

Lambda Function connection to RDS timing out (*Private Isolated Subnets only no NAT Gateway or IGW)

Does anyone know if it's possible to connect Lambda to RDS in the same VPC with just isolated subnets where both resources are in the same subnets? I've fiddled and searched far and wide for a few ...
makisupa488's user avatar
-1 votes
2 answers
26 views

AWS, VPC, Hosted Zone and Domains and DNS

I can't seem to get DNS setup right. I have A records, NS and SOA record. I notice the domain list a different set of DNS servers than the Hosted Zone. Anyway I can't get anything to resolve across ...
Larry Gray's user avatar
0 votes
1 answer
9 views

Where can I see the az of my task in ecs in the MC?

The only place, where I see in which it, is in the management console in the target group, but actually I would like to see it somewhere in ecs. Where can I see that, I only found the subnet so far.
David's user avatar
  • 2,786
0 votes
0 answers
19 views

Need desperate help deploying a streamlit app using ECR + ECS on AWS. Unsure if networking issue or something else

I have to deploy a streamlit app on AWS so I am using ECR + ECS. I have tested the docker image locally and it works perfectly fine, but once I upload the image to ECR and try to deploy it on AWS ECS ...
Anas Puthawala's user avatar
-2 votes
1 answer
23 views

Connect anypoint platform to aws

MULESOFT-AWS I have more than 5 API in anypoint platform but i just want only one API send information to my VPC on aws. How can i send just the information from API in my enviroment (example: QA) ...
Roberto Romo 's user avatar
0 votes
0 answers
47 views

Connection timed-out to RDS instance from inside lamba_handler function

This works instantaneous: conn = psycopg2.connect(dbname="postgres", user="postgres", password="...", host="...", port=5432) cursor = ...
udarH3's user avatar
  • 199
0 votes
1 answer
55 views

AWS Lambda fails with "Runtime.Unknown" in VPC with service endpoint for AWS Lambda

I've have to move a AWS Lambda function into a VPC because we have a RDS proxy running in there. The problem is that after I've put the Lambda into the VPC it always times out with the error Error ...
floriangosse's user avatar
  • 1,123
0 votes
0 answers
22 views

Elastic beanstalk single instance application with public internet but only my IP to be allowed to access the Application

I wanted to create a simple single instance AWS elastic beanstalk application that should be accessible via internet but only via my IP address. I do not need a load balancer for this, but if ...
Nitiraj's user avatar
  • 614
0 votes
1 answer
36 views

AWS Lambda with VPC can't communicate with internet

I'm create sample Lambda, create VPC using vpc-privatepublic.yaml (https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html), connect Lambda to VPC then test internet access: inside Lambda ...
Андрей Вербицкий's user avatar
-1 votes
1 answer
35 views

AWS Invalid Subnet Range - Terraform, why are these two subnets invalid?

This is my VPC and Subnet Ranges. The two public subnets are not creating, i'm getting the following error message when doing a Terraform Apply. Error: creating EC2 Subnet: InvalidSubnet.Range: The ...
user22978548's user avatar
0 votes
1 answer
19 views

cloudformation stack fails due to resources not creating

i'm trying to set up a cloudformation template and somehow it keeps failing like resources declared in the VPC stack are not created VPC.yaml Parameters: VPCName: Default: "VPC" ...
HAKURSAL's user avatar
0 votes
1 answer
23 views

AWS Glue Connection to AWS RDS SQL Server in VPC for AWS Glue Crawler - Connection fails

Context: I have a SQL Server instance with AWS RDS in an AWS VPC. The ACL allows all inbound and outbound traffic. The Security Group of the SQL Server allows inbound all TCP traffic on port 1433 (SQL ...
quervernetzt's user avatar
  • 10.6k
-2 votes
1 answer
30 views

Automate Network ACL on AWS

Is it possible to remove automatically the inbound rule at the Network ACL using Lambda functions? I've searched to many blogs and documentation but none of them are legit. also i tried chatgpt but ...
Eric Delos Santos Belgar's user avatar
0 votes
0 answers
18 views

Attach EC2 in multi-region to ECS Anywhere

I have a case like this: I got 1 ECS cluster in the ap-northeast-1 region and some ec2 instances in any region the user selected. Can EC2 instances connect to the ECS cluster within the AWS network, ...
Sam McGrego's user avatar
-1 votes
0 answers
42 views

AWS lambda timeout error in VPC invoking external URL

I have an AWS Lambda inside a VPC that is part of a NAT Gateway, so that it can access the internet. When I deploy and I send requests to it, it just times out. When, I check the CloudWatch logs, ...
user2125722's user avatar
  • 1,296
0 votes
0 answers
45 views

Trouble Connecting to AWS RDS Aurora in Different Availability Zones

I am facing a strange issue with AWS RDS Aurora configuration. I am operating in the region us-east-2 (Ohio) and have set up a VPC. In each availability zone (us-east-2a, us-east-2b, us-east-2c), I ...
Akil Vohra's user avatar
-1 votes
1 answer
35 views

How can I troubleshoot an AWS VPN connection that suddenly stopped working?

We have an AWS VPN Client Endpoint set up and are using OpenVPN as the client to connect. This has worked with no issues until today. I don't see any outages that are relevant and the error message we'...
sonicblis's user avatar
  • 2,974
0 votes
0 answers
23 views

Trouble accessing AWS API Gateway endpoints within a private VPC using RDS Proxy

Question: I'm encountering an issue where I'm unable to access certain AWS API Gateway endpoints from within the same VPC, and I'm looking for guidance on troubleshooting and resolving this problem. ...
daniel's user avatar
  • 1
0 votes
1 answer
78 views

Retrieve files and uploading .zip to s3 via Lambda

I want to filter my files in AWS S3 according to the incoming request, zip and upload them to s3 again and get a presigned url, fast. I have following lambda function: import { S3Client, ...
unlucky_boyoz's user avatar
0 votes
0 answers
10 views

Unable to Establish Connectivity from Kubernetes Cluster KB (VPC B) to RDS in Kubernetes Cluster KA (VPC A) in AWS EKS

Background I have two Kubernetes clusters (KA and KB) in AWS EKS, both in the eu-west-2 region. Each cluster has its own VPC (VPC A for KA and VPC B for KB), with three public and three private ...
FARHAN MIRZA's user avatar
0 votes
1 answer
23 views

APP in AWS ECS Fargate Can't Connect to Remote Database in Liquid Web

I have deployed a Nest.js application on AWS ECS Fargate, and am using a Network Load Balancer with two associated Elastic IPs, one for each subnet. Now, I am attempting to connect to our remote ...
Reyver Cris's user avatar
0 votes
2 answers
38 views

AWS ECS Scheduled Task Connection Error with RDS

I'm currently facing an issue with my ECS tasks connection to RDS which are deployed by using AWS Copilot CLI. Despite ensuring that the ECS task and the RDS have the same VPC and appropriate security ...
phybarin's user avatar
0 votes
0 answers
57 views

AWS ECS services communicate over service discovery

I have ECS services in the same cluster, on the same Vpc and subnet. To communicate ECS services with each other I use service discovery, my network model is awsvpc and the record type is SRV. I ...
Tatev Hunanyan's user avatar
0 votes
0 answers
475 views

AWS Elastic Beanstalk: Environment creation stuck in "Added instance [i-XXXXXXXXX] to your environment"

I'm trying to deploy a Flask application using Elastic Beanstalk. This application needs to interact with an RDS database that lives inside of a VPC. So, I'm creating the app and the environment ...
Arturo Avila's user avatar
0 votes
2 answers
27 views

Configuring Security Group for Private Subnet Lambda Triggered by Cognito Pre-Token Generation

I have a scenario where I'm using an Amazon Cognito pre-token generation trigger to call an AWS Lambda function. The Lambda function is placed within a private subnet for security reasons. However, I'...
Spark's user avatar
  • 217
0 votes
2 answers
49 views

Attach existing VPC while creating an ECS cluster

When I create an ECS cluster on the AWS UI, I have the option to select a VPC. But how do I select or attach an existing VPC while creating a cluster using Terraform? resource "aws_ecs_cluster&...
x89's user avatar
  • 3,004
0 votes
0 answers
18 views

AWS Elastic Beanstalk: Cannot initialize an environment using a custom VPC and Security Groups

I have an AWS Elastic Beanstalk application that needs to send and receive data to/from a database that lives inside of a VPC. To achieve this, I planned to integrate the EB app inside of that same ...
Arturo Avila's user avatar
1 vote
1 answer
35 views

Is there a way to resolve an RDS endpoint from an ec2 instance both in the same private subnet, without using a NAT gateway?

For context, I have a RDS instance and a server both in the same private subnet. Routing rules and security groups are configured to allow the connection. Connecting from the server to the RDS ...
froi's user avatar
  • 7,418
0 votes
0 answers
27 views

How to create a VPC endpoint to access SQL DB hosted inside EC2 instance?

I have a lambda in VPC-1 trying to access a SQL database which is hosted inside an EC2 instance in VPC-2. How should I establish a connection between Lambda(VPC-1) and SQL DB (VPC-2) using VPC ...
Anuj Kadam's user avatar
0 votes
1 answer
31 views

AWS - VPC and private subnet access to the world - Only NAT Gateway can do this?

If I have a private subnet inside my VPC in AWS, the only way to allow traffic from my subnet to the world (like going to the Ubuntu registry to patch something in an EC2 instance) is with a NAT ...
Vitor Nilson's user avatar
0 votes
1 answer
34 views

How to configure AWS Glue to access SAP data via pyodata API and an established VPC?

I'm trying to use the pyodata API to fetch data from SAP services, which I then want to process with AWS Glue. The SAP system is on a private network but connected to my AWS through a VPC and TGW. I ...
Sam Richardson's user avatar
0 votes
1 answer
37 views

aws lambda access to container running on ec2 in vpc and aws services in the same time

I have lambda that is deployed in VPC in public subnet. It needs a docker container access on EC2 instance. All good and it has it via inbound rule that allows traffic on the container port. But the ...
user732456's user avatar
  • 2,638
1 vote
1 answer
57 views

AWS AppRunner with outgoing traffic to VPC cannot connect to AWS SES

In my current project, I am using AWS AppRunner to expose an HTTP RESTful API (dockerized Python with FastAPI). The AppRunner uses AWS RDS PostgreSQL database, AWS S3, and AWS SES, to send some emails....
Carmelo Acosta's user avatar
0 votes
0 answers
14 views

TS Lambda in VPC cannot publish to IoT Core

Here is the relevant code in the lambda (): import { APIGatewayProxyEvent, APIGatewayProxyResult } from 'aws-lambda'; import AWS from 'aws-sdk' @param {Object} event - API Gateway Lambda Proxy Input ...
yungfrankling's user avatar
0 votes
0 answers
16 views

Receive empty response from API, and webhook isn't called AWS VPN S2S

I have a big trouble right now. First, I'm using 2 EC2 instances running Ubuntu 20.04, one for test (staging), and one for release (production). I have them configured similarly. I have used AWS S2S ...
Arthass's user avatar
0 votes
0 answers
20 views

AWS - Share resource between multiple accounts through single VPCE

Scenario: We have multiple accounts (A,B and C) in the organization. Account A have a resource/service for which access is granted through single VPCE from Account B. Account C also need access to ...
Bharath ABK's user avatar
0 votes
1 answer
36 views

Routing Tables in AWS

Whats the difference between Explicit subnet associations and Subnets without explicit associations to route tables in AWS? I read the documentation but didnt understand, can someone give me an ...
432i's user avatar
  • 13
0 votes
1 answer
30 views

Unable to publish to SNS Topic from Lambda inside private subnet of VPC

I have a lambda function, which requires access to EC2 running on the private subnet of my VPC. So I associated the lambda with private subnet of the VPC. My lambda also need to publish to an SNS ...
Sree Teja's user avatar
0 votes
0 answers
21 views

Lambda triggered by a custom resource works without a VPC but inside the VPC the lambda gets Timeout [duplicate]

I have created a lambda that has to be triggered by a custom resource. Now when I test the lambda without putting it inside a VPC it works fine but whenever I put it inside a VPC the lambda does a ...
Hamza.Imran's user avatar
0 votes
0 answers
22 views

Redshift serverless client api call list_workgroups gets timedout in lambda function

I have a lambda function which uses below code to list redshift serverless workgroups. client = boto3.client("redshift-serverless") res = client.list_workgroups() I have configured local ...
Prathyush's user avatar
0 votes
1 answer
22 views

Why is private route table not checked when network packages is going outbound?

I have a public network with a load balancer and a private subnet in AWS with EC2 instance as webserver. The inbound traffic goes like this: On the reverse path from the private network, there is no ...
David's user avatar
  • 2,786
0 votes
1 answer
48 views

AWS Fargate tasks remain in PENDING state when using Transit Gateway for egress

I have set up an AWS infrastructure using Terraform, where I have an ECS cluster running Fargate tasks in a VPC (main-vpc). The Fargate tasks need to pull images from DockerHub. For egress, I've set ...
Jack Ripper's user avatar
0 votes
1 answer
41 views

SNS/SQS Endpoint - Does it impact access from ECS?

I was configuring VPC Endpoint for my SNS and SQS services. I am little bit confused with the VPC Endpoint service. I wanted to know if I create an SNS/SQS Endpoint for my service and want to access ...
Roronoa Zoro's user avatar
0 votes
0 answers
20 views

Issues Running a Lambda Function Attached to a VPC with aws-controltower-AuditAdministratorRole

My organization requires all Lambda functions to be attached to a VPC and Lambda functions attached to VPCs must run under a role that has been assigned the AWSLambdaVPCAccessExecutionRole policy. ...
Nathaniel Huffman's user avatar

1
2 3 4 5
52