Skip to content

can't provide aws_rds_iam_provider_role_arn and aws_rds_iam_region in the same provider blockΒ #556

@kim-anchorzero

Description

@kim-anchorzero

At present if you supply both of these values explicitly in the provider setup aws_rds_iam_region will be ignored when it comes time to generate the temporary auth credentials. This will result in unexpected (and hard to diagnose!) PAM authentication errors because the token generated is effectively invalid..

The issue seems to happen around

- previously on line 250 we set up the awscfg with the supplied region but then in the block where we handle the role we discard this information when we re-create the awscfg with these new session credentials.

Workaround at the moment is to ensure that the AWS_REGION env var is set though this can cause other issues depending on your AWS provider setups.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions