Policy information for Elastic Beanstalk actions, including resources, conditions, examples, and
dependencies
Resource |
Conditions |
Example statement |
Action:
AbortEnvironmentUpdate |
application
environment
|
aws:ResourceTag/key-name (Optional)
aws:TagKeys (Optional)
|
The following policy allows a user to abort environment update operations on
environments in an application named My App .
- JSON
-
-
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"elasticbeanstalk:AbortEnvironmentUpdate"
],
"Effect": "Allow",
"Resource": [
"arn:aws:elasticbeanstalk:us-east-2:123456789012:application/My App"
]
}
]
}
|
Action:
CheckDNSAvailability |
"*"
|
N/A
|
- JSON
-
-
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"elasticbeanstalk:CheckDNSAvailability"
],
"Effect": "Allow",
"Resource": "*"
}
]
}
|
Action:
ComposeEnvironments |
application
|
aws:ResourceTag/key-name (Optional)
aws:TagKeys (Optional)
|
The following policy allows a user to compose environments that belong to an
application named My App .
- JSON
-
-
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"elasticbeanstalk:ComposeEnvironments"
],
"Effect": "Allow",
"Resource": [
"arn:aws:elasticbeanstalk:us-east-2:123456789012:environment/My App"
]
}
]
}
|
Action:
CreateApplication |
application
|
aws:RequestTag/key-name (Optional)
aws:TagKeys (Optional)
|
This example allows the CreateApplication action to create
applications whose names begin with DivA :
- JSON
-
-
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"elasticbeanstalk:CreateApplication"
],
"Effect": "Allow",
"Resource": [
"arn:aws:elasticbeanstalk:us-east-2:123456789012:application/DivA*"
]
}
]
}
|
Action:
CreateApplicationVersion |
applicationversion
|
InApplication
aws:RequestTag/key-name (Optional)
aws:TagKeys (Optional)
|
This example allows the CreateApplicationVersion action to create
application versions with any name (* ) in the application
My App :
- JSON
-
-
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"elasticbeanstalk:CreateApplicationVersion"
],
"Effect": "Allow",
"Resource": [
"arn:aws:elasticbeanstalk:us-east-2:123456789012:applicationversion/My App/*"
],
"Condition": {
"StringEquals": {
"elasticbeanstalk:InApplication": ["arn:aws:elasticbeanstalk:us-east-2:123456789012:application/My App"]
}
}
}
]
}
|
Action:
CreateConfigurationTemplate |
configurationtemplate
|
InApplication
FromApplication
FromApplicationVersion
FromConfigurationTemplate
FromEnvironment
FromSolutionStack
aws:RequestTag/key-name (Optional)
aws:TagKeys (Optional)
|
The following policy allows the CreateConfigurationTemplate action
to create configuration templates whose name begins with My
Template (My Template* ) in the application My
App :
- JSON
-
-
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"elasticbeanstalk:CreateConfigurationTemplate"
],
"Effect": "Allow",
"Resource": [
"arn:aws:elasticbeanstalk:us-east-2:123456789012:configurationtemplate/My App/My Template*"
],
"Condition": {
"StringEquals": {
"elasticbeanstalk:InApplication": ["arn:aws:elasticbeanstalk:us-east-2:123456789012:application/My App"],
"elasticbeanstalk:FromSolutionStack": ["arn:aws:elasticbeanstalk:us-east-2::solutionstack/32bit Amazon Linux running Tomcat 7"]
}
}
}
]
}
|
Action:
CreateEnvironment |
environment
|
InApplication
FromApplicationVersion
FromConfigurationTemplate
FromSolutionStack
aws:RequestTag/key-name (Optional)
aws:TagKeys (Optional)
|
The following policy allows the CreateEnvironment action to create
an environment whose name is myenv in the application
My App and using the solution stack 32bit Amazon
Linux running Tomcat 7 :
- JSON
-
-
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"elasticbeanstalk:CreateEnvironment"
],
"Effect": "Allow",
"Resource": [
"arn:aws:elasticbeanstalk:us-east-2:123456789012:environment/My App/myenv"
],
"Condition": {
"StringEquals": {
"elasticbeanstalk:InApplication": ["arn:aws:elasticbeanstalk:us-east-2:123456789012:application/My App"],
"elasticbeanstalk:FromApplicationVersion": ["arn:aws:elasticbeanstalk:us-east-2:123456789012:applicationversion/My App/My Version"],
"elasticbeanstalk:FromSolutionStack": ["arn:aws:elasticbeanstalk:us-east-2::solutionstack/32bit Amazon Linux running Tomcat 7"]
}
}
}
]
}
|
Action:
CreatePlatformVersion |
platform
|
aws:RequestTag/key-name (Optional)
aws:TagKeys (Optional)
|
This example allows the CreatePlatformVersion action to create
platform versions targeting the us-east-2 region, whose names begin with us-east-2_ :
- JSON
-
-
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"elasticbeanstalk:CreatePlatformVersion"
],
"Effect": "Allow",
"Resource": [
"arn:aws:elasticbeanstalk:us-east-2:123456789012:platform/us-east-2_*"
]
}
]
}
|
Action:
CreateStorageLocation |
"*"
|
N/A
|
- JSON
-
-
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"elasticbeanstalk:CreateStorageLocation"
],
"Effect": "Allow",
"Resource": "*"
}
]
}
|
Action:
DeleteApplication |
application
|
aws:ResourceTag/key-name (Optional)
aws:TagKeys (Optional)
|
The following policy allows the DeleteApplication action to delete
the application My App :
- JSON
-
-
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"elasticbeanstalk:DeleteApplication"
],
"Effect": "Allow",
"Resource": [
"arn:aws:elasticbeanstalk:us-east-2:123456789012:application/My App"
]
}
]
}
|
Action:
DeleteApplicationVersion |
applicationversion
|
InApplication
aws:ResourceTag/key-name (Optional)
aws:TagKeys (Optional)
|
The following policy allows the DeleteApplicationVersion action to
delete an application version whose name is My Version in the
application My App :
- JSON
-
-
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"elasticbeanstalk:DeleteApplicationVersion"
],
"Effect": "Allow",
"Resource": [
"arn:aws:elasticbeanstalk:us-east-2:123456789012:applicationversion/My App/My Version"
],
"Condition": {
"StringEquals": {
"elasticbeanstalk:InApplication": ["arn:aws:elasticbeanstalk:us-east-2:123456789012:application/My App"]
}
}
}
]
}
|
Action:
DeleteConfigurationTemplate |
configurationtemplate
|
InApplication (Optional)
aws:ResourceTag/key-name (Optional)
aws:TagKeys (Optional)
|
The following policy allows the DeleteConfigurationTemplate action
to delete a configuration template whose name is My Template
in the application My App . Specifying the application name as
a condition is optional.
- JSON
-
-
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"elasticbeanstalk:DeleteConfigurationTemplate"
],
"Effect": "Allow",
"Resource": [
"arn:aws:elasticbeanstalk:us-east-2:123456789012:configurationtemplate/My App/My Template"
]
}
]
}
|
Action:
DeleteEnvironmentConfiguration |
environment
|
InApplication (Optional)
|
The following policy allows the DeleteEnvironmentConfiguration
action to delete a draft configuration for the environment
myenv in the application My App .
Specifying the application name as a condition is optional.
- JSON
-
-
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"elasticbeanstalk:DeleteEnvironmentConfiguration"
],
"Effect": "Allow",
"Resource": [
"arn:aws:elasticbeanstalk:us-east-2:123456789012:environment/My App/myenv"
]
}
]
}
|
Action:
DeletePlatformVersion |
platform
|
aws:ResourceTag/key-name (Optional)
aws:TagKeys (Optional)
|
The following policy allows the DeletePlatformVersion action to delete
platform versions targeting the us-east-2 region, whose names begin with us-east-2_ :
- JSON
-
-
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"elasticbeanstalk:DeletePlatformVersion"
],
"Effect": "Allow",
"Resource": [
"arn:aws:elasticbeanstalk:us-east-2:123456789012:platform/us-east-2_*"
]
}
]
}
|
Action:
DescribeApplications |
application
|
aws:ResourceTag/key-name (Optional)
aws:TagKeys (Optional)
|
The following policy allows the DescribeApplications action to
describe the application My App.
- JSON
-
-
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"elasticbeanstalk:DescribeApplications"
],
"Effect": "Allow",
"Resource": [
"arn:aws:elasticbeanstalk:us-east-2:123456789012:application/My App"
]
}
]
}
|
Action:
DescribeApplicationVersions |
applicationversion
|
InApplication (Optional)
aws:ResourceTag/key-name (Optional)
aws:TagKeys (Optional)
|
The following policy allows the DescribeApplicationVersions action
to describe the application version My Version in the
application My App . Specifying the application name as a
condition is optional.
- JSON
-
-
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"elasticbeanstalk:DescribeApplicationVersions"
],
"Effect": "Allow",
"Resource": [
"arn:aws:elasticbeanstalk:us-east-2:123456789012:applicationversion/My App/My Version"
]
}
]
}
|
Action:
DescribeConfigurationOptions |
environment
configurationtemplate
solutionstack
|
InApplication (Optional)
aws:ResourceTag/key-name (Optional)
aws:TagKeys (Optional)
|
The following policy allows the DescribeConfigurationOptions action
to describe the configuration options for the environment
myenv in the application My App .
Specifying the application name as a condition is optional.
- JSON
-
-
{
"Version": "2012-10-17",
"Statement": [
{
"Action": "elasticbeanstalk:DescribeConfigurationOptions",
"Effect": "Allow",
"Resource": [
"arn:aws:elasticbeanstalk:us-east-2:123456789012:environment/My App/myenv"
]
}
]
}
|
Action:
DescribeConfigurationSettings |
environment
configurationtemplate
|
InApplication (Optional)
aws:ResourceTag/key-name (Optional)
aws:TagKeys (Optional)
|
The following policy allows the DescribeConfigurationSettings
action to describe the configuration settings for the environment
myenv in the application My App .
Specifying the application name as a condition is optional.
- JSON
-
-
{
"Version": "2012-10-17",
"Statement": [
{
"Action": "elasticbeanstalk:DescribeConfigurationSettings",
"Effect": "Allow",
"Resource": [
"arn:aws:elasticbeanstalk:us-east-2:123456789012:environment/My App/myenv"
]
}
]
}
|
Action:
DescribeEnvironmentHealth |
environment
|
aws:ResourceTag/key-name (Optional)
aws:TagKeys (Optional)
|
The following policy allows use of DescribeEnvironmentHealth to
retrieve health information for an environment named
myenv .
- JSON
-
-
{
"Version": "2012-10-17",
"Statement": [
{
"Action": "elasticbeanstalk:DescribeEnvironmentHealth",
"Effect": "Allow",
"Resource": [
"arn:aws:elasticbeanstalk:us-east-2:123456789012:environment/My App/myenv"
]
}
]
}
|
Action:
DescribeEnvironmentResources |
environment
|
InApplication (Optional)
aws:ResourceTag/key-name (Optional)
aws:TagKeys (Optional)
|
The following policy allows the DescribeEnvironmentResources action
to return list of AWS resources for the environment myenv in
the application My App . Specifying the application name as a
condition is optional.
- JSON
-
-
{
"Version": "2012-10-17",
"Statement": [
{
"Action": "elasticbeanstalk:DescribeEnvironmentResources",
"Effect": "Allow",
"Resource": [
"arn:aws:elasticbeanstalk:us-east-2:123456789012:environment/My App/myenv"
]
}
]
}
|
Action:
DescribeEnvironments |
environment
|
InApplication (Optional)
aws:ResourceTag/key-name (Optional)
aws:TagKeys (Optional)
|
The following policy allows the DescribeEnvironments action to
describe the environments myenv and
myotherenv in the application My
App . Specifying the application name as a condition is optional.
- JSON
-
-
{
"Version": "2012-10-17",
"Statement": [
{
"Action": "elasticbeanstalk:DescribeEnvironments",
"Effect": "Allow",
"Resource": [
"arn:aws:elasticbeanstalk:us-east-2:123456789012:environment/My App/myenv",
"arn:aws:elasticbeanstalk:us-east-2:123456789012:environment/My App2/myotherenv"
]
}
]
}
|
Action:
DescribeEvents |
application
applicationversion
configurationtemplate
environment
|
InApplication
aws:ResourceTag/key-name (Optional)
aws:TagKeys (Optional)
|
The following policy allows the DescribeEvents action to list event
descriptions for the environment myenv and the application
version My Version in the application My
App .
- JSON
-
-
{
"Version": "2012-10-17",
"Statement": [
{
"Action": "elasticbeanstalk:DescribeEvents",
"Effect": "Allow",
"Resource": [
"arn:aws:elasticbeanstalk:us-east-2:123456789012:environment/My App/myenv",
"arn:aws:elasticbeanstalk:us-east-2:123456789012:applicationversion/My App/My Version"
],
"Condition": {
"StringEquals": {
"elasticbeanstalk:InApplication": ["arn:aws:elasticbeanstalk:us-east-2:123456789012:application/My App"]
}
}
}
]
}
|
Action:
DescribeInstancesHealth |
environment
|
N/A
|
The following policy allows use of DescribeInstancesHealth to
retrieve health information for instances in an environment named
myenv .
- JSON
-
-
{
"Version": "2012-10-17",
"Statement": [
{
"Action": "elasticbeanstalk:DescribeInstancesHealth",
"Effect": "Allow",
"Resource": [
"arn:aws:elasticbeanstalk:us-east-2:123456789012:environment/My App/myenv"
]
}
]
}
|
Action:
DescribePlatformVersion |
platform
|
aws:ResourceTag/key-name (Optional)
aws:TagKeys (Optional)
|
The following policy allows the DescribePlatformVersion action to describe
platform versions targeting the us-east-2 region, whose names begin with us-east-2_ :
- JSON
-
-
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"elasticbeanstalk:DescribePlatformVersion"
],
"Effect": "Allow",
"Resource": [
"arn:aws:elasticbeanstalk:us-east-2:123456789012:platform/us-east-2_*"
]
}
]
}
|
Action:
ListAvailableSolutionStacks |
solutionstack
|
N/A
|
The following policy allows the ListAvailableSolutionStacks action
to return only the solution stack 32bit Amazon Linux running Tomcat
7 .
- JSON
-
-
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"elasticbeanstalk:ListAvailableSolutionStacks"
],
"Effect": "Allow",
"Resource": "arn:aws:elasticbeanstalk:us-east-2::solutionstack/32bit Amazon Linux running Tomcat 7"
}
]
}
|
Action:
ListPlatformVersions |
platform
|
aws:RequestTag/key-name (Optional)
aws:TagKeys (Optional)
|
This example allows the CreatePlatformVersion action to create
platform versions targeting the us-east-2 region, whose names begin with us-east-2_ :
- JSON
-
-
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"elasticbeanstalk:ListPlatformVersions"
],
"Effect": "Allow",
"Resource": [
"arn:aws:elasticbeanstalk:us-east-2:123456789012:platform/us-east-2_*"
]
}
]
}
|
Action:
ListTagsForResource |
application
applicationversion
configurationtemplate
environment
platform
|
aws:ResourceTag/key-name (Optional)
aws:TagKeys (Optional)
|
The following policy allows the ListTagsForResource action to list tags of existing resources only if they have a tag named
stage with the value test :
- JSON
-
-
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"elasticbeanstalk:ListTagsForResource"
],
"Effect": "Allow",
"Resource": "*",
"Condition": {
"StringEquals": {
"aws:ResourceTag/stage": ["test"]
}
}
}
]
}
|
Action:
RebuildEnvironment |
environment
|
InApplication
aws:ResourceTag/key-name (Optional)
aws:TagKeys (Optional)
|
The following policy allows the RebuildEnvironment action to
rebuild the environment myenv in the application
My App .
- JSON
-
-
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"elasticbeanstalk:RebuildEnvironment"
],
"Effect": "Allow",
"Resource": [
"arn:aws:elasticbeanstalk:us-east-2:123456789012:environment/My App/myenv"
],
"Condition": {
"StringEquals": {
"elasticbeanstalk:InApplication": ["arn:aws:elasticbeanstalk:us-east-2:123456789012:application/My App"]
}
}
}
]
}
|
Action:
RequestEnvironmentInfo |
environment
|
InApplication
aws:ResourceTag/key-name (Optional)
aws:TagKeys (Optional)
|
The following policy allows the RequestEnvironmentInfo action to
compile information about the environment myenv in the
application My App .
- JSON
-
-
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"elasticbeanstalk:RequestEnvironmentInfo"
],
"Effect": "Allow",
"Resource": [
"arn:aws:elasticbeanstalk:us-east-2:123456789012:environment/My App/myenv"
],
"Condition": {
"StringEquals": {
"elasticbeanstalk:InApplication": ["arn:aws:elasticbeanstalk:us-east-2:123456789012:application/My App"]
}
}
}
]
}
|
Action:
RestartAppServer |
environment
|
InApplication
|
The following policy allows the RestartAppServer action to restart
the application container server for the environment myenv in
the application My App .
- JSON
-
-
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"elasticbeanstalk:RestartAppServer"
],
"Effect": "Allow",
"Resource": [
"arn:aws:elasticbeanstalk:us-east-2:123456789012:environment/My App/myenv"
],
"Condition": {
"StringEquals": {
"elasticbeanstalk:InApplication": ["arn:aws:elasticbeanstalk:us-east-2:123456789012:application/My App"]
}
}
}
]
}
|
Action:
RetrieveEnvironmentInfo |
environment
|
InApplication
aws:ResourceTag/key-name (Optional)
aws:TagKeys (Optional)
|
The following policy allows the RetrieveEnvironmentInfo action to
retrieve the compiled information for the environment myenv
in the application My App .
- JSON
-
-
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"elasticbeanstalk:RetrieveEnvironmentInfo"
],
"Effect": "Allow",
"Resource": [
"arn:aws:elasticbeanstalk:us-east-2:123456789012:environment/My App/myenv"
],
"Condition": {
"StringEquals": {
"elasticbeanstalk:InApplication": ["arn:aws:elasticbeanstalk:us-east-2:123456789012:application/My App"]
}
}
}
]
}
|
Action:
SwapEnvironmentCNAMEs |
environment
|
InApplication (Optional)
FromEnvironment (Optional)
|
The following policy allows the SwapEnvironmentCNAMEs action to
swap the CNAMEs for the environments mysrcenv and
mydestenv .
- JSON
-
-
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"elasticbeanstalk:SwapEnvironmentCNAMEs"
],
"Effect": "Allow",
"Resource": [
"arn:aws:elasticbeanstalk:us-east-2:123456789012:environment/My App/mysrcenv",
"arn:aws:elasticbeanstalk:us-east-2:123456789012:environment/My App/mydestenv"
]
}
]
}
|
Action:
TerminateEnvironment |
environment
|
InApplication
aws:ResourceTag/key-name (Optional)
aws:TagKeys (Optional)
|
The following policy allows the TerminateEnvironment action to
terminate the environment myenv in the application
My App .
- JSON
-
-
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"elasticbeanstalk:TerminateEnvironment"
],
"Effect": "Allow",
"Resource": [
"arn:aws:elasticbeanstalk:us-east-2:123456789012:environment/My App/myenv"
],
"Condition": {
"StringEquals": {
"elasticbeanstalk:InApplication": ["arn:aws:elasticbeanstalk:us-east-2:123456789012:application/My App"]
}
}
}
]
}
|
Action:
UpdateApplication |
application
|
aws:ResourceTag/key-name (Optional)
aws:TagKeys (Optional)
|
The following policy allows the UpdateApplication action to update
properties of the application My App .
- JSON
-
-
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"elasticbeanstalk:UpdateApplication"
],
"Effect": "Allow",
"Resource": [
"arn:aws:elasticbeanstalk:us-east-2:123456789012:application/My App"
]
}
]
}
|
Action:
UpdateApplicationResourceLifecycle |
application
|
aws:ResourceTag/key-name (Optional)
aws:TagKeys (Optional)
|
The following policy allows the UpdateApplicationResourceLifecycle action to update
lifecycle settings of the application My App .
- JSON
-
-
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"elasticbeanstalk:UpdateApplicationResourceLifecycle"
],
"Effect": "Allow",
"Resource": [
"arn:aws:elasticbeanstalk:us-east-2:123456789012:application/My App"
]
}
]
}
|
Action:
UpdateApplicationVersion |
applicationversion
|
InApplication
aws:ResourceTag/key-name (Optional)
aws:TagKeys (Optional)
|
The following policy allows the UpdateApplicationVersion action to
update the properties of the application version My Version
in the application My App .
- JSON
-
-
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"elasticbeanstalk:UpdateApplicationVersion"
],
"Effect": "Allow",
"Resource": [
"arn:aws:elasticbeanstalk:us-east-2:123456789012:applicationversion/My App/My Version"
],
"Condition": {
"StringEquals": {
"elasticbeanstalk:InApplication": ["arn:aws:elasticbeanstalk:us-east-2:123456789012:application/My App"]
}
}
}
]
}
|
Action:
UpdateConfigurationTemplate |
configurationtemplate
|
InApplication
aws:ResourceTag/key-name (Optional)
aws:TagKeys (Optional)
|
The following policy allows the UpdateConfigurationTemplate action
to update the properties or options of the configuration template My
Template in the application My App .
- JSON
-
-
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"elasticbeanstalk:UpdateConfigurationTemplate"
],
"Effect": "Allow",
"Resource": [
"arn:aws:elasticbeanstalk:us-east-2:123456789012:configurationtemplate/My App/My Template"
],
"Condition": {
"StringEquals": {
"elasticbeanstalk:InApplication": ["arn:aws:elasticbeanstalk:us-east-2:123456789012:application/My App"]
}
}
}
]
}
|
Action:
UpdateEnvironment |
environment
|
InApplication
FromApplicationVersion
FromConfigurationTemplate
aws:ResourceTag/key-name (Optional)
aws:TagKeys (Optional)
|
The following policy allows the UpdateEnvironment action to update
the environment myenv in the application My
App by deploying the application version My
Version .
- JSON
-
-
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"elasticbeanstalk:UpdateEnvironment"
],
"Effect": "Allow",
"Resource": [
"arn:aws:elasticbeanstalk:us-east-2:123456789012:environment/My App/myenv"
],
"Condition": {
"StringEquals": {
"elasticbeanstalk:InApplication": ["arn:aws:elasticbeanstalk:us-east-2:123456789012:application/My App"],
"elasticbeanstalk:FromApplicationVersion": ["arn:aws:elasticbeanstalk:us-east-2:123456789012:applicationversion/My App/My Version"]
}
}
}
]
}
|
Action:
UpdateTagsForResource – AddTags |
application
applicationversion
configurationtemplate
environment
platform
|
aws:ResourceTag/key-name (Optional)
aws:RequestTag/key-name (Optional)
aws:TagKeys (Optional)
|
The AddTags action is one of two virtual actions associated with the UpdateTagsForResource API.
The following policy allows the AddTags action to modify tags of existing resources only if they have a tag named
stage with the value test :
- JSON
-
-
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"elasticbeanstalk:AddTags"
],
"Effect": "Allow",
"Resource": "*",
"Condition": {
"StringEquals": {
"aws:ResourceTag/stage": ["test"]
}
}
}
]
}
|
Action:
UpdateTagsForResource – RemoveTags |
application
applicationversion
configurationtemplate
environment
platform
|
aws:ResourceTag/key-name (Optional)
aws:TagKeys (Optional)
|
The RemoveTags action is one of two virtual actions associated with the UpdateTagsForResource API.
The following policy denies the RemoveTags action to request the removal of a tag named stage from existing
resources:
- JSON
-
-
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"elasticbeanstalk:RemoveTags"
],
"Effect": "Deny",
"Resource": "*",
"Condition": {
"ForAnyValue:StringEquals": {
"aws:TagKeys": ["stage"]
}
}
}
]
}
|
Action:
ValidateConfigurationSettings |
template
environment
|
InApplication
aws:ResourceTag/key-name (Optional)
aws:TagKeys (Optional)
|
The following policy allows the ValidateConfigurationSettings
action to validates configuration settings against the environment
myenv in the application My
App .
- JSON
-
-
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"elasticbeanstalk:ValidateConfigurationSettings"
],
"Effect": "Allow",
"Resource": [
"arn:aws:elasticbeanstalk:us-east-2:123456789012:environment/My App/myenv"
],
"Condition": {
"StringEquals": {
"elasticbeanstalk:InApplication": ["arn:aws:elasticbeanstalk:us-east-2:123456789012:application/My App"]
}
}
}
]
}
|