Created
November 25, 2017 12:00
-
-
Save ravishtiwari/79a3c9c4aa09b65a2b74483a90c8dc42 to your computer and use it in GitHub Desktop.
Codepipeline Role
This file contains 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
{ | |
"Statement": [ | |
{ | |
"Action": [ | |
"s3:PutObject", | |
"s3:GetObject", | |
"s3:GetObjectVersion" | |
], | |
"Resource": [ | |
"arn:aws:s3:::*", | |
"arn:aws:s3:::*/*" | |
], | |
"Effect": "Allow" | |
}, | |
{ | |
"Action": [ | |
"lambda:*", | |
"apigateway:*", | |
"sns:CreateTopic", | |
"sns:DeleteTopic", | |
"sns:ListTopics", | |
"sns:GetTopicAttributes", | |
"sns:SetTopicAttributes", | |
"s3:CreateBucket", | |
"s3:DeleteBucket" | |
], | |
"Resource": "*", | |
"Effect": "Allow" | |
}, | |
{ | |
"Action": [ | |
"iam:PassRole" | |
], | |
"Resource": [ | |
"arn:aws:iam::<ACCOUNTID>:role/*" | |
], | |
"Effect": "Allow" | |
}, | |
{ | |
"Action": [ | |
"cloudformation:*" | |
], | |
"Resource": [ | |
"arn:aws:cloudformation:us-east-1:aws:transform/Serverless-2016-10-31" | |
], | |
"Effect": "Allow" | |
}, | |
{ | |
"Action": [ | |
"s3:GetObject", | |
"s3:GetObjectVersion", | |
"s3:GetBucketVersioning" | |
], | |
"Resource": "*", | |
"Effect": "Allow" | |
}, | |
{ | |
"Action": [ | |
"s3:PutObject" | |
], | |
"Resource": [ | |
"arn:aws:s3:::codepipeline*" | |
], | |
"Effect": "Allow" | |
}, | |
{ | |
"Action": [ | |
"lambda:*" | |
], | |
"Resource": [ | |
"arn:aws:lambda:us-east-1:<ACCOUNT>:function:*" | |
], | |
"Effect": "Allow" | |
}, | |
{ | |
"Action": [ | |
"apigateway:*" | |
], | |
"Resource": [ | |
"arn:aws:apigateway:us-east-1::*" | |
], | |
"Effect": "Allow" | |
}, | |
{ | |
"Action": [ | |
"iam:GetRole", | |
"iam:CreateRole", | |
"iam:DeleteRole" | |
], | |
"Resource": [ | |
"arn:aws:iam::<ACCOUNT>:role/*" | |
], | |
"Effect": "Allow" | |
}, | |
{ | |
"Action": [ | |
"iam:AttachRolePolicy", | |
"iam:DetachRolePolicy" | |
], | |
"Resource": [ | |
"arn:aws:iam::<ACCOUNT>:role/*" | |
], | |
"Effect": "Allow" | |
}, | |
{ | |
"Action": [ | |
"iam:PassRole" | |
], | |
"Resource": [ | |
"*" | |
], | |
"Effect": "Allow" | |
}, | |
{ | |
"Action": [ | |
"cloudformation:CreateChangeSet" | |
], | |
"Resource": [ | |
"arn:aws:cloudformation:us-east-1:aws:transform/Serverless-2016-10-31" | |
], | |
"Effect": "Allow" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment