aws_batch_job_definition gets recreated on every apply, even if the state does not change #19180
Labels
bug
Addresses a defect in current functionality.
service/batch
Issues and PRs that pertain to the batch service.
Milestone
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Debug Output
Panic Output
Expected Behavior
The state does not change so apply should not update anything
Actual Behavior
Steps to Reproduce
terraform apply
terraform plan
Important Factoids
Container properties are being read from JSON and not from a module block.
AWS rearranges the environment values and adds default values to the JSON when reading the job definition.
The provider should be aware about the default values and should not care about the order of environment variables.
References
Relates: #16850.
The text was updated successfully, but these errors were encountered: