'aws configure get region' does not work with the --profile flag #7016
-
Describe the bugWhen I run
Expected Behavior
Current Behavior
Reproduction StepsRun Possible SolutionNo response Additional Information/ContextNo response CLI version usedaws-cli/2.7.3 Environment details (OS name and version, etc.)Ubuntu 22.04 (WSL) Windows 11 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Sorry to hear you're having an issue. I was not able to reproduce this - providing a
Running this:
What do you get if you run You can also check what the debug logs show by adding
|
Beta Was this translation helpful? Give feedback.
-
@kdaily Hey, I realised what the issue was: I have the following naming in my
And this way,
Is the |
Beta Was this translation helpful? Give feedback.
-
Glad it's working now! The https://docs.aws.amazon.com/sdkref/latest/guide/file-format.html#file-format-config I'm going to convert this to a discussion forum post because it is a guidance question and will likely come up again! Please mark it as answered if you agree with the answer provided. Thanks! |
Beta Was this translation helpful? Give feedback.
Hi @YevheniiPokhvalii,
Sorry to hear you're having an issue. I was not able to reproduce this - providing a
--profile
value returns the region set for that profile. I have in my~/.aws/config
file:Running this:
What do you get if you run
aws configure list --profile some_other_profile
?You can also check what the debug logs show by adding
--debug
to your command. You should see (among other statements) the following: