Skip to content

[Docs]: aws_db_proxy auth block username is invalid for auth_scheme SECRETS #40776

@sheepwall

Description

@sheepwall

Documentation Link

https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/db_proxy#auth-2

Description

When trying to supply

  auth {
    description               = "Auth for RDS Proxy"
    secret_arn                = aws_secretsmanager_secret.rds_proxy_secret.arn
    iam_auth                  = "REQUIRED"
    client_password_auth_type = "MYSQL_NATIVE_PASSWORD"
    auth_scheme               = "SECRETS"
    username = "admin"
  }

You get api error InvalidParameterValue: UserName must not be set in UserAuthConfig when SECRETS AuthScheme is used.

Might be pretty obvious after a couple of second's thought, but saw nothing about it.

References

No response

Would you like to implement a fix?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationIntroduces or discusses updates to documentation.service/rdsIssues and PRs that pertain to the rds service.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions