Closed justingodden closed 3 months ago
Voting for Prioritization
Volunteering to Work on This Issue
Update: Adding EITHER a retry strategy OR a timeout with the following code solved it.
attempt_duration_seconds = 60
retry_strategy = {
attempts = 3
evaluate_on_exit = {
retry_error = {
action = "RETRY"
on_exit_code = 1
}
exit_success = {
action = "EXIT"
on_exit_code = 0
}
}
}
I'm no Golang expert but I think the problem is doing type coercion on a nil
on this line.
[!WARNING] This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them.
Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed.
This functionality has been released in v5.62.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.
For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Terraform Core Version
1.9.3
AWS Provider Version
5.61.0
Affected Resource(s)
aws_batch_job_definition
Expected Behavior
I am using the AWS Batch TF module: https://registry.terraform.io/modules/terraform-aws-modules/batch/aws/latest
But I believe the problem is with the underlying
aws_batch_job_definition
resource.I expect to be able to create the resources with the batch module.
Actual Behavior
Creating the resources initially with
terraform apply
works just fine. But even if the code remains completely unchanged, when runningterraform apply
again, the provider crashes.It looks like it's coming from the
/internal/service/batch.needsJobDefUpdate
function.Not the same issue, but looks similar: #22660, #17284
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None