aws_batch_job_definition crashes terraform when setting timeout.attempt_duration_seconds = null #18066
Labels
bug
Addresses a defect in current functionality.
crash
Results from or addresses a Terraform crash or kernel panic.
service/batch
Issues and PRs that pertain to the batch service.
Milestone
Community Note
Terraform CLI and Terraform AWS Provider Version
terraform 0.12.29
terraform_provider_aws 3.31.0 (where crash happens)
terraform_provider_aws 2.70.0 (where is no crash)
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.
I have a module that creates ja aws_batch_job_definition. The timeout parameter is passed as a parameter to the module.
Default value for the timeout is null.
Debug Output
Panic Output
Expected Behavior
It should create aws_batch_job_definition and not set timeout for it.
Actual Behavior
With terraform_provider_aws 2.70.0 everything works
With terraform_provider_aws 3.31.0 and setting the timeout to some value => everything works.
With terraform_provider_aws 3.31.0 and not setting the timeout terraform crashed:
Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: