AWS Fundamentals Logo
AWS Fundamentals
AWS::EC2::SubnetCidrBlock

EC2 SubnetCidrBlock

The AWS::EC2::SubnetCidrBlock resource creates association between subnet and IPv6 CIDR

Properties

4 configurable properties. 1 required. Click a row to see details.

Filter:
PropertyTypeFlags
SubnetId
string
RequiredCreate-only
Ipv6CidrBlock
string
Create-only
Ipv6IpamPoolId
string
Create-onlyWrite-only
Ipv6NetmaskLength
integer
Create-onlyWrite-only

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
IdstringInformation about the IPv6 association.
IpSourcestringThe IP Source of an IPv6 Subnet CIDR Block.
Ipv6AddressAttributestringThe value denoting whether an IPv6 Subnet CIDR Block is public or private.

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::EC2::SubnetCidrBlock

Resources:
  MyResource:
    Type: AWS::EC2::SubnetCidrBlock
    Properties:
      SubnetId: "my-subnetid"

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

ec2:AssociateSubnetCidrBlockec2:DescribeSubnets

delete

ec2:DisassociateSubnetCidrBlockec2:DescribeSubnets

list

ec2:DescribeSubnets

read

ec2:DescribeSubnets

Get the EC2 Cheat Sheet

Everything you need to know about EC2 on one page. HD quality, print-friendly.

Download Free Infographic

Quick Facts

ServiceEC2
Properties7
Required1
TaggingNot supported
Primary IDId

Supported Operations

CreateDeleteListRead

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

Ipv6CidrBlockSubnetIdIpv6IpamPoolIdIpv6NetmaskLength

External Links