While updating the VIRTUAL_HOST property on a aws_lambda_event_source_mapping, the provider should destroy and then create replacement since the VIRTUAL_HOST property cannot be updated on a UpdateEventSourceMapping API call.
Actual Behavior
While updating the VIRTUAL_HOST property on a aws_lambda_event_source_mapping. Terraform plan runs successfully but fails to apply while trying to do a update in place
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.5.3
AWS Provider Version
5.49.0
Affected Resource(s)
aws_lambda_event_source_mapping
Expected Behavior
While updating the
VIRTUAL_HOST
property on aaws_lambda_event_source_mapping
, the provider should destroy and then create replacement since the VIRTUAL_HOST property cannot be updated on a UpdateEventSourceMapping API call.Actual Behavior
While updating the
VIRTUAL_HOST
property on aaws_lambda_event_source_mapping
. Terraform plan runs successfully but fails to apply while trying to do a update in placeRelevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
https://docs.aws.amazon.com/cli/latest/reference/lambda/update-event-source-mapping.html
Would you like to implement a fix?
None