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 db instance: displaying invalid parameter in error #4803

Merged
merged 1 commit into from
Jun 12, 2018

Conversation

dav009
Copy link
Contributor

@dav009 dav009 commented Jun 10, 2018

Fixes #3626

Changes proposed in this pull request:

  • if aInvalidParameterValue error is returned when creating DB resource, then opts sent to the requests are shown in the error

Output from acceptance testing:

None

@ghost ghost added the size/XS Managed by automation to categorize the size of a PR. label Jun 10, 2018
@bflad bflad added enhancement Requests to existing resources that expand the functionality or scope. service/rds Issues and PRs that pertain to the rds service. labels Jun 12, 2018
Copy link
Contributor

@bflad bflad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @dav009! 🚀 While the output might be a little verbose, it will save folks from needing to look in the Terraform debug logs for their invalid input.

@@ -908,7 +908,13 @@ func resourceAwsDbInstanceCreate(d *schema.ResourceData, meta interface{}) error
return nil
})
if err != nil {
if awsErr, ok := err.(awserr.Error); ok {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor nitpick: we have a helper function to simplify this logic (and normally prefer to use SDK provided constants but looks like the rds package doesn't have one here 😉 )

if isAWSErr(err, "InvalidParameterValue", "") {

@bflad bflad added this to the v1.23.0 milestone Jun 12, 2018
@bflad bflad merged commit c028ae5 into hashicorp:master Jun 12, 2018
bflad added a commit that referenced this pull request Jun 12, 2018
bflad added a commit that referenced this pull request Jun 12, 2018
@bflad
Copy link
Contributor

bflad commented Jun 14, 2018

This has been released in version 1.23.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

@ghost
Copy link

ghost commented Apr 5, 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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Apr 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/rds Issues and PRs that pertain to the rds service. size/XS Managed by automation to categorize the size of a PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Display Invalid Value During InvalidParameterValue
2 participants