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

aws_ebs_volume - iops parameter is lost when EBS type changes from io2 to io1 #21583

Closed
kormikez opened this issue Nov 2, 2021 · 2 comments
Closed
Labels
bug Addresses a defect in current functionality. service/ec2 Issues and PRs that pertain to the ec2 service.

Comments

@kormikez
Copy link

kormikez commented Nov 2, 2021

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • 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
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform CLI and Terraform AWS Provider Version

Affected Resource(s)

  • aws_ebs_volume

Terraform Configuration Files

Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.

Original:

resource "aws_ebs_volume" "example" {
  availability_zone = "eu-west-1a"
  size              = 3072
  iops              = 20000
  type              = "io2"
}

Modified:

resource "aws_ebs_volume" "example" {
  availability_zone = "eu-west-1a"
  size              = 3072
  iops              = 20000
  type              = "io1"
}

(type change from io2 to io1)

Debug Output

n/a

Panic Output

n/a

Expected Behavior

Modification is applied and EBS type changes from io2 to io1.

Actual Behavior

Error: InvalidParameterCombination: The parameter iops must be specified for io1 volumes.
	status code: 400, request id: 41c2cc74-d569-47a8-a2e4-cf5121af092f

  on ebs_io1_test.tf line 1, in resource "aws_ebs_volume" "example":
   1: resource "aws_ebs_volume" "example" {

Steps to Reproduce

  1. Create an EBS volume with type = "io2" along with required parameters.
  2. Update the resource to have type of io1 and apply.

Important Factoids

n/a

References

n/a

Notes

  • AWS API does not prevent such change. You can do it via console or CLI without issues.
  • Workaround for this is to modify the volume manually and then update TF code.
@github-actions github-actions bot added needs-triage Waiting for first response or review from a maintainer. service/ec2 Issues and PRs that pertain to the ec2 service. labels Nov 2, 2021
@ewbankkit ewbankkit added bug Addresses a defect in current functionality. and removed needs-triage Waiting for first response or review from a maintainer. labels Nov 2, 2021
@ewbankkit
Copy link
Contributor

@kormikez Thanks for raising this issue.
It has already been noticed in #20536. I'm going to close this one as a duplicate so that we can concentrate discussion in the linked issue.
Please add any additional comments there.

@github-actions
Copy link

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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/ec2 Issues and PRs that pertain to the ec2 service.
Projects
None yet
Development

No branches or pull requests

2 participants