Skip to content

Instantly share code, notes, and snippets.

@prakshalj0512
Created September 2, 2020 20:52
Show Gist options
  • Save prakshalj0512/589e4ed51471afafa1defe5ccab440d7 to your computer and use it in GitHub Desktop.
Save prakshalj0512/589e4ed51471afafa1defe5ccab440d7 to your computer and use it in GitHub Desktop.
CodeBuild Role Update
/* UPDATE THE FOLLOWING VARIABLES IN THE CODE
aws-account-no: the account number of the AWS account associated with the lambda function
lambda-function-name: the name of the lambda function to deploy
lambda-function-region: the region in which the Lambda function will be deployed, such as us-west-2.
s3-bucket: name of the S3 bucket to store the code created earlier
*/
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"s3:PutObject",
"lambda:GetFunction"
],
"Resource": [
"arn:aws:lambda:<lambda-function-region>:<aws-account-no>:function:<lambda-function-name>-*",
"arn:aws:s3:::<s3-bucket>/*"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment