Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
IPv6.yaml Added source account reference Jan 15, 2019 Added README Jan 10, 2019
VPC.yaml Minor formatting change Jan 10, 2019

Automatic IPv6 setup for Amazon VPC

A simple example of how to use a CloudFormation macro to modify a VPC to automatically assign an IPv6 address to EC2 instances when launched.


  • Create a stack with IPv6.yaml to deploy the Lambda function and register it as a CloudFormation macro called EnableIPv6. The macro can be referenced in any CloudFormation template from a top-level resource like so:
  - EnableIPv6
  • Create another stack with VPC.yaml. It creates a VPC with a single public subnet. The macro associates an Amazon provided IPv6 CIDR block with the VPC and the subnet, and configures the subnet to automatically assign an IPv6 address to any EC2 instances.

Let me know if you have any suggestions for improvements or additional features.