You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When there is a whitespace in sso session name, aws configure sso generates ~/.aws/config where sso-session section include session name with apostrophes, which is not recognised by aws sdk.
Expected Behavior
aws sdk is compatible with the config which aws configure sso generates
Current Behavior
aws sdk can't parse the config file with this error:
"failed to find SSO session section"
Reproduction Steps
invoke aws configure sso and type session name with whitespace
use aws sdk with newly created profile
Possible Solution
No response
Additional Information/Context
aws configure sso generates the following ~/.aws/config config:
RanVaknin
added
p2
This is a standard priority issue
queued
This issues is on the AWS team's backlog
and removed
needs-triage
This issue or PR still needs to be triaged.
labels
Oct 16, 2023
Checking with the CLI folks on this -- the quoting of the profile they generate is technically out of spec to my understanding, but my guess is they're not going to be able to get away with changing that behavior.
After reviewing this with the team we have confirmed that the CLI is not behaving according to the shared config file specification, and therefore we are not going to mimic this same incorrect behavior.
This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
Describe the bug
When there is a whitespace in sso session name,
aws configure sso
generates~/.aws/config
wheresso-session
section include session name with apostrophes, which is not recognised by aws sdk.Expected Behavior
aws sdk is compatible with the config which
aws configure sso
generatesCurrent Behavior
aws sdk can't parse the config file with this error:
"failed to find SSO session section"
Reproduction Steps
aws configure sso
and type session name with whitespacePossible Solution
No response
Additional Information/Context
aws configure sso
generates the following~/.aws/config
config:If we remove apostrophes in
sso-session
section, everything will work fine:It looks like the fix is to add optional checking for apostrophes here:
aws-sdk-go-v2/config/shared_config.go
Line 877 in 1cc8d04
AWS Go SDK V2 Module Versions Used
github.com/aws/aws-sdk-go-v2 v1.21.0
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.13.11
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.11.83
github.com/aws/aws-sdk-go-v2/service/dynamodb v1.21.1
github.com/aws/aws-sdk-go-v2/service/s3 v1.38.5
github.com/aws/smithy-go v1.14.2
Compiler and Version used
1.21.1
Operating System and version
ubuntu 22.04
The text was updated successfully, but these errors were encountered: