Skip to content

Instantly share code, notes, and snippets.

@avishayil
Last active January 19, 2018 00:42
Show Gist options
  • Save avishayil/13edd42eb487412d1ab6f58ce84deb8e to your computer and use it in GitHub Desktop.
Save avishayil/13edd42eb487412d1ab6f58ce84deb8e to your computer and use it in GitHub Desktop.
Policy for bitbucket IAM user to EB
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:GetObject",
"cloudformation:GetTemplate",
"elasticbeanstalk:UpdateEnvironment",
"s3:ListBucket",
"elasticbeanstalk:CreateApplicationVersion",
"s3:GetBucketLocation"
],
"Resource": [
"arn:aws:s3:::elasticbeanstalk-eu-central-1-$ACCOUNTID/*",
"arn:aws:s3:::elasticbeanstalk-eu-central-1-$ACCOUNTID",
"arn:aws:elasticbeanstalk:eu-central-1:$ACCOUNTID:environment/$APPLICATION/$ENVIRONMENT",
"arn:aws:elasticbeanstalk:eu-central-1:$ACCOUNTID:applicationversion/$APPLICATION/*",
"arn:aws:elasticbeanstalk:eu-central-1:$ACCOUNTID:application/$APPLICATION",
"arn:aws:cloudformation:eu-central-1:$ACCOUNTID:stack/awseb-e-$EBID-stack/$RESOURCEID"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment