-
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
Ensure required values are set when changing storage_type
.
#28847
Conversation
As observed in hashicorp#28589, if changing the `storage_type` additional fields need to be set if required. For example, `gp3` storage requires that the `allocated_storage` and `iops` params are supplied if the volume size is `>=400G`. Added a new test case to try and exercise this behaviour, and also tweaked a couple of existing tests to exercise the `gp3` tiering behaviour. **N.B** I've not been able to run these acceptance tests locally yet. Fixes hashicorp#28589
Community NoteVoting for Prioritization
For Submitters
|
@@ -3727,79 +3727,6 @@ func TestAccRDSInstance_MonitoringRoleARN_removedToEnabled(t *testing.T) { | |||
}) | |||
} | |||
|
|||
// Regression test for https://github.com/hashicorp/terraform/issues/3760 . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are just moved to be near the other storage-related tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🎉
% make t T=TestAccRDSInstance_Storage K=rds
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.3 test ./internal/service/rds/... -v -count 1 -parallel 20 -run='TestAccRDSInstance_Storage' -timeout 360m
2024/11/22 13:57:21 Initializing Terraform AWS Provider...
=== RUN TestAccRDSInstance_Storage_maxAllocated
=== PAUSE TestAccRDSInstance_Storage_maxAllocated
=== RUN TestAccRDSInstance_Storage_gp3MySQL
=== PAUSE TestAccRDSInstance_Storage_gp3MySQL
=== RUN TestAccRDSInstance_Storage_gp3Postgres
=== PAUSE TestAccRDSInstance_Storage_gp3Postgres
=== RUN TestAccRDSInstance_Storage_gp3SQLServer
=== PAUSE TestAccRDSInstance_Storage_gp3SQLServer
=== RUN TestAccRDSInstance_Storage_changeThroughput
=== PAUSE TestAccRDSInstance_Storage_changeThroughput
=== RUN TestAccRDSInstance_Storage_changeIOPSThroughput
=== PAUSE TestAccRDSInstance_Storage_changeIOPSThroughput
=== RUN TestAccRDSInstance_Storage_changeIOPSGP3
=== PAUSE TestAccRDSInstance_Storage_changeIOPSGP3
=== RUN TestAccRDSInstance_Storage_throughputSSE
=== PAUSE TestAccRDSInstance_Storage_throughputSSE
=== RUN TestAccRDSInstance_Storage_postgres
=== PAUSE TestAccRDSInstance_Storage_postgres
=== RUN TestAccRDSInstance_Storage_changeIOPSio1
=== PAUSE TestAccRDSInstance_Storage_changeIOPSio1
=== RUN TestAccRDSInstance_Storage_changeIOPSio2
=== PAUSE TestAccRDSInstance_Storage_changeIOPSio2
=== CONT TestAccRDSInstance_Storage_maxAllocated
=== CONT TestAccRDSInstance_Storage_changeIOPSGP3
=== CONT TestAccRDSInstance_Storage_gp3SQLServer
=== CONT TestAccRDSInstance_Storage_gp3Postgres
=== CONT TestAccRDSInstance_Storage_changeIOPSio2
=== CONT TestAccRDSInstance_Storage_postgres
=== CONT TestAccRDSInstance_Storage_throughputSSE
=== CONT TestAccRDSInstance_Storage_changeIOPSThroughput
=== CONT TestAccRDSInstance_Storage_changeThroughput
=== CONT TestAccRDSInstance_Storage_gp3MySQL
=== CONT TestAccRDSInstance_Storage_changeIOPSio1
--- PASS: TestAccRDSInstance_Storage_changeIOPSGP3 (538.54s)
--- PASS: TestAccRDSInstance_Storage_changeIOPSio1 (650.44s)
--- PASS: TestAccRDSInstance_Storage_changeIOPSio2 (660.37s)
--- PASS: TestAccRDSInstance_Storage_changeThroughput (660.92s)
--- PASS: TestAccRDSInstance_Storage_changeIOPSThroughput (670.59s)
--- PASS: TestAccRDSInstance_Storage_maxAllocated (684.31s)
--- PASS: TestAccRDSInstance_Storage_gp3MySQL (726.56s)
--- PASS: TestAccRDSInstance_Storage_gp3Postgres (785.79s)
--- PASS: TestAccRDSInstance_Storage_postgres (836.50s)
--- PASS: TestAccRDSInstance_Storage_throughputSSE (1103.82s)
--- PASS: TestAccRDSInstance_Storage_gp3SQLServer (1289.33s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/rds 1293.310s
@@ -0,0 +1,3 @@ | |||
```release-note:bug |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot on a previous PR.
Co-authored-by: Kit Ewbank <[email protected]>
Co-authored-by: Kit Ewbank <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀.
This functionality has been released in v5.78.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. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
As observed in #28589, if changing the
storage_type
additional fields need to be set if required.For example,
gp3
storage requires that theallocated_storage
andiops
params are supplied if the volume size is>=400G
.Added a new test case to try and exercise this behaviour, and also tweaked a couple of existing tests to exercise the
gp3
tiering behaviour. N.B I've not been able to run these acceptance tests locally yet.Relations
Fixes #28589
References
Output from Acceptance Testing
N/A