Skip to content

Instantly share code, notes, and snippets.

@KyMidd
Created August 29, 2022 18:41
Show Gist options
  • Select an option

  • Save KyMidd/006273571a980ea0d235553725901948 to your computer and use it in GitHub Desktop.

Select an option

Save KyMidd/006273571a980ea0d235553725901948 to your computer and use it in GitHub Desktop.
resource "aws_iam_role" "lambda_role" {
name = "HttpHeaderShimLambdaRole"
assume_role_policy = jsonencode({
Version = "2012-10-17"
Statement = [
{
Action = "sts:AssumeRole"
Effect = "Allow"
Sid = ""
Principal = {
Service = [
"lambda.amazonaws.com",
"edgelambda.amazonaws.com",
]
}
}
]
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment