Skip to content

Instantly share code, notes, and snippets.

@stefanwalther
Forked from flomotlik/CodeDeploy Policy
Created January 8, 2016 23:41
Show Gist options
  • Save stefanwalther/85795c182df600849acf to your computer and use it in GitHub Desktop.
Save stefanwalther/85795c182df600849acf to your computer and use it in GitHub Desktop.
Amazon IAM Policies for Codeship
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"codedeploy:RegisterApplicationRevision",
"codedeploy:GetApplicationRevision"
],
"Resource": [
"arn:aws:codedeploy:us-east-1:870116389747:application:DemoApplication"
]
},
{
"Effect": "Allow",
"Action": [
"codedeploy:CreateDeployment",
"codedeploy:GetDeployment"
],
"Resource": [
"arn:aws:codedeploy:us-east-1:870116389747:deploymentgroup:DemoApplication/*"
]
},
{
"Effect": "Allow",
"Action": [
"codedeploy:GetDeploymentConfig"
],
"Resource": [
"arn:aws:codedeploy:us-east-1:870116389747:deploymentconfig:CodeDeployDefault.OneAtATime",
"arn:aws:codedeploy:us-east-1:870116389747:deploymentconfig:CodeDeployDefault.HalfAtATime",
"arn:aws:codedeploy:us-east-1:870116389747:deploymentconfig:CodeDeployDefault.AllAtOnce"
]
}
]
}
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:PutObject"
],
"Resource": [
"arn:aws:s3:::codeship-codedeploy-bucket/testname/*"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment