Last active
January 19, 2018 00:42
-
-
Save avishayil/13edd42eb487412d1ab6f58ce84deb8e to your computer and use it in GitHub Desktop.
Policy for bitbucket IAM user to EB
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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