Skip to content

Iam

code commit policy

Allow only Specific user to access branch

AWS CodeCommit

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": "codecommit:*",
            "Resource": "repoarn",
            "Condition": {
                "StringEqualsIfExists": {
                    "codecommit:References": [
                        "refs/heads/Branch-name"
                    ]
                }
            }
        }
    ]
}
  • Git command to clone

git clone --single-branch -b Branch-name repo-url

https://medium.com/@it.melnichenko/invoke-a-lambda-across-multiple-aws-accounts-8c094b2e70be


  • [[EC2]]
  • [[lambda]]
  • [[AWS-boto/Assume-role-lambda]]
  • [[iam/policies/switch-role]]