Switching between NONE and AWS_IAM should update the Lamda function's resource-based policy statement in AWS accordingly.
Actual Behavior
When switching from NONE to AWS_IAM and vice versa, the Lambda function in AWS does NOT update its resource-based policy statement.
Relevant Error/Panic Output Snippet
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# aws_lambda_function_url.private_function_url will be updated in-place
~ resource "aws_lambda_function_url" "private_function_url" {
~ authorization_type = "AWS_IAM" -> "NONE"
id = "abc-private-lambda"
# (4 unchanged attributes hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
aws_lambda_function_url.private_function_url: Modifying... [id=abc-private-lambda]
aws_lambda_function_url.private_function_url: Modifications complete after 0s [id=abc-private-lambda]
Apply complete! Resources: 0 added, 1 changed, 0 destroyed.
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
If you are interested in working on this issue, please leave a comment.
If this would be your first contribution, please review the contribution guide.
Terraform Core Version
1.2.2
AWS Provider Version
4.0
Affected Resource(s)
aws_lambda_function_url
Expected Behavior
Switching between
NONE
andAWS_IAM
should update the Lamda function's resource-based policy statement in AWS accordingly.Actual Behavior
When switching from
NONE
toAWS_IAM
and vice versa, the Lambda function in AWS does NOT update its resource-based policy statement.Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
authorization_type
ofaws_lambda_function_url
resource toAWS_IAM
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lambda_function_url
Would you like to implement a fix?
None