AWS::EC2::SubnetCidrReservation

EC2 SubnetCidrReservation

Resource Type definition for a CIDR range reserved inside an Amazon EC2 subnet.

Properties

5 configurable properties. 3 required. Click a row to see details.

Filter:
PropertyTypeFlags
Cidr
string
RequiredCreate-only
ReservationType
string
RequiredCreate-only
SubnetId
string
RequiredCreate-only
Description
string
Create-only
Tags
Array<Tag>

Return Values

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

AttributeTypeDescription
ArnstringThe Amazon Resource Name (ARN) of the subnet CIDR reservation.
OwnerIdstringThe identifier of the AWS account that owns the subnet CIDR reservation.
SubnetCidrReservationIdstringThe identifier of the subnet CIDR reservation.

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::SubnetCidrReservation

Resources:
  MyResource:
    Type: AWS::EC2::SubnetCidrReservation
    Properties:
      SubnetId: "my-subnetid"
      Cidr: "my-cidr"
      ReservationType: "prefix"
      Tags:
        - Key: Environment
          Value: Production
      Description: !Ref "AWS::StackName"

Required IAM Permissions

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

create

ec2:CreateSubnetCidrReservationec2:CreateTags

read

ec2:GetSubnetCidrReservationsec2:DescribeTags

update

ec2:CreateTagsec2:DeleteTagsec2:DescribeTagsec2:GetSubnetCidrReservations

delete

ec2:DeleteSubnetCidrReservationec2:DescribeTagsec2:GetSubnetCidrReservations

list

ec2:GetSubnetCidrReservations

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
Properties8
Required3
TaggingSupported
Primary IDSubnetId

Supported Operations

CreateReadUpdateDeleteList

Immutable After Creation

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

SubnetIdCidrReservationTypeDescription

External Links