[Bug]: Creation of FunctionURLAllowPublicAccess resource-based Lambda policy by the Terraform provider #38260
Labels
bug
Addresses a defect in current functionality.
needs-triage
Waiting for first response or review from a maintainer.
Terraform Core Version
v.1.7.4
AWS Provider Version
v5.55.0
Affected Resource(s)
aws_lambda_function_url
Expected Behavior
Provider should create lambda URL for the lambda
Actual Behavior
The provider creates a Lambda URL and a resource-based policy statement for the Lambda: FunctionURLAllowPublicAccess
I am unsure if creating a policy on a user's behalf is appropriate, and it isn't documented in the resource's documentation. Additionally, this resource-based policy persists even when the
aws_lambda_function_url
resource is deleted.Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
aws_lambda_function_url
resource to create the URL.aws_lambda_function_url
resource.Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
https://github.com/hashicorp/terraform-provider-aws/blob/main/internal/service/lambda/function_url.go#L153-L175
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: