Unable to preserve iops when migrating EBS volume from io1 to gp3 #20536
Labels
bug
Addresses a defect in current functionality.
service/ec2
Issues and PRs that pertain to the ec2 service.
Milestone
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
Terraform Configuration Files
Pre-migration (legacy code)
Migration code
Expected Behavior
When migrating an existing EBS io1 volume to gp3, the iops value should be preserved.
Actual Behavior
When migrating to gp3, and attempting to preserve the existing iops value, the iops value is instead set to the gp3 default of 3000.
Further Info:
If we have an existing EBS io1 volume with (for example) 4000 iops set. Attempting to change the volume_type from io1 to gp3 (but preserving desired iops at 4000) in terraform will result in the iops defaulting to 3000 (the gp3 default).
This causes further frustration, as it cannot be quickly resolved with another terraform apply - as there is a modification limit preventing further changes for another 6 hours.
However, if we perform the migration with the desired iops changed to 4001, the terraform apply works as expected.
Impact:
This significantly slowed down our migration from io1 to gp3, and required greater manual effort.
Steps to Reproduce
terraform apply
terraform apply
The text was updated successfully, but these errors were encountered: