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:
Terraform Version
1.22.0
Affected Resource(s)
provider configuration with
aws_iam_auth
Terraform Configuration Files
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:
terraform apply