Created
September 2, 2020 20:52
-
-
Save prakshalj0512/589e4ed51471afafa1defe5ccab440d7 to your computer and use it in GitHub Desktop.
CodeBuild Role Update
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
/* 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