Closed danquack closed 1 week ago
Voting for Prioritization
Volunteering to Work on This Issue
[!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.78.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!
Terraform Core Version
1.9.3
AWS Provider Version
5.60.0
Affected Resource(s)
aws_batch_job_definition
Expected Behavior
When specifying other node properties, other than container, on multi-node resources, a panic occurs. It should be possible to define NodeRangeProperties with ecsProperties or eksProperties, not just containerProperties.
Actual Behavior
The provider crashes due to a nil pointer: https://github.com/hashicorp/terraform-provider-aws/blob/main/internal/service/batch/node_properties.go#L27-L32.
[Enhancement] Node range properties doesn't support ecsProperties or eksProperties. https://github.com/hashicorp/terraform-provider-aws/blob/main/internal/service/batch/node_properties.go#L20-L23
Relevant Error/Panic Output Snippet
Terraform Configuration Files
An example with eksProperties.
Steps to Reproduce
Apply a manifest with a node property other than container.
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
https://docs.aws.amazon.com/batch/latest/APIReference/API_NodeRangeProperty.html https://aws.amazon.com/about-aws/whats-new/2024/07/aws-batch-gang-scheduling-eks-multi-node-parallel-jobs/
Would you like to implement a fix?
Yes