Skip to content

Commit 2de085d

Browse files
author
Adetokunbo Ige
committed
chore: update policy
Signed-off-by: Adetokunbo Ige <[email protected]>
1 parent 3622684 commit 2de085d

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

todo-app/__main__.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,20 @@
3838
)
3939

4040
# Create an IAM Role for the Lambda function
41-
lambda_role = aws.iam.Role(f"lambdaExecutionRole-{environment}",
42-
assume_role_policy="""{
43-
"Version": "2012-10-17",
44-
"Statement": [
45-
{
46-
"Action": "sts:AssumeRole",
47-
"Principal": {
48-
"Service": "lambda.amazonaws.com"
49-
},
50-
"Effect": "Allow",
51-
"Sid": ""
52-
}
53-
]
54-
}"""
41+
# Create Lambda execution role
42+
lambda_role = aws.iam.Role(
43+
"lambdaExecutionRole",
44+
assume_role_policy=json.dumps({
45+
"Version": "2012-10-17",
46+
"Statement": [{
47+
"Action": "sts:AssumeRole",
48+
"Principal": {
49+
"Service": "lambda.amazonaws.com"
50+
},
51+
"Effect": "Allow",
52+
"Sid": ""
53+
}]
54+
})
5555
)
5656

5757
# Create inline policy for the role

0 commit comments

Comments
 (0)