Skip to content
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

[Bug]: RDS SQLServer — InvalidParameterCombination: You can't specify storage throughput for storage type io1. #32288

Open
marceloboeira opened this issue Jun 29, 2023 · 1 comment
Labels
bug Addresses a defect in current functionality. service/rds Issues and PRs that pertain to the rds service.

Comments

@marceloboeira
Copy link
Contributor

marceloboeira commented Jun 29, 2023

Terraform Core Version

1.5.2

AWS Provider Version

4.67.0

Affected Resource(s)

  • aws_db_instance

Expected Behavior

Error during plan stating this "target state" is not possible, something along the lines of:

terraform plan ...
...
Validation error: You can't specify storage throughput for storage type io1.

Actual Behavior

  • Error after applying, changes applied partially (gp3 -> io1 works, storage throughput stays pending)
  • A new terraform plan shows a diff
~ resource "aws_db_instance" "this" {
       ~ storage_throughput                    = 0 -> 1000
...

And if you try to apply that, it fails with the mentioned error

Relevant Error/Panic Output Snippet

│ Error: updating RDS DB Instance (<redacted>): operation error RDS: ModifyDBInstance, 
https response error StatusCode: 400, RequestID: <redacted>, 
api error InvalidParameterCombination: 
You can't specify storage throughput for storage type io1.

Terraform Configuration Files

In the steps to reproduce...

Steps to Reproduce

  1. Provision a DB with this config:
resource "aws_db_instance" "this" {
  ...
  storage_type         = "gp3"
  storage_throughput   = 1000
}
  1. Then after plan/apply, switch the config to be:
resource "aws_db_instance" "this" {
  ...
-  storage_type         = "gp3"
+  storage_type         = "io1"
  storage_throughput    = 1000
}
  1. Then plan/apply that change (which "works")

  2. The gp3 to io1 change works, apply "finishes"

  3. The next terraform plan shows this diff

~ resource "aws_db_instance" "this" {
       ~ storage_throughput                    = 0 -> 1000
...
  1. And if you try to apply that, it fails with the mentioned error

Important Factoids

  • Only observed with SQLServer, it is also probably engine specific to some extend
  • Interestingly enough, AWS Accepts the first API call to switch the storage type but not the next ones ...

References

Would you like to implement a fix?

Yes

@marceloboeira marceloboeira added bug Addresses a defect in current functionality. needs-triage Waiting for first response or review from a maintainer. labels Jun 29, 2023
@github-actions
Copy link

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@github-actions github-actions bot added the service/rds Issues and PRs that pertain to the rds service. label Jun 29, 2023
@justinretzolk justinretzolk removed the needs-triage Waiting for first response or review from a maintainer. label Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Addresses a defect in current functionality. service/rds Issues and PRs that pertain to the rds service.
Projects
None yet
Development

No branches or pull requests

2 participants