AWS Fundamentals Logo
AWS Fundamentals
AWS::EC2::PrefixList

EC2 PrefixList

Resource schema of AWS::EC2::PrefixList Type

Properties

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

Filter:
PropertyTypeFlags
AddressFamily
string
Required
PrefixListName
string
Required
Entries
Array<Entry>
MaxEntries
integer
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 Prefix List.
OwnerIdstringOwner Id of Prefix List.
PrefixListIdstringId of Prefix List.
VersionintegerVersion of Prefix List.

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

Resources:
  MyResource:
    Type: AWS::EC2::PrefixList
    Properties:
      PrefixListName: "my-prefixlistname"
      AddressFamily: "IPv4"
      Tags:
        - Key: Environment
          Value: Production

Required IAM Permissions

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

create

EC2:CreateManagedPrefixListEC2:DescribeManagedPrefixListsEC2:CreateTags

read

EC2:GetManagedPrefixListEntriesEC2:DescribeManagedPrefixLists

update

EC2:DescribeManagedPrefixListsEC2:GetManagedPrefixListEntriesEC2:ModifyManagedPrefixListEC2:CreateTagsEC2:DeleteTags

delete

EC2:DeleteManagedPrefixListEC2:DescribeManagedPrefixLists

list

EC2:DescribeManagedPrefixListsEC2:GetManagedPrefixListEntries

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
Properties9
Required2
TaggingSupported
Primary IDPrefixListId

Supported Operations

CreateReadUpdateDeleteList

External Links