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

[WIP] Issue-5648: aws_db_instance iops param should be only being used when storage_type is io1 #5679

Closed
wants to merge 2 commits into from

Conversation

iceycake
Copy link
Contributor

No description provided.

@catsby
Copy link
Contributor

catsby commented Mar 17, 2016

Hey @iceycake thanks for opening this!

I think the idea here is correct, but I'm not sure the implementation is quite what we need. For example, storage_type is optional both in Terraform and the API (Default: io1 if the Iops parameter is specified; otherwise standard)

So here, if the user omits storage_type, I think we'll get a nil pointer dereference in the isIopsSupportedStorageType method.

I think we can fix this by introducing some logic like so:

  • if storage_type is supplied, use that for StorageType. If iops is supplied and storage type is not io1, log a warning and ignore the io1 value.
  • If storage_type is not set, and iops is set, log that storage_type was omitted and the API will assume io1 because we specify an iops value.

I believe that should cover our bases, how does that sound? It doesn't look like we ever call d.Set("iops") so that should work out in our favor.

@catsby catsby added bug provider/aws waiting-response An issue/pull request is waiting for a response from the community labels Mar 17, 2016
@iceycake
Copy link
Contributor Author

Makes sense. I will take a look and submit the changes based on your comment.

@Bowbaq
Copy link
Contributor

Bowbaq commented Mar 18, 2016

probably related #5676

@catsby
Copy link
Contributor

catsby commented Mar 23, 2016

Thanks @iceycake – let me know when this is ready for another look!

@iceycake iceycake changed the title Issue-5648: aws_db_instance iops param should be only being used when storage_type is io1 [WIP] Issue-5648: aws_db_instance iops param should be only being used when storage_type is io1 Mar 24, 2016
@iceycake
Copy link
Contributor Author

Try to find spare time to get this re-implement. Marked this as WIP.

@catsby
Copy link
Contributor

catsby commented Jun 17, 2016

Hey I'm going to go ahead and close this for now. Let us know if you pick it back up again!

@catsby catsby closed this Jun 17, 2016
@ghost
Copy link

ghost commented Apr 25, 2020

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.

@ghost ghost locked and limited conversation to collaborators Apr 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug provider/aws waiting-response An issue/pull request is waiting for a response from the community
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants