When an sns topic and lambda environment variable referencing the topic arn are added, both the sns topic and lambda should be modified in a single apply
Actual Behavior
Two runs of apply are required to apply all changes
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.9.1, 1.9.3
AWS Provider Version
5.60.0
Affected Resource(s)
aws_lambda_function
Expected Behavior
When an sns topic and lambda environment variable referencing the topic arn are added, both the sns topic and lambda should be modified in a single
apply
Actual Behavior
Two runs of
apply
are required to apply all changesRelevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
terraform apply
to deploy role and lambda functionterraform apply
The diff will only show the topic creation, with no changes to the lambda
terraform apply
The diff will now show the changes to the lambda function
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None