-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
enable gp3 storage_type for aws_db_instance #27670
Conversation
Community NoteVoting for Prioritization
For Submitters
|
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.
Welcome @erz4 👋
It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTOR guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.
Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.
Thanks again, and welcome to the community! 😃
This is great, but doesn't allow for the additional options configurable when using gp3, specifically |
For RDS gp3 those are preconfigured and can't be changed. |
The range is set, but those are very much configurable with gp3. |
It's the storage -- the options aren't available until storage is >=400GB. Note the comment |
Came here to post the same findings as @katdev regarding storage_throughput. I think that https://github.com/hashicorp/terraform-provider-aws/blob/main/internal/service/rds/instance.go would also need to be updated, particularly in the area of lines 1761-1767. |
@katdev @NivStav-RecoLabs @garyhampson I added the storage_throughput att |
The storage throughput should really default to 125, which is the free amount. |
I agree with @robw-ca that the storage throughput default should be 125 but for a different reason - it's both what the console defaults to (edit: at least for the menu choices I made in the console just now), and what the baseline is for storage under 400GB. Is it possible without much effort to make the default throughput value vary based on the storage size? Because if so then maybe it would be even better to mimic the console further, and have it be 125 for under 400GB and 500 for 400GB and greater. My reasoning for this is that I feel like many if not most people will want to just specify storage and not tweak throughput. Either way I will be happy to see this merged, thanks for the effort everyone. If my Go skills were good enough I would happily contribute. |
As you said when the storage allocation gets to 400GB the storage throughput goes to 500 and stays like that unless the user changes it |
Ah didn't see those docs, and assumed it'd stay with the default 125 as a default EBS volume would! |
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 testacc TESTARGS='-run=TestAccRDSInstanceDataSource_basic' PKG=rds ACCTEST_PARALLELISM=3
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/rds/... -v -count 1 -parallel 3 -run=TestAccRDSInstanceDataSource_basic -timeout 180m
=== RUN TestAccRDSInstanceDataSource_basic
=== PAUSE TestAccRDSInstanceDataSource_basic
=== CONT TestAccRDSInstanceDataSource_basic
--- PASS: TestAccRDSInstanceDataSource_basic (565.13s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/rds 570.413s
% make testacc TESTARGS='-run=TestAccRDSInstance_basic' PKG=rds ACCTEST_PARALLELISM=3
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/rds/... -v -count 1 -parallel 3 -run=TestAccRDSInstance_basic -timeout 180m
=== RUN TestAccRDSInstance_basic
=== PAUSE TestAccRDSInstance_basic
=== CONT TestAccRDSInstance_basic
--- PASS: TestAccRDSInstance_basic (494.62s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/rds 499.714s
% make testacc TESTARGS='-run=TestAccRDSInstance_separateIopsUpdate' PKG=rds ACCTEST_PARALLELISM=3
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/rds/... -v -count 1 -parallel 3 -run=TestAccRDSInstance_separateIopsUpdate -timeout 180m
=== RUN TestAccRDSInstance_separateIopsUpdate
=== PAUSE TestAccRDSInstance_separateIopsUpdate
=== CONT TestAccRDSInstance_separateIopsUpdate
--- PASS: TestAccRDSInstance_separateIopsUpdate (771.03s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/rds 775.895s
% make testacc TESTARGS='-run=TestAccRDSInstance_gp3' PKG=rds ACCTEST_PARALLELISM=3
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/rds/... -v -count 1 -parallel 3 -run=TestAccRDSInstance_gp3 -timeout 180m
=== RUN TestAccRDSInstance_gp3
=== PAUSE TestAccRDSInstance_gp3
=== CONT TestAccRDSInstance_gp3
--- PASS: TestAccRDSInstance_gp3 (547.32s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/rds 552.106s
% make testacc TESTARGS='-run=TestAccRDSInstance_storageThroughput' PKG=rds ACCTEST_PARALLELISM=3
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/rds/... -v -count 1 -parallel 3 -run=TestAccRDSInstance_storageThroughput -timeout 180m
=== RUN TestAccRDSInstance_storageThroughput
=== PAUSE TestAccRDSInstance_storageThroughput
=== CONT TestAccRDSInstance_storageThroughput
--- PASS: TestAccRDSInstance_storageThroughput (698.24s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/rds 703.129s
…orderableClassMySQLGP3
…fig_orderableClassMySQLGP3'.
@erz4 Thanks for the contribution 🎉 👏. |
This functionality has been released in v4.45.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! |
AWS recently [added support for `gp3` storage type][1], and Terraform AWS provider [implemented][2] this functionality as well in version 4.45.0. Closes terraform-aws-modules#452 [1]: https://aws.amazon.com/about-aws/whats-new/2022/11/amazon-rds-general-purpose-gp3-storage-volumes/ [2]: hashicorp/terraform-provider-aws#27670
AWS recently [added support for `gp3` storage type][1], and Terraform AWS provider [implemented][2] this functionality as well in version 4.45.0. Closes terraform-aws-modules#452 [1]: https://aws.amazon.com/about-aws/whats-new/2022/11/amazon-rds-general-purpose-gp3-storage-volumes/ [2]: hashicorp/terraform-provider-aws#27670
AWS recently [added support for `gp3` storage type][1], and Terraform AWS provider [implemented][2] this functionality as well in version 4.45.0. Closes terraform-aws-modules#452 [1]: https://aws.amazon.com/about-aws/whats-new/2022/11/amazon-rds-general-purpose-gp3-storage-volumes/ [2]: hashicorp/terraform-provider-aws#27670
AWS recently [added support for `gp3` storage type][1], and Terraform AWS provider [implemented][2] this functionality as well in version 4.45.0. Closes terraform-aws-modules#452 [1]: https://aws.amazon.com/about-aws/whats-new/2022/11/amazon-rds-general-purpose-gp3-storage-volumes/ [2]: hashicorp/terraform-provider-aws#27670
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
Support new RDS storage type of gp3
References
https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html
Closes #27702