Created
May 13, 2023 04:42
-
-
Save wenqiglantz/dedec9473b301624d4eac9110b08c674 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| resource "aws_iam_role" "lambda" { | |
| name = "${var.resource_name_prefix}-role-${random_string.random_string.result}" | |
| assume_role_policy = data.aws_iam_policy_document.simple_lambda_assume_role_policy.json | |
| managed_policy_arns = [ | |
| "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", | |
| "arn:aws:iam::aws:policy/AWSXRayDaemonWriteAccess" | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment