aws_lambda_function_event_invoke_config documentation example produces state error #13166
Labels
bug
Addresses a defect in current functionality.
service/lambda
Issues and PRs that pertain to the lambda service.
Milestone
Community Note
Terraform Version
Terraform v0.12.17
Terraform v0.12.23
Behavior was also observed in
Terraform v0.11.14
Affected Resource(s)
Terraform Configuration Files
In the Documentation for the resource, the example code under the heading "Configuration for Alias Name" will produce an error when used:
The aws_lambda_alias.example.function_name appears to return an arn, and results in a corruption of the state. It works if the code is:
Panic Output
Expected Behavior
Expect the resource to either gracefully handle the arn in the state or correct the documentation
Actual Behavior
Once the code in question runs, further plans are not possible, and only produce this error until the resource is manually removed from the state.
Steps to Reproduce
The text was updated successfully, but these errors were encountered: