Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
~ update in-place
<= read (data resources)
Terraform will perform the following actions:
# module.jobs.aws_batch_job_definition.this["meltano"] will be updated in-place
~ resource "aws_batch_job_definition" "this" {
~ arn = "arn:aws:batch:eu-west-1:439243399622:job-definition/xxx-meltano-dev:45" -> (known after apply)
~ container_properties = jsonencode(
~ {
- command = []
- mountPoints = []
~ resourceRequirements = [
{
type = "VCPU"
value = "1"
},
~ {
~ value = "3700" -> "3699"
# (1 unchanged attribute hidden)
},
]
- ulimits = []
- volumes = []
# (4 unchanged attributes hidden)
}
)
id = "arn:aws:batch:eu-west-1:439243399622:job-definition/xxx-meltano-dev:45"
name = "xxx-meltano-dev"
~ revision = 45 -> (known after apply)
tags = {}
# (9 unchanged attributes hidden)
# (2 unchanged blocks hidden)
}
…
:exclamation: Apply right after that
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# module.jobs.aws_batch_job_definition.this["meltano"] will be updated in-place
~ resource "aws_batch_job_definition" "this" {
id = "arn:aws:batch:eu-west-1:439243399622:job-definition/xxx-meltano-dev:47"
name = "xxx-meltano-dev"
tags = {}
~ tags_all = {
+ "gdc:project" = "xxx-dev"
+ "managed-by" = "terraform"
}
# (11 unchanged attributes hidden)
# (2 unchanged blocks hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
don't have simple reproducer - hitting it on production.
Steps to Reproduce
Create aws_batch_job_definition and use default_tags configured with provider
Apply (maybe multiple times, did not try from scratch)
Modify some setting that will trigger update of jobdef (e.g. container_properties)
Apply
Plan - :exclamation: the tags_all modification will be shown
Debug Output
No response
Panic Output
No response
Important Factoids
I think combination of empty tags on batch jobdef and use of default_tags in provider configuration is essential to trigger it. Selective diff that has been implemented in 5.47.0 does not properly cover tags_all case.
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.8.2
AWS Provider Version
5.47.0
Affected Resource(s)
Expected Behavior
No changes.
Actual Behavior
First apply
:exclamation: Apply right after that
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
don't have simple reproducer - hitting it on production.
Steps to Reproduce
aws_batch_job_definition
and usedefault_tags
configured with providercontainer_properties
)Debug Output
No response
Panic Output
No response
Important Factoids
I think combination of empty tags on batch jobdef and use of default_tags in provider configuration is essential to trigger it. Selective diff that has been implemented in 5.47.0 does not properly cover
tags_all
case.References
Would you like to implement a fix?
No