Skip to content

Instantly share code, notes, and snippets.

@wenqiglantz
Created May 13, 2023 04:42
Show Gist options
  • Select an option

  • Save wenqiglantz/dedec9473b301624d4eac9110b08c674 to your computer and use it in GitHub Desktop.

Select an option

Save wenqiglantz/dedec9473b301624d4eac9110b08c674 to your computer and use it in GitHub Desktop.
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