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

Issue-20146 Add username parameter to RDS proxy auth #24264

Merged
3 changes: 3 additions & 0 deletions .changelog/24264.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:note
resource/aws_db_proxy: Add `auth.username` argument
```
11 changes: 10 additions & 1 deletion internal/service/rds/find.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,16 @@ func FindDBProxyByName(conn *rds.RDS, name string) (*rds.DBProxy, error) {
return nil, tfresource.NewEmptyResultError(input)
}

return output.DBProxies[0], nil
dbProxy := output.DBProxies[0]

// Eventual consistency check.
if aws.StringValue(dbProxy.DBProxyName) != name {
return nil, &resource.NotFoundError{
LastRequest: input,
}
}

return dbProxy, nil
}

func FindEventSubscriptionByID(conn *rds.RDS, id string) (*rds.EventSubscription, error) {
Expand Down
Loading