You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: error creating Lambda Function (1): InvalidParameterValueException: The role defined for the function cannot be assumed by Lambda.
{
RespMetadata: {
StatusCode: 400,
RequestID: "333ee194-41b9-4dc4-80f9-dd2ae80f92d8"
},
Message_: "The role defined for the function cannot be assumed by Lambda.",
Type: "User"
}
with module.test_lambda.aws_lambda_function.this[0],
on .terraform/modules/test_lambda/main.tf line 12, in resource "aws_lambda_function" "this":
12: resource "aws_lambda_function" "this" {
Describe the Bug
Using the following config:
The deployment fails with the following error:
However if change this line in this module from
to
The deployment works as expected
Expected Behavior
Deployment should succeed when setting
lambda_at_edge = true
Environment:
The text was updated successfully, but these errors were encountered: