2 réponses
- Le plus récent
- Le plus de votes
- La plupart des commentaires
1
Lambda functions will not be able to access the internet on a public subnet. Lambda functions will never obtain a public IP address.
Your lambda functions need to be connected to private subnets.
On the private subnet you will need routes for the CIDR of 0.0.0.0/0 to a NAT gateway.
The NAT gateway will need to reside on the public subnet. Lambda will then be able to access the internet from your VPC.
0
In addition to the NAT Gateway option already mentioned, you can use IPv6 via an egress-only gateway if your external API supports IPv6. This capability was released recently - see https://aws.amazon.com/about-aws/whats-new/2023/10/aws-lambda-ipv6-outbound-connections-vpc/.
Contenus pertinents
- demandé il y a 2 ans
- demandé il y a 4 mois
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 5 mois
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans