Skip to content

Commit

Permalink
wip: check edge lambda policy functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
ggemre committed Apr 10, 2024
1 parent e7aafb6 commit f303f03
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions iac/modules/app/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,12 @@ resource "aws_iam_role" "EdgeLambdaExecutionRole" {
}
]
})
# managed_policy_arns = [ # NOTE: this was replaced by the policy attachment below, may/may not be necessary
# "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole",
# ]
managed_policy_arns = [ # NOTE: this was replaced by the policy attachment below, may/may not be necessary
"arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole",
]
}

resource "aws_iam_role_policy_attachment" "enhanced_headers_lambda_cloudwatch_attach" {
policy_arn = "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
role = aws_iam_role.EdgeLambdaExecutionRole.name
}
#resource "aws_iam_role_policy_attachment" "enhanced_headers_lambda_cloudwatch_attach" {
# policy_arn = "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
# role = aws_iam_role.EdgeLambdaExecutionRole.name
#}

0 comments on commit f303f03

Please sign in to comment.