Amazon Resource Names (ARNs) in AWS GovCloud (US)
Amazon Resource Names (ARNs) uniquely identify AWS resources. We require an ARN when you need to specify a resource unambiguously across all of AWS, such as in IAM policies, Amazon S3 bucket names, and API calls. In the AWS GovCloud (US) Region, ARNs have an identifier that is different from the one in other AWS regions. For all other regions, ARNs begin with:
arn:aws
In the AWS GovCloud (US) Region, ARNs begin with:
arn:aws-us-gov
If an ARN requires a region, for the AWS GovCloud (US) Region, the region should be
identified as us-gov-west-1.
Topics
ARN Format
Here are some example ARNs:
<!-- IAM user name --> arn:aws-us-gov:iam::123456789012:David <!-- Amazon EC2 instances --> arn:aws-us-gov:ec2:us-gov-west-1:001234567890:instance/* <!-- Amazon S3 bucket (and all objects in it)--> arn:aws-us-gov:s3:::my_corporate_bucket/*
The following are the general formats for ARNs. The specific components and values used depend on the AWS service.
arn:aws-us-gov:service:region:account:resourcearn:aws-us-gov:service:region:account:resourcetype/resourcearn:aws-us-gov:service:region:account:resourcetype:resource
service-
The service namespace that identifies the AWS product (for example, Amazon S3 or IAM). For a list of namespaces, see AWS Service Namespaces in the Amazon Web Services General Reference.
region-
The region in which the resource reside. The ARNs for some resources do not require a region, so this component might be omitted. For the AWS GovCloud (US) Region, the region is
us-gov-west-1. account-
The ID of the AWS account that owns the resource, without the hyphens (for example, 123456789012). The ARNs for some resources don't require an account number, so this component might be omitted.
resource,resourcetype:resource, orresourcetype/resource-
The content of this part of the ARN varies by service. It often includes an indicator of the type of resource—for example, IAM user—followed by a slash (
/) or a colon (:), followed by the resource name itself. Some services allow paths for resource names, as described in Paths in ARNs.
Example ARNs
The following sections provide syntax and examples of the ARNs for different services. For more information about using ARNs in a specific AWS service, see the documentation for that service.
Topics
- Amazon API Gateway
- Auto Scaling
- AWS Certificate Manager
- Amazon CloudWatch Events
- AWS CodeDeploy
- AWS Config
- AWS Database Migration Service
- Amazon DynamoDB
- AWS Elastic Beanstalk
- Amazon Elastic Compute Cloud
- AWS Identity and Access Management
- Amazon Kinesis Streams
- AWS Lambda
- Amazon Rekognition
- Amazon Simple Notification Service
- Amazon Simple Queue Service
- Amazon Simple Storage Service
- Amazon Simple Workflow Service
Amazon API Gateway
Syntax:
arn:aws-us-gov:apigateway:region::resource-patharn:aws-us-gov:execute-api:region:account-id:api-id/stage-name/HTTP-VERB/resource-path
Example:
arn:aws-us-gov:apigateway:us-gov-west-1::/restapis/a123456789012bc3de45678901f23a45/*
arn:aws-us-gov:apigateway:us-gov-west-1::a123456789012bc3de45678901f23a45:/test/mydemoresource/*
arn:aws-us-gov:apigateway*::a123456789012bc3de45678901f23a45:/*/petstorewalkthrough/pets
arn:aws-us-gov:execute-api: us-gov-west-1:123456789012:qsxrty/test/GET/mydemoresource/*
Auto Scaling
Syntax:
arn:aws-us-gov:autoscaling:region:account:scalingPolicy:policyid:autoScalingGroupName/groupfriendlyname:policyname/policyfriendlynamearn:aws-us-gov:autoscaling:region:account:autoScalingGroup:groupid:autoScalingGroupName/groupfriendlyname
Example:
arn:aws-us-gov:autoscaling:us-gov-west-1:123456789012:scalingPolicy:c7a27f55-d35e-4153-b044-8ca9155fc467:autoScalingGroupName/my-test-asg1:policyName/my-scaleout-policy
AWS Certificate Manager
Syntax:
arn:aws-us-gov:acm:region:account-id:certificate/certificate-id
Example:
arn:aws-us-gov:acm:us-gov-west-1:123456789012:certificate/12345678-1234-1234-1234-123456789012
Amazon CloudWatch Events
Syntax:
arn:aws-us-gov:events:us-gov-west-1:*:*
arn:aws-us-gov:events:us-gov-west-1:123456789012:*
arn:aws-us-gov:events:us-gov-west-1:123456789012:rule/my-rule
AWS CodeDeploy
Syntax:
arn:aws-us-gov:codedeploy:account-id:application/applicationname
arn:aws-us-gov:codedeploy:account-id:deploymentgroup/deployment-group-name
arn:aws-us-gov:codedeploy:account-id:deploymentconfig/deployment-configuration-name
arn:aws-us-gov:codedeploy:account-id:instance/instanceid
arn:aws-us-gov:codedeploy:*
arn:aws-us-gov:codedeploy:account-id:*
AWS Config
Syntax:
arn:aws-us-gov:config:region:account-id:config-rule/config-rule-name
Example:
arn:aws-us-gov:config:us-gov-west-1:123456789012:config-rule/MyConfigRule
AWS Database Migration Service
Syntax:
arn:aws-us-gov:dms:region:account number:resourcetype:resourcename
Example:
arn:aws-us-gov:dms:us-gov-west-1:123456789012:rep:QLXQZ64MH7CXF4QCQMGRVYVXAI
Amazon DynamoDB
Syntax:
arn:aws-us-gov:dynamodb:region:account:table/tablename
Example:
arn:aws-us-gov:dynamodb:us-gov-west-1:123456789012:table/books_table
AWS Elastic Beanstalk
Syntax:
arn:aws-us-gov:elasticbeanstalk:region:accountid:application/applicationname
arn:aws-us-gov:elasticbeanstalk:region:accountid:applicationversion/applicationname/versionlabel
arn:aws-us-gov:elasticbeanstalk:region:accountid:configurationtemplate/applicationname/templatename
arn:aws-us-gov:elasticbeanstalk:region:accountid:environment/applicationname/environmentname
arn:aws-us-gov:elasticbeanstalk:region:ACCOUNT_ID:platform/PLATFORM_NAME/PLATFORM_VERSION
arn:aws-us-gov:elasticbeanstalk:region::solutionstack/solutionstackname
Examples:
arn:aws-us-gov:elasticbeanstalk:us-west-2:123456789012:application/My App
arn:aws-us-gov:elasticbeanstalk:us-west-2:123456789012:applicationversion/My App/My Version
arn:aws-us-gov:elasticbeanstalk:us-west-2:123456789012:configurationtemplate/My App/My Template
arn:aws-us-gov:elasticbeanstalk:us-west-2:123456789012:environment/My App/MyEnvironment
arn:aws-us-gov:elasticbeanstalk:us-west-2:123456789012:platform/MyPlatform/1.0
arn:aws-us-gov:elasticbeanstalk:us-west-2::solutionstack/32bit Amazon Linux running Tomcat 7
Amazon Elastic Compute Cloud
Syntax:
arn:aws-us-gov:ec2:region:account:instance/instance-idarn:aws-us-gov:ec2:region:account:placement-group/placement-group-namearn:aws-us-gov:ec2:region::snapshot/snapshot-idarn:aws-us-gov:ec2:region:account:volume/volume-id
Examples:
arn:aws-us-gov:ec2:us-gov-west-1:123456789012:instance/* arn:aws-us-gov:ec2:us-gov-west-1:123456789012:volume/* arn:aws-us-gov:ec2:us-gov-west-1:123456789012:volume/vol-1a2b3c4d
AWS Identity and Access Management
Syntax:
arn:aws-us-gov:iam::account:root arn:aws-us-gov:iam::account:user/usernamearn:aws-us-gov:iam::account:group/groupnamearn:aws-us-gov:iam::account:role/rolenamearn:aws-us-gov:iam::account:instance-profile/instanceprofilenamearn:aws-us-gov:sts::account:federated-user/usernamearn:aws-us-gov:iam::account:mfa/virtualdevicenamearn:aws-us-gov:iam::account:server-certificate/certificatename
Examples:
arn:aws-us-gov:iam::123456789012:root arn:aws-us-gov:iam::123456789012:user/Bob arn:aws-us-gov:iam::123456789012:user/division_abc/subdivision_xyz/Bob arn:aws-us-gov:iam::123456789012:group/Developers arn:aws-us-gov:iam::123456789012:group/division_abc/subdivision_xyz/product_A/Developers arn:aws-us-gov:iam::123456789012:role/S3Access arn:aws-us-gov:iam::123456789012:role/application_abc/component_xyz/S3Access arn:aws-us-gov:iam::123456789012:instance-profile/Webserver arn:aws-us-gov:sts::123456789012:federated-user/Bob arn:aws-us-gov:iam::123456789012:mfa/BobJonesMFA arn:aws-us-gov:iam::123456789012:server-certificate/ProdServerCert arn:aws-us-gov:iam::123456789012:server-certificate/division_abc/subdivision_xyz/ProdServerCert
Amazon Kinesis Streams
Syntax:
arn:aws-us-gov:kinesis:region:account:stream/stream-name
Examples:
arn:aws-us-gov:kinesis:us-gov-west-1:123456789012:stream/my_stream
AWS Lambda
Syntax:
arn:aws-us-gov:lambda:account-id:function:function-name
arn:aws-us-gov:lambda:account-id:function:function-name:alias-name
arn:aws-us-gov:lambda:account-id:function:function-name:version
arn:aws-us-gov:lambda:account-id:event-source-mappings:event-source-mapping-id
Examples:
arn:aws-us-gov:lambda:us-gov-west-1:123456789012:function:ProcessKinesisRecords
arn:aws-us-gov:lambda:us-gov-west-1:123456789012:function:ProcessKinesisRecords:your alias
arn:aws-us-gov:lambda:us-gov-west-1:123456789012:function:ProcessKinesisRecords:1.0
arn:aws-us-gov:lambda:us-gov-west-1:123456789012:event-source-mappings:kinesis-stream-arn
Amazon Rekognition
Syntax:
arn:aws-us-gov:rekognition:region:account-id:collection/collection-idarn:aws-us-gov:rekognition:region:account-id:*
Examples:
arn:aws-us-gov:rekognition:us-gov-west-1:123456789012:mycollection/mycollection-id arn:aws-us-gov:rekognition:us-gov-west-1:123456789012:mycollection
Amazon Simple Notification Service
Syntax:
arn:aws-us-gov:sns:region:account:topicnamearn:aws-us-gov:sns:region:account:topicname:subscriptionid
Examples:
arn:aws-us-gov:sns:us-gov-west-1:123456789012:my_corporate_topic arn:aws-us-gov:sns:us-gov-west-1:123456789012:my_corporate_topic:02034b43-fefa-4e07-a5eb-3be56f8c54ce
Amazon Simple Queue Service
Syntax:
arn:aws-us-gov:sqs:region:account:queuename
Example:
arn:aws-us-gov:sqs:us-gov-west-1:123456789012:queue1
Amazon Simple Storage Service
Syntax:
arn:aws-us-gov:s3:::bucketnamearn:aws-us-gov:s3:::bucketname/objectpath
Amazon S3 does not require an account number or region in ARNs.
Examples:
arn:aws-us-gov:s3:::my_corporate_bucket arn:aws-us-gov:s3:::my_corporate_bucket/* arn:aws-us-gov:s3:::my_corporate_bucket/Development/*
Amazon Simple Workflow Service
Syntax:
arn:aws-us-gov:swf:region:account:domain/domainname
Examples:
arn:aws-us-gov:swf:us-gov-west-1:123456789012:domain/department1 arn:aws-us-gov:swf:us-gov-west-1:123456789012:/domain/*
Paths in ARNs
Some services let you specify a path for the resource name. For example, in Amazon
S3,
the resource identifier is an object name that can include slashes (/)
to form a path. Similarly, IAM user names and group names can include paths.
Paths can include wildcard characters such as an asterisk (*). For
example, to specify all IAM users whose user name includes the prefix
product_1234, you can use a wildcard like this:
arn:aws-us-gov:iam::123456789012:user/Development/product_1234/*
To specify all IAM users or IAM groups in the AWS account, use a wildcard
after the user/ or group/part of the ARN,
respectively.
arn:aws-us-gov:iam::123456789012:user/* arn:aws-us-gov:iam::123456789012:group/*
The following example shows ARNs for an Amazon S3 bucket in which the resource name includes a path:
arn:aws-us-gov:s3:::my_corporate_bucket/* arn:aws-us-gov:s3:::my_corporate_bucket/Development/*
You cannot use a wildcard in the resource type, such as the term user
in an IAM ARN. The following is not allowed:
arn:aws-us-gov:iam::123456789012:u*
For more information, see Amazon Resource Names (ARNs) and AWS Service Namespaces.




