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_rds_iam_region is not set when aws_rds_iam_profile is set #444

Open
azban opened this issue Jun 7, 2024 · 0 comments · May be fixed by #445
Open

aws_rds_iam_region is not set when aws_rds_iam_profile is set #444

azban opened this issue Jun 7, 2024 · 0 comments · May be fixed by #445

Comments

@azban
Copy link

azban commented Jun 7, 2024

Terraform Version

1.22.0

Affected Resource(s)

provider configuration with aws_iam_auth

Terraform Configuration Files

provider "postgresql" {
  host = local.host
  port = 5432
  aws_rds_iam_auth = true
  aws_rds_iam_region = "us-east-2"
  aws_rds_iam_profile = "admin"
  superuser = false
}

resource "postgresql_role" "user" {
  name  = "user"
  login = true
}

Expected Behavior

when a profile and a region are set, the region should override the profile value when getting an RDS auth token. i found this because i didn't have a region set in a profile and i was getting authentication failures, but i imagine there are also cases where you want to set a default region, but have the option to override.

Actual Behavior

the region is not passed into the aws config object if the profile name is set.

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform apply
@azban azban changed the title R aws_rds_iam_region is not set when aws_rds_iam_profile is set Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant