Amazon resource name format for Elastic Beanstalk - Amazon Elastic Beanstalk
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Amazon resource name format for Elastic Beanstalk

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



  • region is the region the resource resides in (for example, us-west-2).

  • account-id is the Amazon account ID, with no hyphens (for example, 123456789012)

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

  • resource-path is the portion that identifies the specific resource. An 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:


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 type Format for ARN



Example: arn:aws-cn:elasticbeanstalk:us-west-2:123456789012:application/My App



Example: arn:aws-cn:elasticbeanstalk:us-west-2:123456789012:applicationversion/My App/My Version



Example: arn:aws-cn:elasticbeanstalk:us-west-2:123456789012:configurationtemplate/My App/My Template



Example: arn:aws-cn:elasticbeanstalk:us-west-2:123456789012:environment/My App/MyEnvironment



Example: arn:aws-cn:elasticbeanstalk:us-west-2:123456789012:platform/MyPlatform/1.0



Example: arn:aws-cn:elasticbeanstalk:us-west-2::solutionstack/32bit Amazon Linux running Tomcat 7

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 Amazon account and do not have the application or Amazon account in their ARNs.