-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add SSO configuration support to Terratest #1460
Comments
@ZachGoldberg alas I am not able to do it myself as it requires better Go understanding and Terratest structure. So I created this ticket to request assistance. Is it possible to re-assign it to someone who is good with Go and Terratest? |
Hey, It seems the issue you're facing is related to the underlying AWS SDK used by Terratest. I was able to reproduce your issue on the master branch using my configuration. [profile FullAdmin-1234567890]
sso_session = shadow
sso_account_id = 1234567890
sso_role_name = FullAdmin
region = eu-west-1
output = json
[sso-session shadow]
sso_start_url = https://1234567890.awsapps.com/start
sso_region = eu-west-1
sso_registration_scopes = sso:account:access On the master branch, it fails, but it works fine in my fork with SDK v2. Could I ask you to try run a test with the AWS SDK v2 branch? You can point to my fork for now. go mod init github.com/your-org/new-project
go mod edit -replace github.com/gruntwork-io/[email protected]=github.com/wakeful/[email protected]
go get github.com/gruntwork-io/terratest/modules/[email protected] |
@wakeful yes, it works as expected. Thanks! |
Thanks! |
hey @kkrav3ts can you close this issue? |
Sure, will do! |
Describe the solution you'd like
In order to run tests in CLI, I need to be logged in first. I use IAM Identity Center (SSO, not Legacy):
Being successfully logged in, I run tests and get:
Basically, I'd wanted to ask to implement support for new implementation of IAM Identity Center (SSO) login: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html
Describe alternatives you've considered
With using Legacy IAM Identity Center, everything works fine:
Additional context
None
The text was updated successfully, but these errors were encountered: