We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04a207b commit 3622684Copy full SHA for 3622684
todo-app/__main__.py
@@ -37,19 +37,21 @@
37
}
38
)
39
40
-# Create Lambda execution role
+# Create an IAM Role for the Lambda function
41
lambda_role = aws.iam.Role(f"lambdaExecutionRole-{environment}",
42
- assume_role_policy=json.dumps({
43
- "Version": "2012-10-17",
44
- "Statement": [{
45
- "Action": "sts:AssumeRole",
46
- "Principal": {
47
- "Service": "lambda.amazonaws.com"
48
- },
49
- "Effect": "Allow",
50
- "Sid": ""
51
- }]
52
- })
+ assume_role_policy="""{
+ "Version": "2012-10-17",
+ "Statement": [
+ {
+ "Action": "sts:AssumeRole",
+ "Principal": {
+ "Service": "lambda.amazonaws.com"
+ },
+ "Effect": "Allow",
+ "Sid": ""
+ }
53
+ ]
54
+ }"""
55
56
57
# Create inline policy for the role
0 commit comments