Skip to content

Instantly share code, notes, and snippets.

@amith23
amith23 / gist:fec816419c20c950f04c9bd2f33def9b
Created September 11, 2021 04:33
Sample IAM policy to restrict access to code commit branch
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Deny",
"Action": [
"codecommit:GitPush",
"codecommit:DeleteBranch",
"codecommit:PutFile",
"codecommit:MergePullRequestByFastForward"