AWS have introduced the io2 volume type. On create, the aws_ebs_volume resource currently rejects the iops attribute for volumes that are not io1.
Requires Go SDK 1.34.10.
# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key.
https://aws.amazon.com/blogs/aws/new-ebs-volume-type-io2-more-iops-gib-higher-durability/
There should also be support across other resources where a volume type can be specified:
aws_amiaws_instanceaws_launch_configurationaws_launch_templateaws_spot_fleet_requestIn case folks are searching the web with the error code, this is what is returned via CLI:
Error: Error creating EC2 volume: InvalidParameterCombination: The parameter iops must be specified for io2 volumes.
status code: 400, request id: aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
Going to re-open this until its supported across the other resources as mentioned above.
Support for the other EC2 resources has been merged and will release with version 3.5.0 of the Terraform AWS Provider, likely tomorrow. Thanks to @nikhil-goenka for the implementation. ๐
This has been released in version 3.5.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 for triage. Thanks!
Error: Error creating launch configuration: ValidationError: io2 is invalid. Valid volume types are standard, io1, gp2, st1 and sc1.
status code: 400, request id: 6f40d1e2-1cbc-4e9e-bf4c-8d5c4687d1f1
so, what's the problem if its supposed this was released in 3.5?
Hi @julian3xl ๐ That error is being returned by the Auto Scaling API. You may want to verify that you are in an AWS Region that supports the new io2 Volume type:
EBS io2 volumes are generally available in US East (Ohio), US East (N. Virginia), US West (N. California), US West (Oregon), Asia Pacific (Hong Kong), Asia Pacific (Mumbai), Asia Pacific (Seoul), Asia Pacific (Singapore), Asia Pacific (Sydney), Asia Pacific (Tokyo), Canada (Central), Europe (Frankfurt), Europe (Ireland), Europe (London), Europe (Stockholm), and Middle East (Bahrain) with more regions coming soon.
Or otherwise open an AWS Support case.
Cool! thanks @bflad, I'll request for support because I'm running at Ireland so initially it's supposed it should be available there.
Anyway, documentation https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/launch_configuration#volume_type still doesn't say anything about io2 ๐คทโโ๏ธ
Looks like the Auto Scaling API Reference for EBS volume handling does not list io2 yet as a valid value. The AWS service team will know best whether this support was intentionally not added (more movement towards encouraging usage of EC2 Launch Templates instead) or if this will be part of future Auto Scaling API releases.
AWS have deprecated Launch Configurations, so it's not surprising that it would lag in features. It's worth considering migrating to Launch Templates for immediate io2 support.
Hi guys, thanks both of you, finally I moved to launch templates and it worked.
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!
Most helpful comment
Hi @julian3xl ๐ That error is being returned by the Auto Scaling API. You may want to verify that you are in an AWS Region that supports the new io2 Volume type:
Or otherwise open an AWS Support case.