The Wayback Machine - https://web.archive.org/web/20190529080759/https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-ref.html
AWS CloudFormation
User Guide (API Version 2010-05-15)

Ref

The intrinsic function Ref returns the value of the specified parameter or resource.

  • When you specify a parameter's logical name, it returns the value of the parameter.

  • When you specify a resource's logical name, it returns a value that you can typically use to refer to that resource, such as a physical ID.

When you are declaring a resource in a template and you need to specify another template resource by name, you can use the Ref to refer to that other resource. In general, Ref returns the name of the resource. For example, a reference to an AWS::AutoScaling::AutoScalingGroup returns the name of that Auto Scaling group resource.

For some resources, an identifier is returned that has another significant meaning in the context of the resource. An AWS::EC2::EIP resource, for instance, returns the IP address, and an AWS::EC2::Instance returns the instance ID.

At the bottom of this topic, there is a table that lists the values returned for many common resource types. More information about Ref return values for a particular resource or property can be found in the documentation for that resource or property.

Tip

You can also use Ref to add values to Output messages.

Declaration

JSON

{ "Ref" : "logicalName" }

YAML

Syntax for the full function name:

Ref: logicalName

Syntax for the short form:

!Ref logicalName

Parameters

logicalName

The logical name of the resource or parameter you want to dereference.

Return Value

The physical ID of the resource or the value of the parameter.

Example

The following resource declaration for an Elastic IP address needs the instance ID of an EC2 instance and uses the Ref function to specify the instance ID of the MyEC2Instance resource:

JSON

"MyEIP" : { "Type" : "AWS::EC2::EIP", "Properties" : { "InstanceId" : { "Ref" : "MyEC2Instance" } } }

YAML

MyEIP: Type: "AWS::EC2::EIP" Properties: InstanceId: !Ref MyEC2Instance

Supported Functions

You cannot use any functions in the Ref function. You must specify a string that is a resource logical ID.

Resource Return Examples

This section lists sample values returned by Ref for particular AWS CloudFormation resources. For more information about Ref return values for a particular resource or property, refer to the documentation for that resource or property.

Resource Type Reference Value Example Return Value
Alexa::ASK::Skill Alexa skill ID amzn1.ask.skill.a3103cee-c48c-40a0-a2c9-251141888863
AWS::AmazonMQ::Broker Amazon MQ broker ID b-1234a5b6-78cd-901e-2fgh-3i45j6k178l9
AWS::AmazonMQ::Configuration Amazon MQ configuration ID c-1234a5b6-78cd-901e-2fgh-3i45j6k178l9
AWS::AmazonMQ::ConfigurationAssociation Amazon MQ configurationassociation ID c-1234a5b6-78cd-901e-2fgh-3i45j6k178l9

AWS::ApiGateway::Account

API Gateway account resource ID

mysta-accou-01234b567890example

AWS::ApiGateway::ApiKey

API key

m2m1k7sybf

AWS::ApiGateway::Authorizer

Authorizer resource ID

abcde1

AWS::ApiGateway::ClientCertificate

Client certificate name

abc123

AWS::ApiGateway::Deployment

Deployment resource ID

abc123

AWS::ApiGateway::DocumentationPart

Documentation part ID

abc123

AWS::ApiGateway::DomainName

Domain name

example.mydomain.com

AWS::ApiGateway::Method

Method resource ID

mysta-metho-01234b567890example

AWS::ApiGateway::Model

Model name

myModel

AWS::ApiGateway::RequestValidator

Request validator ID

abc123

AWS::ApiGateway::Resource

API Gateway resource ID

abc123

AWS::ApiGateway::RestApi

Rest API resource ID

a1bcdef2gh

AWS::ApiGateway::Stage

Stage name

MyTestStage

AWS::ApiGateway::VpcLink

VPC link ID

gim7c3

AWS::ApiGatewayV2::Api

API resource ID

a1bcdef2gh

AWS::ApiGatewayV2::ApiMapping

API mapping resource ID

abc123

AWS::ApiGatewayV2::Authorizer

Authorizer resource ID

abc123

AWS::ApiGatewayV2::Deployment

Deployment resource ID

abc123

AWS::ApiGatewayV2::DomainName

Domain name

example.mydomain.com

AWS::ApiGatewayV2::Integration

Integration resource ID

abcd123

AWS::ApiGatewayV2::IntegrationResponse

Integration response resource ID

abcd123

AWS::ApiGatewayV2::Model

Model resource ID

abc123

AWS::ApiGatewayV2::Route

Route resource ID

abcd123

AWS::ApiGatewayV2::RouteResponse

Route response resource ID

abc123

AWS::ApiGatewayV2::Stage

Stage name

MyTestStage

AWS::ApplicationAutoScaling::ScalableTarget

Scalable Target ID

service/ecsStack-MyECSCluster-AB12CDE3F4GH/ecsStack-MyECSService-AB12CDE3F4GH|ecs:service:DesiredCount|ecs

AWS::ApplicationAutoScaling::ScalingPolicy

Application Auto Scaling policy Amazon Resource Name (ARN)

arn:aws:autoscaling:us-east-1:123456789012:scalingPolicy:12ab3c4d-56789-0ef1-2345-6ghi7jk8lm90:resource/ecs/service/ecsStack-MyECSCluster-AB12CDE3F4GH/ecsStack-MyECSService-AB12CDE3F4GH:policyName/MyStepPolicy
AWS::AppMesh::Mesh Mesh ARN arn:aws:appmesh:us-east-1:555555555555:mesh/myMesh
AWS::AppMesh::Route Route ARN arn:aws:appmesh:us-east-1:555555555555:route/myRoute
AWS::AppMesh::VirtualNode Virtual node ARN arn:aws:appmesh:us-east-1:555555555555:virtualNode/myVirtualNode
AWS::AppMesh::VirtualRouter Virtual router ARN arn:aws:appmesh:us-east-1:555555555555:virtualRouter/myVirtualRouter
AWS::AppMesh::VirtualService Virtual service ARN arn:aws:appmesh:us-east-1:555555555555:virtualService/myVirtualService

AWS::AppSync::ApiKey

ARN of the API Key

arn:aws:appsync:us-east-1:123456789012:apis/graphqlapiid/apikey/apikeya1bzhi

AWS::AppSync::DataSource

ARN of the Data Source

arn:aws:appsync:us-east-1:123456789012:apis/graphqlapiid/datasources/datasourcename

AWS::AppSync::FunctionConfiguration

ARN of the FunctionConfiguration

arn:aws:appsync:us-east-1:123456789012:apis/graphqlapiid/functions/functionid

AWS::AppSync::GraphQLApi

ARN of the GraphQL API

arn:aws:appsync:us-east-1:123456789012:apis/graphqlapiid

AWS::AppSync::GraphQLSchema

GraphQL API id with the literal String GraphQLSchema attached to it

AWS::AppSync::Resolver

ARN of the Resolver

arn:aws:appsync:us-east-1:123456789012:apis/graphqlapiid/types/typename/resolvers/resolvername

AWS::Athena::NamedQuery

Named query name

abc123

AWS::AutoScalingPlans::ScalingPlan

Amazon Resource Name (ARN) of the scaling plan

arn:aws:autoscaling:region:123456789012:scalingPlan:scalingPlanName/plan-name:scalingPlanVersion/plan-version

AWS::AutoScaling::AutoScalingGroup

Name

mystack-myasgroup-NT5EUXTNTXXD

AWS::AutoScaling::LaunchConfiguration

Name

mystack-mylaunchconfig-1DDYF1E3B3I

AWS::AutoScaling::LifecycleHook

Name

mylifecyclehookname

AWS::AutoScaling::ScalingPolicy

Scaling policy Amazon Resource Name (ARN)

arn:aws:autoscaling:us-east-1:123456789012:scalingPolicy:ab12c4d5-a1b2-a1b2-a1b2-ab12c4d56789:autoScalingGroupName/myStack-AutoScalingGroup-AB12C4D5E6:policyName/myStack-myScalingPolicy-AB12C4D5E6

AWS::AutoScaling::ScheduledAction

Name

mystack-myscheduledaction-NT5EUXTNTXXD

AWS::Backup::BackupPlan

BackupPlanId

a1b2c3d4-0123-4567-8901-a1b2c3d4e5f6

AWS::Backup::BackupSelection

BackupSelectionId

a1b2c3d4-0123-4567-8901-a1b2c3d4e5f6

AWS::Backup::BackupVault

BackupVaultName

Default

AWS::Batch::ComputeEnvironment

AWS Batch Compute Environment Amazon Resource Name (ARN)

arn:aws:batch:us-east-1:555555555555:compute-environment/M4OnDemand

AWS::Batch::JobDefinition

AWS Batch Job Definition Amazon Resource Name (ARN)

arn:aws:batch:us-east-1:111122223333:job-definition/test-gpu:2

AWS::Batch::JobQueue

AWS Batch Job Queue Amazon Resource Name (ARN)

arn:aws:batch:us-east-1:111122223333:job-queue/HighPriority

AWS::Budgets::Budget

Budget name

my-budget

AWS::CertificateManager::Certificate

Certificate Amazon Resource Name (ARN)

arn:aws:acm:us-east-1:123456789012:certificate/12ab3c4d-56789-0ef1-2345-3dab6fa3ee50

AWS::Cloud9::EnvironmentEC2

Development environment ID

2bc3642873c342e485f7e0c56example

AWS::CloudFormation::Stack

Stack ID

arn:aws:cloudformation:us-east-2:803981987763:stack/mystack-mynestedstack-sggfrhxhum7w/f449b250-b969-11e0-a185-5081d0136786

AWS::CloudFormation::WaitCondition

Name

arn:aws:cloudformation:us-east-2:803981987763:stack/mystack/c325e210-bdf2-11e0-9638-50690880c386/mywaithandle

AWS::CloudFormation::WaitConditionHandle

Wait Condition Signal URL

https://cloudformation-waitcondition-us-east-2.s3.amazonaws.com/arn%3Aaws%3Acloudformation%3Aus-east-2%3A803981987763%3Astack%2Fwaittest%2F054a33d0-bdee-11e0-8816-5081c490a786%2FmyWaitHandle?Expires=1312475488&AWSAccessKeyId=AKIAIOSFODNN7EXAMPLE&Signature=tUsrW3WvWVT46K69zMmgbEkwVGo%3D

AWS::CloudFront::Distribution

Distribution ID

E27LVI50CSW06W

AWS::CloudFront::CloudFrontOriginAccessIdentity

Origin access identity

E15MNIMTCFKK4C

AWS::CloudFront::StreamingDistribution

Streaming distribution ID

E1E7FEN9T35R9W

AWS::CloudTrail::Trail

Trail name

awscloudtrail-example

AWS::CloudWatch::Alarm

Name

mystack-myalarm-3AOHFRGOXR5T

AWS::CloudWatch::Dashboard

Name

AWS::CodeBuild::Project

Project name

myProjectName

AWS::CodeCommit::Repository

Repository ID

12a345b6-bbb7-4bb6-90b0-8c9577a2d2b9

AWS::CodeDeploy::Application

Application name

myapplication-a123d0d1

AWS::CodeDeploy::DeploymentConfig

Deployment configuration name

mydeploymentconfig-a123d0d1

AWS::CodeDeploy::DeploymentGroup

Deployment group name

mydeploymentgroup-a123d0d1

AWS::CodePipeline::CustomActionType

Custom action name

mysta-MyCus-A1BCDEFGHIJ2

AWS::CodePipeline::Pipeline

Pipeline name

mysta-MyPipeline-A1BCDEFGHIJ2

AWS::CodePipeline::Webhook

Webhook name

MyFirstPipeline-SourceAction1-Webhook-utb9LrOl24Kk

AWS::Cognito::IdentityPool

IdentityPoolId

us-east-2:0d01f4d7-1305-4408-b437-12345EXAMPLE

AWS::Cognito::IdentityPoolRoleAttachment

ID

IdentityPoolRoleAttachment-EXAMPLEwnOR3n

AWS::Cognito::UserPool

ID

us-east-2_zgaEXAMPLE

AWS::Cognito::UserPoolClient

Amazon Cognito user pool client ID

1h57kf5cpq17m0eml12EXAMPLE

AWS::Cognito::UserPoolGroup

Name of the user pool group

Admins

AWS::Cognito::UserPoolUser

Name of the user

admin

AWS::Cognito::UserPoolUserToGroupAttachment

ID

UserToGroupAttachment-YejJvzrEXAMPLE

AWS::Config::AggregationAuthorization

ARN of the AggregationAuthorization

arn:aws:config:us-east-1:123456789012:aggregation-authorization/987654321012/us-west-2

AWS::Config::ConfigRule

Configuration rule name

mystack-MyConfigRule-12ABCFPXHV4OV

AWS::Config::ConfigurationAggregator

ConfigurationAggregatorName

myConfigurationAggregator

AWS::Config::ConfigurationRecorder

Configuration recorder name

default

AWS::Config::DeliveryChannel

Delivery channel name

default

AWS::DataPipeline::Pipeline

Pipeline ID

df-sample322HVPGK130TOD

AWS::DAX::Cluster

Name

MyDAXCluster

AWS::DAX::ParameterGroup

ARN of the created parameter group

my-dax-parameter-group

AWS::DAX::SubnetGroup

ARN of the created activity

my-dax-subnet-group

AWS::DirectoryService::MicrosoftAD

Microsoft directory ID

d-12345ab592

AWS::DirectoryService::SimpleAD

Directory ID

d-12345ab592

AWS::DLM::LifecyclePolicy Policy ID

policy-0123456789abcdef0

AWS::DMS::Certificate

Amazon Resource Name (ARN) of the certificate

AWS::DMS::Endpoint

ARN of the endpoint

AWS::DMS::EventSubscription

Event subscription name

mystack-myEventSubscription-1DDYF1E3B3I

AWS::DMS::ReplicationInstance

Replication instance ARN

AWS::DMS::ReplicationSubnetGroup

Name of the replication subnet group

mystack-myrepsubnetgroup-0a12bc456789de0fg

AWS::DMS::ReplicationTask

Replication task ARN

AWS::DocDB::Cluster

DB cluster name

sample-cluster

AWS::DocDB::DBClusterParameterGroup

DB cluster parameter group name

default.docdb3.6

AWS::DocDB::DBInstance

DB instance name

sample-instance

AWS::DocDB::DBSubnetGroup

DB subnet group name

default

AWS::DynamoDB::Table

Table Name

MyDDBTable

AWS::EC2::CapacityReservation

Capacity Reservation ID

cr-1234ab5cd6789e0f1

AWS::EC2::CustomerGateway

Name

AWS::EC2::DHCPOptions

Name

AWS::EC2::EC2Fleet

Fleet ID

fleet-12a34b55-67cd-8ef9-ba9b-9208dEXAMPLE

AWS::EC2::EgressOnlyInternetGateway

ID of the egress-only Internet gateway

AWS::EC2::EIP

Elastic IP Address

192.0.2.0

AWS::EC2::EPIAssociation

Name

mystack-myeipa-1NU3IL8LJ313N

AWS::EC2::FlowLog

Flow log ID

fl-1a23b456

AWS::EC2::Host

Host ID

h-0ab123c45d67ef89

AWS::EC2::Instance

Instance ID

i-1234567890abcdef0

AWS::EC2::InternetGateway

Name

AWS::EC2::LaunchTemplate

Launch template ID

lt-01238c059e3466abc

AWS::EC2::NatGateway

NAT gateway ID

nat-0a12bc456789de0fg

AWS::EC2::NetworkAcl

Name

AWS::EC2::NetworkAclEntry

Name

AWS::EC2::NetworkInterface

Name

AWS::EC2::NetworkInterfaceAttachment

Name

AWS::EC2::NetworkInterfacePermission

Network interface permission ID

eni-perm-055663b682ea24b48

AWS::EC2::PlacementGroup

Placement group name

mystack-myplacementgroup-CU6107MRVLR7

AWS::EC2::Route

Name

AWS::EC2::RouteTable

Route table ID

rtb-12a34567

AWS::EC2::SecurityGroup

Name or security group ID (for VPC security groups that are not in a default VPC)

mystack-mysecuritygroup-QQB406M8FISX or sg-94b3a1f6

AWS::EC2::SecurityGroupEgress

Name

mysecuritygroupegress

AWS::EC2::SecurityGroupIngress

Name

mysecuritygroupingress

AWS::EC2::SpotFleet

Name

sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE

AWS::EC2::Subnet

Subnet ID

subnet-e19f0178

AWS::EC2::SubnetNetworkAclAssociation

Name

AWS::EC2::SubnetRouteTableAssociation

Name

AWS::EC2::TransitGateway

Transit gateway ID

tgw-1234567891234567

AWS::EC2::TransitGatewayAttachment

Attachment ID

tgw-attach-vpc-0d39e0d39e0d39e

AWS::EC2::TransitGatewayRoute

ID of the route table and destination CIDR, separated by an underscore

tgw-rtb-0ea209e5dcc99f3a3_0.0.0.0/0

AWS::EC2::TransitGatewayRouteTable

ID of the transit gateway route table

tgw-rtb-020b99a6568edc33a

AWS::EC2::TransitGatewayRouteTableAssociation

ID of the attachment and ID of the transit gateway route table, separated by an underscore

tgw-attach-0bbfdd70ef7d35f5d_tgw-rtb-020b99a6568edc33a

AWS::EC2::TransitGatewayRouteTablePropagation

ID of the attachment and ID of the propagation route table, separated by an underscore

tgw-attach-0bbfdd70ef7d35f5d_tgw-rtb-020b99a6568edc33a

AWS::EC2::Volume

Volume ID

vol-3cdd3f56

AWS::EC2::VolumeAttachment

Name

mystack-myvola-ERXHJITXMRLT

AWS::EC2::VPC

VPC ID

vpc-18ac277d

AWS::EC2::VPCDHCPOptionsAssociation

Name

AWS::EC2::VPCEndpoint

Endpoint ID

vpce-a123d0d1

AWS::EC2::VPCEndpointConnectionNotification

ID of the connection notification

AWS::EC2::VPCEndpointService

ID of the VPC endpoint service configuration

AWS::EC2::VPCEndpointServicePermissions

ID of the VPC endpoint service

AWS::EC2::VPCGatewayAttachment

Name

AWS::EC2::VPCPeeringConnection

VPC peering connection ID

pcx-75de3e1d

AWS::EC2::VPNConnection

Name

AWS::EC2::VPNConnectionRoute

Name

AWS::EC2::VPNGateway

Name

AWS::EC2::VPNGatewayRoutePropagation

Name

AWS::ECR::Repository

Repository name

test-repository

AWS::ECS::Cluster

Name

MyStack-MyECSCluster-NT5EUXTNTXXD

AWS::ECS::Service

Service ARN

arn:aws:ecs:us-west-2:123456789012:service/sample-webapp

AWS::ECS::TaskDefinition

Task definition ARN

arn:aws:ecs:us-west-2:123456789012:task-definition/TaskDefinitionFamily:1

AWS::EFS::FileSystem

File system ID

fs-47a2c22e

AWS::EFS::MountTarget

Mount target ID

fsmt-55a4413c

AWS::EKS::Cluster

Cluster name

EKSCluster-NT5EUXTNTXXD

AWS::ElastiCache::CacheCluster

Name

AWS::ElastiCache::ParameterGroup

Name

AWS::ElastiCache::ReplicationGroup

Name

abc12xmy3d1w3hv6

AWS::ElastiCache::SecurityGroup

CacheSecurityGroupName

AWS::ElastiCache::SubnetGroup

Name

myCachesubnetgroup

AWS::Elasticsearch::Domain

Domain name

mystack-elasticsea-abc1d2efg3h4

AWS::ElasticBeanstalk::Application

Name

mystack-myapplication-FM6BIXY7U8PK

AWS::ElasticBeanstalk::ApplicationVersion

Name

mystack-myapplicationversion-iy8ptveuxjly

AWS::ElasticBeanstalk::ConfigurationTemplate

Name

mystack-myconfigurationtemplate-108RPH64J195

AWS::ElasticBeanstalk::Environment

Name

mystack-myenv-LKGNQSFHO1DB

AWS::ElasticLoadBalancing::LoadBalancer

Name

mystack-myelb-1WQN7BJGDB5YQ

AWS::ElasticLoadBalancingV2::Listener

Listener's Amazon Resource Name (ARN)

arn:aws:elasticloadbalancing:us-west-2:123456789012:listener/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2

AWS::ElasticLoadBalancingV2::ListenerRule

Listener rule's Amazon Resource Name (ARN)

arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2/9683b2d02a6cabee

AWS::ElasticLoadBalancingV2::LoadBalancer

Application load balancer's Amazon Resource Name (ARN)

arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-internal-load-balancer/50dc6c495c0c9188

AWS::ElasticLoadBalancingV2::TargetGroup

Target group's Amazon Resource Name (ARN)

arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067

AWS::EMR::Cluster

Cluster ID

j-1ABCD123AB1A

AWS::EMR::InstanceGroupConfig

Instance group ID

ig-ABC12DEF3456

AWS::EMR::SecurityConfiguration

Name

mySecurityConfiguration

AWS::EMR::Step

Step ID

s-1A2BC3D4EFG56

AWS::Events::EventBusPolicy

Event bus policy ID

EventBusPolicy-1aBCdeFGh2J3

AWS::Events::Rule

Event rule ID

mystack-ScheduledRule-ABCDEFGHIJK

AWS::FSx::FileSystem

File system resource ID

fs-0d33333e999a7c66g

AWS::GameLift::Alias

Alias ID

myalias-a01234b56-7890-1de2-f345-g67h8i901j2k

AWS::GameLift::Build

Build ID

mybuild-a01234b56-7890-1de2-f345-g67h8i901j2k

AWS::GameLift::Fleet

Fleet ID

myfleet-a01234b56-7890-1de2-f345-g67h8i901j2k

AWS::Glue::Classifier

Name

abc123

AWS::Glue::Connection

ConnectionInput name

abc123

AWS::Glue::Crawler

Name

abc123

AWS::Glue::Database

DatabaseInput name

abc123

AWS::Glue::Job

Name

abc123

AWS::Glue::SecurityConfiguration

Name

AWS::Glue::Table

TableInput name

abc123

AWS::Glue::Trigger

Name

abc123

AWS::Greengrass::ConnectorDefinition

ID

1234a5b6-78cd-901e-2fgh-3i45j6k178l9

AWS::Greengrass::ConnectorDefinitionVersion

ARN

arn:aws:greengrass:us-east-1:123456789012:/greengrass/definition/connectors/1234a5b6-78cd-901e-2fgh-3i45j6k178l9/versions/9876ac30-4bdb-4f9d-95af-b5fdb66be1a2

AWS::Greengrass::CoreDefinition

ID

1234a5b6-78cd-901e-2fgh-3i45j6k178l9

AWS::Greengrass::CoreDefinitionVersion

ARN

arn:aws:greengrass:us-east-1:123456789012:/greengrass/definition/cores/1234a5b6-78cd-901e-2fgh-3i45j6k178l9/versions/9876ac30-4bdb-4f9d-95af-b5fdb66be1a2

AWS::Greengrass::DeviceDefinition

ID

1234a5b6-78cd-901e-2fgh-3i45j6k178l9

AWS::Greengrass::DeviceDefinitionVersion

ARN

arn:aws:greengrass:us-east-1:123456789012:/greengrass/definition/devices/1234a5b6-78cd-901e-2fgh-3i45j6k178l9/versions/9876ac30-4bdb-4f9d-95af-b5fdb66be1a2

AWS::Greengrass::FunctionDefinition

ID

1234a5b6-78cd-901e-2fgh-3i45j6k178l9

AWS::Greengrass::FunctionDefinitionVersion

ARN

arn:aws:greengrass:us-east-1:123456789012:/greengrass/definition/functions/1234a5b6-78cd-901e-2fgh-3i45j6k178l9/versions/9876ac30-4bdb-4f9d-95af-b5fdb66be1a2

AWS::Greengrass::Group

ID

1234a5b6-78cd-901e-2fgh-3i45j6k178l9

AWS::Greengrass::GroupVersion

ARN

arn:aws:greengrass:us-east-1:123456789012:/greengrass/definition/groups/1234a5b6-78cd-901e-2fgh-3i45j6k178l9/versions/9876ac30-4bdb-4f9d-95af-b5fdb66be1a2

AWS::Greengras::LoggerDefinition

ID

1234a5b6-78cd-901e-2fgh-3i45j6k178l9

AWS::Greengrass::LoggerDefinitionVersion

ARN

arn:aws:greengrass:us-east-1:123456789012:/greengrass/definition/loggers/1234a5b6-78cd-901e-2fgh-3i45j6k178l9/versions/9876ac30-4bdb-4f9d-95af-b5fdb66be1a2

AWS::Greengrass::ResourceDefinition

ID

1234a5b6-78cd-901e-2fgh-3i45j6k178l9

AWS::Greengrass::ResourceDefinitionVersion

ARN

arn:aws:greengrass:us-east-1:123456789012:/greengrass/definition/resources/1234a5b6-78cd-901e-2fgh-3i45j6k178l9/versions/9876ac30-4bdb-4f9d-95af-b5fdb66be1a2

AWS::Greengrass::SubscriptionDefinition

ID

1234a5b6-78cd-901e-2fgh-3i45j6k178l9

AWS::Greengrass::SubscriptionDefinitionVersion

ARN

arn:aws:greengrass:us-east-1:123456789012:/greengrass/definition/subscriptions/1234a5b6-78cd-901e-2fgh-3i45j6k178l9/versions/9876ac30-4bdb-4f9d-95af-b5fdb66be1a2

AWS::GuardDuty::Detector

Detector ID

12abc34d567e8fa901bc2d34e56789f0

AWS::GuardDuty::Filter

Name

SampleFilter

AWS::GuardDuty::IPSet

IPSet ID

0cb0141ab9fbde177613ab9436212e90

AWS::GuardDuty::Master

Master ID

012345678901

AWS::GuardDuty::Member

Member ID

012345678901

AWS::GuardDuty::ThreatIntelSet

ThreatIntel Set ID

12a34567890bc1de2345f67ab8901234

AWS::IAM::AccessKey

AccessKeyId

AKIAIOSFODNN7EXAMPLE

AWS::IAM::Group

Group name

mystack-mygroup-1DZETITOWEKVO

AWS::IAM::InstanceProfile

Name

AWS::IAM::ManagedPolicy

Policy ARN

arn:aws:iam::123456789012:policy/teststack-CreateTestDBPolicy-16M23YE3CS700

AWS::IAM::Policy

Name

AWS::IAM::Role

Name

MyRole

AWS::IAM::User

User name

mystack-myuser-1CCXAFG2H2U4D

AWS::IAM::UserToGroupAddition

Name

AWS::IoT::Certificate Certificate ID a1234567b89c012d3e4fg567hij8k9l01mno1p23q45678901rs234567890t1u2
AWS::IoT::Policy Policy name MyPolicyName
AWS::IoT::Thing Thing name MyStack-MyThing-AB1CDEFGHIJK
AWS::IoT::TopicRule Topic rule name MyStackMyTopicRule12ABC3D456EFG
AWS::IoT1Click::Device The device ARN arn:aws:iot1click:us-west-2:123456789012:devices/G030PX0312744DWM
AWS::IoT1Click::Placement The placement name (associated with a project) region3
AWS::IoT1Click::Project The project ARN arn:aws:iot1click:us-west-2:0123456789012:projects/seattle-region

AWS::Kinesis::Stream

Name

mystack-mystream-1NAOH4L1RIQ7I

AWS::Kinesis::StreamConsumer

Consumer ARN

arn:aws:kinesis:region:account-id:stream/stream-name/consumer/consumer-name:consumer-creation-timestamp

AWS::KinesisFirehose::DeliveryStream

Delivery stream name

mystack-deliverystream-1ABCD2EF3GHIJ

AWS::KMS::Alias

Alias name

alias/myAlias

AWS::KMS::Key

Key ID

123ab456-a4c2-44cb-95fd-b781f32fbb37

AWS::Lambda::Alias

Amazon Resource Name of the AWS Lambda alias

arn:aws:lambda:us-west-2:123456789012:function:helloworld:BETA

AWS::Lambda::EventSourceMapping

Name

MyStack-lambdaeventsourcemapping-CU6107MRVLR7

AWS::Lambda::Function

Name

MyStack-AMILookUp-NT5EUXTNTXXD

AWS::Lambda::LayerVersion

Layer version ARN

arn:aws:lambda:us-west-2:123456789012:layer:my-layer:1

AWS::Lambda::LayerVersionPermission

Layer version ARN with statement ID

arn:aws:lambda:us-west-2:123456789012:layer:my-layer:1#engineering-org

AWS::Lambda::Version

Amazon Resource Name of the AWS Lambda version

arn:aws:lambda:us-west-2:123456789012:function:helloworld:1

AWS::Logs::Destination

Destination name

TestDestination

AWS::Logs::LogGroup

Name

mystack-myLogGroup-1341JS4M96031

AWS::Logs::LogStream

Log stream name

MyAppLogStream

AWS::Logs::SubscriptionFilter

Subscription filter name

AWS::MediaStore::Container

Container name

AWS::Neptune::DBCluster

Name

AWS::Neptune::DBClusterParameterGroup

Name

AWS::Neptune::DBInstance

DBInstanceIdentifier

mystack-mydb-ea5ugmfvuaxg

AWS::Neptune::DBParameterGroup

Name

AWS::Neptune::DBSubnetGroup

Name

mystack-mydbsubnetgroup-0a12bc456789de0fg

AWS::OpsWorks::App

AWS OpsWorks Application ID

4fee5b96-0d10-4af1-bcc5-25f92e3c6acf

AWS::OpsWorks::Instance

AWS OpsWorks Instance ID

aa2e9ae2-2b4b-491c-aeb6-8bf3ce9400fe

AWS::OpsWorks::Layer

AWS OpsWorks Layer ID

730b238b-f7c4-461d-b7c0-3feb7ef1152a

AWS::OpsWorks::Stack

AWS OpsWorks Stack ID

5c9f04e8-370e-4bd3-ae09-a4bbcc2998bb

AWS::OpsWorks::UserProfile

IAM user Amazon Resource Name

arn:aws:iam::123456789012:user/opsworksuser

AWS::OpsWorks::Volume

AWS OpsWorks Volume ID

1ab23cd4-92ff-4501-b37c-example

AWS::OpsWorksCM::Server

AWS OpsWorks CM server Amazon Resource Name

arn:aws:OpsWorksCM:us-east-1:123456789012:server/server-a1bzhi

AWS::PinpointEmail::ConfigurationSet

The name of an Amazon Pinpoint Email API configuration set

myConfigurationSet

AWS::PinpointEmail::ConfigurationSetEventDestination

The name of an event destination in an Amazon Pinpoint Email API configuration set

myConfigurationSetEventDestination

AWS::PinpointEmail::DedicatedIpPool

The name of a dedicated IP pool used to send email through the Amazon Pinpoint Email API

myIpPool

AWS::PinpointEmail::Identity

The name (email address or domain name) of an identity used to send email by using the Amazon Pinpoint Email API.

sender@example.com

AWS::RAM::ResourceShare

Resource share ARN

arn:aws:ram:us-east-1:123456789012:resource-share/12345678-1234-1234-1234-12345678

AWS::RDS::DBCluster

Cluster name

test-rdscluster-pdedtss0mfqr

AWS::RDS::DBClusterParameterGroup

Parameter group name

test-dbparamgroup-4l8qqx46vjby

AWS::RDS::DBInstance

Name

mystack-mydb-ea5ugmfvuaxg

AWS::RDS::DBParameterGroup

Name

AWS::RDS::DBSecurityGroup

Name

mystack-mydbsecuritygroup-1k5u5dxjb0nxs

AWS::RDS::DBSecurityGroupIngress

Name

AWS::RDS::DBSubnetGroup

DB subnet group name

mystack-mydbsubnetgroup-1k5u5dxjb0nxs

AWS::RDS::EventSubscription

Name

mystack-myEventSubscription-1DDYF1E3B3I

AWS::RDS::OptionGroup

Name

mystack-myoptiongroup-1qmfawfea4vmz

AWS::Redshift::Cluster

Name

mystack-myredshiftcluster-ranmiv3f0mad

AWS::Redshift::ClusterParameterGroup

Name

mysta-mypar-1AJYM1FL3WQBW

AWS::Redshift::ClusterSecurityGroup

Name

mystack-myredshiftclustersecuritygroup-bjy2afmhy3ee

AWS::Redshift::ClusterSubnetGroup

Name

mystack-myredshiftclustersubnetgroup-aq6rsdq8rp71

AWS::RoboMaker::Fleet

Amazon Resource Name (ARN) of the fleet

arn:aws:robomaker:us-west-2:123456789012:deployment-fleet/MyFleet/1539894765711

AWS::RoboMaker::Robot

Amazon Resource Name (ARN) of the robot

arn:aws:robomaker:us-west-2:123456789012:robot/MyRobot/1544035373264

AWS::RoboMaker::RobotApplication

Amazon Resource Name (ARN) of the robot application

arn:aws:robomaker:us-west-2:123456789012:robot-application/MyRobotApplication/1546541208251

AWS::RoboMaker::RobotApplicationVersion

Amazon Resource Name (ARN) of the robot application version

arn:aws:robomaker:us-west-2:123456789012:robot-application/MyRobotApplication/1546541208251

AWS::RoboMaker::SimulationApplication

Amazon Resource Name (ARN) of the simulation application

arn:aws:robomaker:us-west-2:123456789012:simulation-application/MySimulationApplication/1546541201334

AWS::RoboMaker::SimulationApplicationVersion

Amazon Resource Name (ARN) of the simulation application version

arn:aws:robomaker:us-west-2:123456789012:simulation-application/MySimulationApplication/1546541201334

AWS::Route53::HealthCheck

Amazon Route 53 health check ID

e0a123b4-4dba-4650-935e-example

AWS::Route53::HostedZone

Hosted zone ID

Z23ABC4XYZL05B

AWS::Route53::RecordSet

Name

AWS::Route53::RecordSetGroup

Name

AWS::Route53Resolver::ResolverEndpoint

Endpoint ID

rslvr-out-fdc049932dexample

AWS::Route53Resolver::ResolverRule

Rule ID

rslvr-rr-5328a0899aexample

AWS::Route53Resolver::ResolverRuleAssociation

Resolver rule association ID

rslvr-rrassoc-97242eaf88example

AWS::S3::Bucket

Name

mystack-mys3bucket-1hbsmonr9mytq

AWS::SageMaker::Endpoint

Amazon Resource Name (ARN) of the endpoint

arn:aws:sagemaker:us-west-2:012345678901:endpoint/myendpoint

AWS::SageMaker::EndpointConfig

Amazon Resource Name (ARN) of the endpoint configuration

arn:aws:sagemaker:us-west-2:012345678901:endpoint-config/myendpointconfig

AWS::SageMaker::Model

Amazon Resource Name (ARN) of the model

arn:aws:sagemaker:us-west-2:012345678901:model/mymodel

AWS::SageMaker::NotebookInstance

Amazon Resource Name (ARN) of the notebook instance

arn:aws:sagemaker:us-west-2:012345678901:notebook-instance/mynotebookinstance

AWS::SageMaker::NotebookInstanceLifecycleConfig

Amazon Resource Name (ARN) of the lifecycle configuration

arn:aws:sagemaker:us-west-2:012345678901:notebook-instance-lifecycle-config/mylifecycleconfig

AWS::SecretsManager::ResourcePolicy

ARN of the secret

arn:aws:secretsmanager:us-west-2:123456789012:secret:my-path/my-secret-name-1a2b3c

AWS::SecretsManager::RotationSchedule

ARN of the secret

arn:aws:secretsmanager:us-west-2:123456789012:secret:my-path/my-secret-name-1a2b3c

AWS::SecretsManager::Secret Secret ARN arn:aws:secretsmanager:us-east-2:123456789012:secret:MyPath/MySecretName-a1b2c3

AWS::SecretsManager::SecretTargetAttachment

Secret ARN

arn:aws:secretsmanager:us-west-2:123456789012:secret:my-path/my-secret-name-1a2b3c

AWS::ServiceCatalog::AcceptedPortfolioShare

Id

AWS::ServiceCatalog::CloudFormationProduct

Provisioning artifact ID

prod-nd24wbqkm4pju

AWS::ServiceCatalog::CloudFormationProvisionedProduct

Provisioned product ID

pp-hfyszaotincww

AWS::ServiceCatalog::LaunchNotificationConstraint

Constraint ID

AWS::ServiceCatalog::LaunchRoleConstraint

Constraint ID

AWS::ServiceCatalog::LaunchTemplateConstraint

Constraint ID

AWS::ServiceCatalog::Portfolio

Portfolio ID

AWS::ServiceCatalog::PortfolioPrincipalAssociation

Association ID

AWS::ServiceCatalog::PortfolioProductAssociation

Association ID

AWS::ServiceCatalog::PortfolioShare

Portfolio share ID

AWS::ServiceCatalog::ResourceUpdateConstraint

Constraint ID

AWS::ServiceCatalog::TagOption

Tag option ID

AWS::ServiceCatalog::TagOptionAssociation

Association ID

AWS::ServiceDiscovery::HttpNamespace

Id

ns-d6wz3hq6kexample

AWS::ServiceDiscovery::Instance

Id

AWS::ServiceDiscovery::PrivateDnsNamespace

Id

AWS::ServiceDiscovery::PublicDnsNamespace

Id

AWS::ServiceDiscovery::Service

Id

AWS::SES::ConfigurationSet

Name

AWS::SES::ReceiptRule

Name

my-receipt-rule

AWS::SES::ReceiptRuleSet

Name

my-receipt-rule-set

AWS::SDB::Domain

Name

mystack-mysdbdomain-IVNAOZTDFVXL

AWS::SNS::Topic

Topic ARN

arn:aws:sns:us-east-2:123456789012:mystack-mytopic-NZJ5JSMVGFIE

AWS::SQS::Queue

Queue URL

https://sqs.us-east-2.amazonaws.com/803981987763/aa4-MyQueue-Z5NOSZO2PZE9

AWS::SSM::Document

SSM document name

ssm-myinstanceconfig-ABCNPH3XCAO6

AWS::SSM::MaintenanceWindow

Maintenance window ID

mw-abcde1234567890yz

AWS::SSM::MaintenanceWindowTarget

Maintenance window target ID

12a345b6-bbb7-4bb6-90b0-8c9577a2d2b9

AWS::SSM::MaintenanceWindowTask

Maintenance window task ID

12a345b6-bbb7-4bb6-90b0-8c9577a2d2b9

AWS::SSM::PatchBaseline

Patch baseline ID

pb-abcde1234567890yz

The ID of the default patch baseline provided by AWS is an ARN—for example arn:aws:ssm:us-west-2:123456789012:patchbaseline/abcde1234567890yz.

AWS::SSM::ResourceDataSync

Name

TestResourceDataSync

AWS::StepFunctions::Activity Amazon Resource Name (ARN) of the AWS Step Functions activity arn:aws:states:us-east-1:111122223333:activity:myActivity
AWS::StepFunctions::StateMachine ARN of the created Step Functions state machine arn:aws:states:us-east-1:111122223333:stateMachine:MyStateMachine-ABCDEFGHIJ1K

AWS::WAF::ByteMatchSet

Byte match ID

aabc123a-fb4f-4fc6-becb-2b00831cadcf

AWS::WAF::IPSet

IP set ID

aabc123a-fb4f-4fc6-becb-2b00831cadcf

AWS::WAF::Rule

Rule ID

aabc123a-fb4f-4fc6-becb-2b00831cadcf

AWS::WAF::SizeConstraintSet

Size constraint set ID

aabc123a-fb4f-4fc6-becb-2b00831cadcf

AWS::WAF::SqlInjectionMatchSet

SQL match set ID

aabc123a-fb4f-4fc6-becb-2b00831cadcf

AWS::WAF::WebACL

Web ACL ID

aabc123a-fb4f-4fc6-becb-2b00831cadcf

AWS::WAF::XssMatchSet

XSS match set ID

aabc123a-fb4f-4fc6-becb-2b00831cadcf

AWS::WAFRegional::ByteMatchSet

Byte match ID

aabc123a-fb4f-4fc6-becb-2b00831cadcf

AWS::WAFRegional::IPSet

IP set ID

aabc123a-fb4f-4fc6-becb-2b00831cadcf

AWS::WAFRegional::Rule

Rule ID

aabc123a-fb4f-4fc6-becb-2b00831cadcf

AWS::WAFRegional::SizeConstraintSet

Size constraint set ID

aabc123a-fb4f-4fc6-becb-2b00831cadcf

AWS::WAFRegional::SqlInjectionMatchSet

SQL match set ID

aabc123a-fb4f-4fc6-becb-2b00831cadcf

AWS::WAFRegional::WebACL

Web ACL ID

aabc123a-fb4f-4fc6-becb-2b00831cadcf

AWS::WAFRegional::XssMatchSet

XSS match set ID

aabc123a-fb4f-4fc6-becb-2b00831cadcf

AWS::WorkSpaces::Workspace

Workspace ID

ws-cdd1gggh7

Pseudo parameter

AWS::AccountId

123456789012

Pseudo parameter

AWS::NotificationARNs

[arn:aws:sns:us-east-1:123456789012:MyTopic]

Pseudo parameter

AWS::NoValue

Does not return a value.

Pseudo parameter

AWS::Partition

aws

Pseudo parameter

AWS::Region

us-east-2

Pseudo parameter

AWS::StackId

arn:aws:cloudformation:us-east-1:123456789012:stack/MyStack/1c2fa620-982a-11e3-aff7-50e2416294e0

Pseudo parameter

AWS::StackName

MyStack

Pseudo parameter

AWS::URLSuffix

amazonaws.com