Lambda can not access RDS though those are in the same VPC
问题 I have created VPC and RDS with the below CloudFormation . Resources: TestVpc: Type: "AWS::EC2::VPC" Properties: CidrBlock: "10.0.0.0/16" EnableDnsSupport: true EnableDnsHostnames: true TestSubnetA: Type: "AWS::EC2::Subnet" Properties: AvailabilityZone: "ap-northeast-1a" CidrBlock: "10.0.0.0/20" VpcId: !Ref TestVpc TestSubnetB: Type: "AWS::EC2::Subnet" Properties: AvailabilityZone: "ap-northeast-1d" CidrBlock: "10.0.16.0/20" VpcId: !Ref TestVpc TestSubnetC: Type: "AWS::EC2::Subnet" Properties