Changing the SpotFleet capacity to 0 returns an error (bug in the AWS provider) #12757
Labels
bug
Addresses a defect in current functionality.
service/ec2
Issues and PRs that pertain to the ec2 service.
Milestone
Community Note
Terraform Version
0.12.24
Affected Resource(s)
Terraform Configuration Files
Debug Output
https://gist.github.com/Shalgo/75e16468971ee065cdafcbf95ea2fbef
Expected Behavior
The capacity of the SpotFleet should be changed to 0 spots.
Actual Behavior
After changing the capacity to "0" in AWS provider 2.57.0 I got this error after applied:
In older version of AWS provider , The fleet's capacity can be changed to 0 without receiving an error, but in fact, the operation does not take effect at all.
The capacity remains as it was.
If I reduce the fleet capacity to a number greater than 0 it works.
But if I change the capacity to 0, it does not really change, and no error is received.
The capacity remains as it was.
Steps to Reproduce
terraform apply
Important Factoids
none
References
The text was updated successfully, but these errors were encountered: