Private subnet

Let's provision/create two private subnets for High Availability of Lambda, the Lambda functions are as recommended:

     letsPollPrivateSubnet1:       Type: AWS::EC2::Subnet       Properties:         VpcId:            Ref: letsPollVPC         CidrBlock: 10.0.1.0/24         AvailabilityZone: ${self:provider.region}a         MapPublicIpOnLaunch: false         Tags:             - Key: Name               Value: Lets Poll VPC Private Subnet 1  letsPollPrivateSubnet2:       Type: AWS::EC2::Subnet       Properties:         VpcId:            Ref: letsPollVPC         CidrBlock: 10.0.2.0/24         AvailabilityZone: ${self:provider.region}b         MapPublicIpOnLaunch: false         Tags:             - Key: Name               Value: Lets Poll VPC Private Subnet 2

Get Hands-On Serverless Applications with Kotlin now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.