Elastic IP allocation

We first need to allocate an EIP for our NAT gateway. The following code block shows how an EIP can be requested:

    letsPollVPCNatGateway1EIP:        Type: AWS::EC2::EIP        DependsOn: InternetGatewayAttachment        Properties:             Domain: vpc   

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.