AWS Fundamentals Logo
AWS Fundamentals
AWS::EC2::VPCCidrBlock

EC2 VPCCidrBlock

Resource Type definition for AWS::EC2::VPCCidrBlock

Properties

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

Filter:
PropertyTypeFlags
VpcId
string
RequiredCreate-only
AmazonProvidedIpv6CidrBlock
boolean
Create-only
CidrBlock
string
Create-only
Ipv4IpamPoolId
string
Create-onlyWrite-only
Ipv4NetmaskLength
integer
Create-onlyWrite-only
Ipv6CidrBlock
string
Create-only
Ipv6CidrBlockNetworkBorderGroup
string
Create-only
Ipv6IpamPoolId
string
Create-onlyWrite-only
Ipv6NetmaskLength
integer
Create-onlyWrite-only
Ipv6Pool
string
Create-only

Return Values

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

AttributeTypeDescription
IdstringThe Id of the VPC associated CIDR Block.
IpSourcestringThe IP Source of an IPv6 VPC CIDR Block.
Ipv6AddressAttributestringThe value denoting whether an IPv6 VPC 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::VPCCidrBlock

Resources:
  MyResource:
    Type: AWS::EC2::VPCCidrBlock
    Properties:
      VpcId: "my-vpcid"

Required IAM Permissions

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

create

ec2:AssociateVpcCidrBlockec2:DescribeVpcsec2:AllocateIpamPoolCidr

read

ec2:DescribeVpcs

delete

ec2:DescribeVpcsec2:DisassociateVpcCidrBlock

list

ec2:DescribeVpcs

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
Properties13
Required1
TaggingNot supported
Primary IDId

Supported Operations

CreateReadDeleteList

Immutable After Creation

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

Ipv6PoolVpcIdAmazonProvidedIpv6CidrBlockIpv6CidrBlockCidrBlockIpv4IpamPoolIdIpv4NetmaskLengthIpv6IpamPoolIdIpv6NetmaskLengthIpv6CidrBlockNetworkBorderGroup

External Links