Skip to content

Instantly share code, notes, and snippets.

@thegonch
Created October 8, 2020 21:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thegonch/9a273d8edbb26c8d19069f396f37d4ee to your computer and use it in GitHub Desktop.
Save thegonch/9a273d8edbb26c8d19069f396f37d4ee to your computer and use it in GitHub Desktop.
Example Dependabot + CodeCommit IAM Policy
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "0",
"Effect": "Allow",
"Action": [
"codecommit:CreateBranch",
"codecommit:GetCommit",
"codecommit:GetRepository",
"codecommit:BatchGetCommits",
"codecommit:GetBranch",
"codecommit:ListPullRequests",
"codecommit:GetFolder",
"codecommit:CreatePullRequest",
"codecommit:CreateCommit",
"codecommit:GetPullRequest",
"codecommit:GetFile"
],
"Resource": "arn:aws:codecommit:us-east-1:012345678901:myaws-codecommit-repo",
"Condition": {
"BoolIfExists": {
"aws:MultiFactorAuthPresent": "true"
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment