-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change EBS type from gp3 to gp2 #17644
Comments
I can reproduce with a new acceptance test case: $ make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSEBSVolume_gp3_to_gp2'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSEBSVolume_gp3_to_gp2 -timeout 120m
=== RUN TestAccAWSEBSVolume_gp3_to_gp2
=== PAUSE TestAccAWSEBSVolume_gp3_to_gp2
=== CONT TestAccAWSEBSVolume_gp3_to_gp2
resource_aws_ebs_volume_test.go:603: Step 3/3 error: Error running apply: exit status 1
2021/02/16 17:50:00 [DEBUG] Using modified User-Agent: Terraform/0.12.26 HashiCorp-terraform-exec/0.13.0
Error: InvalidParameterCombination: The throughput parameter is not supported for gp2 volumes.
status code: 400, request id: f42faf20-398b-4948-9706-dbbbffa5d155
--- FAIL: TestAccAWSEBSVolume_gp3_to_gp2 (31.83s)
FAIL
FAIL github.com/terraform-providers/terraform-provider-aws/aws 31.926s
FAIL
GNUmakefile:27: recipe for target 'testacc' failed
make: *** [testacc] Error 1 |
This has been released in version 3.29.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! |
Prefer the aws provider version which fixed changing gp3/gp2 volume issue. hashicorp/terraform-provider-aws#17644
Prefer the aws provider version which fixed changing gp3/gp2 volume issue. hashicorp/terraform-provider-aws#17644
Prefer the aws provider version which fixed changing gp3/gp2 volume issue. hashicorp/terraform-provider-aws#17644
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! |
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Error: InvalidParameterCombination: The throughput parameter is not supported for gp2 volumes.
Expected Behavior
When changing the EBS disk type from gp3 to gp2, an error related to throughput should not be reported, as it does not "exist" for the gp2 disk type.
The validation on code base is this one
I have seen the code base and on this line its maintained the throughput var, but for gp2 it should not maintain.
Actual Behavior
When I change the disk from gp3 to gp2 the change is not allowed because the disk has no throughput configuration, I cannot even pass as null or 0.
I cannot pass this variable because of the error saying that the type gp3 has saved in the state.
Steps to Reproduce
The text was updated successfully, but these errors were encountered: