AWS Elastic Beanstalk
Developer Guide (API Version 2010-12-01)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Go to the Kindle Store to download this guide in Kindle format.Did this page help you?  Yes | No |  Tell us about it...

Amazon Resource Name (ARN) Format for AWS Elastic Beanstalk

You specify a resource for an IAM policy using that resource's Amazon Resource Name (ARN). For AWS Elastic Beanstalk, the ARN has the following format.

arn:aws:elasticbeanstalk:region:accountid:resourcetype/resourcepath

Where:

  • region is the region the resource resides in (for example, us-east-1).

  • accountid is the AWS account ID, with no hyphens (for example, 123456789012)

  • resourcetype identifies the type of the AWS Elastic Beanstalk resource—for example, environment. See the table below for a list of all AWS Elastic Beanstalk resource types.

  • resourcepath is the portion that identifies the specific resource. An AWS Elastic Beanstalk resource has a path that uniquely identifies that resource. See the table below for the format of the resource path for each resource type. For example, an environment is always associated with an application. The resource path for the environment myEnvironment in the application myApp would look like this:

    myApp/myEnvironment

AWS Elastic Beanstalk has several types of resources you can specify in a policy. The following table shows the ARN format for each resource type and an example.

Resource TypeFormat for ARN

application

arn:aws:elasticbeanstalk:region:accountid:application/applicationname

Example: arn:aws:elasticbeanstalk:us-east-1:123456789012:application/My App

applicationversion

arn:aws:elasticbeanstalk:region:accountid:applicationversion/applicationname/versionlabel

Example: arn:aws:elasticbeanstalk:us-east-1:123456789012:applicationversion/My App/My Version

environment

arn:aws:elasticbeanstalk:region:accountid:environment/applicationname/environmentname

Example: arn:aws:elasticbeanstalk:us-east-1:123456789012:environment/My App/MyEnvironment

solutionstack

arn:aws:elasticbeanstalk:region::solutionstack/solutionstackname

Example: arn:aws:elasticbeanstalk:us-east-1::solutionstack/32bit Amazon Linux running Tomcat 7

template

arn:aws:elasticbeanstalk:region:accountid:template/applicationname/templatename

Example: arn:aws:elasticbeanstalk:us-east-1:123456789012:template/My App/My Template

An environment, application version, and configuration template are always contained within a specific application. You'll notice that these resources all have an application name in their resource path so that they are uniquely identified by their resource name and the containing application. Although solution stacks are used by configuration templates and environments, solution stacks are not specific to an application or AWS account and do not have the application or AWS account in their ARNs.