Skip to content

Commit b532892

Browse files
committed
fix: use the aws iam role created for specific configs
1 parent 0340136 commit b532892

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

examples/aws_lambda/aws_lambda_config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ function_name: bolt_py_function
44
handler: aws_lambda.handler
55
description: My first lambda function
66
runtime: python3.8
7-
# role: lambda_basic_execution
7+
role: bolt_python_lambda_invocation
88

99
# S3 upload requires appropriate role with s3:PutObject permission
1010
# (ex. basic_s3_upload), a destination bucket, and the key prefix

examples/aws_lambda/aws_lambda_oauth_config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ function_name: bolt_py_oauth_function
44
handler: aws_lambda_oauth.handler
55
description: My first lambda function
66
runtime: python3.8
7-
# role: lambda_basic_execution
87
role: bolt_python_s3_storage
98

109
# S3 upload requires appropriate role with s3:PutObject permission

examples/aws_lambda/lazy_aws_lambda_config.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ function_name: bolt_py_function
44
handler: lazy_aws_lambda.handler
55
description: My first lambda function
66
runtime: python3.8
7-
# role: lambda_basic_execution
8-
# Have lambda:InvokeFunction & lambda:GetFunction in the allowed actions
9-
role: bolt_python_lambda_invocation
7+
role: bolt_python_lambda_invocation
108

119
# S3 upload requires appropriate role with s3:PutObject permission
1210
# (ex. basic_s3_upload), a destination bucket, and the key prefix

0 commit comments

Comments
 (0)