Skip to content
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

sso_session in AWS config doesn't work #954

Closed
richard-viney opened this issue Jul 2, 2023 · 1 comment · Fixed by #957
Closed

sso_session in AWS config doesn't work #954

richard-viney opened this issue Jul 2, 2023 · 1 comment · Fixed by #957
Assignees
Labels
impact/usability Something that impacts users' ability to use the product easily and intuitively kind/bug Some behavior is incorrect or out of spec resolution/fixed This issue was fixed

Comments

@richard-viney
Copy link

richard-viney commented Jul 2, 2023

What happened?

The following example config in .aws/config works with @pulumi/aws but does not work with @pulumi/aws-native.

[sso-session foo]
sso_start_url = https://REDACTED.awsapps.com/start#
sso_region = REDACTED
sso_registration_scopes = sso:account:access

[profile test]
sso_session = foo
sso_account_id = REDACTED
sso_role_name = REDACTED
region = REDACTED
output = json

The error is:

could not load AWS config: profile "test" is configured to use SSO but is missing required configuration: sso_region, sso_start_url

Expected Behavior

The sso_session in the config file should be recognised, but it is not.

Steps to reproduce

See above. The following issue looks very similar and suggests that a dependency upgrade may fix the problem:

hashicorp/terraform-provider-aws#28263

Output of pulumi about

CLI
Version 3.74.0
Go Version go1.20.5
Go Compiler gc

Plugins
NAME VERSION
nodejs unknown

Host
OS darwin
Version 13.4.1
Arch arm64

This project is written in nodejs: executable='/opt/homebrew/bin/node' version='v16.20.1'

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

@richard-viney richard-viney added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Jul 2, 2023
danielrbradley added a commit that referenced this issue Jul 3, 2023
Closes #954

This pulls in this fix to the config module: aws/aws-sdk-go-v2#1903
@danielrbradley
Copy link
Member

Thanks for the research @richard-viney

I've opened a PR to pull in these upgrades: #957

@danielrbradley danielrbradley added impact/usability Something that impacts users' ability to use the product easily and intuitively and removed needs-triage Needs attention from the triage team labels Jul 6, 2023
danielrbradley added a commit that referenced this issue Jul 6, 2023
Closes #954

This pulls in this fix to the config module: aws/aws-sdk-go-v2#1903
@pulumi-bot pulumi-bot added the resolution/fixed This issue was fixed label Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impact/usability Something that impacts users' ability to use the product easily and intuitively kind/bug Some behavior is incorrect or out of spec resolution/fixed This issue was fixed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants