This repository was archived by the owner on Jan 17, 2025. It is now read-only.
Support provider authentication using GetClusterCredentials#3
Merged
winglot merged 1 commit intobrainly:masterfrom Jul 15, 2021
Merged
Conversation
Contributor
Author
|
Note: not all tests will pass with the changes here, until #4 is merged. |
winglot
approved these changes
Jul 15, 2021
StevenKGER
referenced
this pull request
in dbsystel/terraform-provider-redshift
Oct 25, 2024
…go-v2-1.x Update module github.com/aws/aws-sdk-go-v2 to v1.21.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In our environment, users are always created
WITH PASSWORD DISABLE(except for superusers, who have randomly-generated passwords that are never distributed to them or saved anywhere, and thus are only known during the user creation process itself). In order to authenticate to Redshift, all users must call GetClusterCredentials.This PR adds a new, optional block in the provider configuration:
temporary_credentials{}. Whenpasswordis not specified buttemporary_credentialsis, then the provider will authenticate usingGetClusterCredentials.Note: I did add an acceptance test case for this configuration but I haven't modified any of the resource tests to use it because it just seemed to blow out the execution time without adding any real value.