Menu
AWS CloudFormation
User Guide (API Version 2010-05-15)

AWS::EC2::VPCCidrBlock

The AWS::EC2::VPCCidrBlock resource associates a single Amazon-provided IPv6 CIDR block with an Amazon VPC VPC.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

Copy
{ "Type" : "AWS::EC2::VPCCidrBlock", "Properties" : { "AmazonProvidedIpv6CidrBlock" : Boolean, "VpcId" : String } }

YAML

Copy
Type: "AWS::EC2::VPCCidrBlock" Properties: AmazonProvidedIpv6CidrBlock: Boolean VpcId: String

Properties

AmazonProvidedIpv6CidrBlock

Whether to request an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. You can't specify the range of IPv6 addresses or the size of the CIDR block.

Required: No

Type: Boolean

Update requires: Replacement

VpcId

The ID of the VPC to associate the Amazon-provided IPv6 CIDR block with.

Required: Yes

Type: String

Update requires: Replacement

Example

The following example associates an Amazon-provided IPv6 CIDR block (with a prefix length of /56) with the TestVPCIpv6 VPC.

JSON

Copy
{ "Ipv6VPCCidrBlock": { "Type": "AWS::EC2::VPCCidrBlock", "Properties": { "AmazonProvidedIpv6CidrBlock": true, "VpcId": { "Ref" : "TestVPCIpv6" } } } }

YAML

Copy
Ipv6VPCCidrBlock: Type: "AWS::EC2::VPCCidrBlock" Properties: AmazonProvidedIpv6CidrBlock: true VpcId: !Ref TestVPCIpv6

On this page: