Skip to content

Commit 7dcb394

Browse files
committed
Assume Role Policy
1 parent c1daaab commit 7dcb394

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

aws/infrastructure/main.tf

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,20 @@ resource "aws_iam_role" "subscriber_lambda_role" {
2727
name = var.lambda_role_name
2828
path = "/service-role/"
2929

30+
assume_role_policy = jsonencode({
31+
Version = "2012-10-17"
32+
Statement = [
33+
{
34+
Action = "sts:AssumeRole"
35+
Effect = "Allow"
36+
Sid = ""
37+
Principal = {
38+
Service = "ec2.amazonaws.com"
39+
}
40+
},
41+
]
42+
})
43+
3044
inline_policy {
3145
name = "lambda_role_inline_policy"
3246

0 commit comments

Comments
 (0)