Skip to content
This repository was archived by the owner on Jan 17, 2025. It is now read-only.

Support cross-account temporary credentials fetching#50

Merged
pawelaugustyn merged 3 commits intomasterfrom
multi-acc
Feb 3, 2022
Merged

Support cross-account temporary credentials fetching#50
pawelaugustyn merged 3 commits intomasterfrom
multi-acc

Conversation

@pawelaugustyn
Copy link
Copy Markdown
Contributor

Resolves #46

@pawelaugustyn
Copy link
Copy Markdown
Contributor Author

$ TESTARGS='-run TestAccRedshiftTemporaryCredentialsAssumeRole' make testacc
gofmt -w $(find . -name '*.go' |grep -v vendor)
TF_ACC=1 go test $(go list ./... |grep -v 'vendor') -v -run TestAccRedshiftTemporaryCredentialsAssumeRole -count=1 -timeout 120m
?   	github.com/brainly/terraform-provider-redshift	[no test files]
=== RUN   TestAccRedshiftTemporaryCredentialsAssumeRole
2022/01/31 14:31:48 [DEBUG] using temporary credentials authentication
2022/01/31 14:31:48 [DEBUG] Assuming role provided in configuration: [arn:aws:iam::********:role/********]
2022/01/31 14:31:48 [DEBUG] making GetClusterCredentials request
2022/01/31 14:31:48 [DEBUG] got temporary credentials with username **********
2022/01/31 14:31:48 [DEBUG] creating database client
2022/01/31 14:31:48 [DEBUG] created database client
--- PASS: TestAccRedshiftTemporaryCredentialsAssumeRole (1.20s)
PASS
ok  	github.com/brainly/terraform-provider-redshift/redshift	1.654s

@winglot winglot added the enhancement New feature or request label Feb 3, 2022
@pawelaugustyn pawelaugustyn merged commit f37a04d into master Feb 3, 2022
@pawelaugustyn pawelaugustyn deleted the multi-acc branch February 3, 2022 11:15
@winglot winglot removed the enhancement New feature or request label Feb 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Not able to GetClusterCredentials using cross account

2 participants