Cannot recognize credential profile name with leading empty space like [ default] #8170
Labels
bug
This issue is a bug.
p3
This is a minor priority issue
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Describe the bug
Related to this issue in aws-sdk-cpp: aws/aws-sdk-cpp#2650
aws-sdk-cpp 1.11.136 might persist profile names with leading empty space like
[ default]
and [ my-dev]`.Then when I used the AWS CLI tool to call some AWS services it shows that the profile cannot be read.
Expected Behavior
The AWS CLI should recognize the empty space before the name and ignore the spaces.
Current Behavior
The AWS CLI is not functioning when there are leading empty spaces.
Reproduction Steps
You can manually test it by opening
~/.aws/credentials
and adding empty spaces before the default profile name. Then try to use the tool to interact with some AWS services like S3.FYI, I tried it with
aws gamelift
.Possible Solution
No response
Additional Information/Context
No response
CLI version used
2.11.18
Environment details (OS name and version, etc.)
Python/3.11.3 Windows/10 exe/AMD64 prompt/off
The text was updated successfully, but these errors were encountered: