terraform-provider-redshift icon indicating copy to clipboard operation
terraform-provider-redshift copied to clipboard

Fix #113 Allow setting of a AWS profile when creating the SDK config

Open pwhittlesea opened this issue 2 years ago • 1 comments

Fixes #113

When working with many AWS accounts you need to be able to specify different profiles when connecting to given services.

Currently this plugin does not allow the setting of a profile which means you need to remember to run Terraform with AWS_PROFILE=customprofile terraform plan or the GetClusterCredentials call will fail.

If you are using the AWS provider, running Terraform with the AWS_PROFILE overrides any explicitly defined profile on the provider. This means when using profiles, under some conditions, you cannot use this provider and the AWS provider in the same project.

This PR adds the option to define a profile which is completely optional. If no profile is defined the provider operates in the same way as it did before.

pwhittlesea avatar Jul 21 '23 09:07 pwhittlesea

Currently I haven't added any tests as I wanted to see if the existing tests would still pass before I commit more time to this. Can a maintainer authorize the workflow please?

pwhittlesea avatar Jul 21 '23 09:07 pwhittlesea