-
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
aws db instance: displaying invalid parameter in error #4803
Conversation
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.
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 { |
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.
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", "") {
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. |
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! |
Fixes #3626
Changes proposed in this pull request:
InvalidParameterValue
error is returned when creating DB resource, then opts sent to the requests are shown in the errorOutput from acceptance testing:
None