- Newest
- Most votes
- Most comments
Hi,
I understand that you'd like to know if AWS CLI supports sourcing credentials from SDK store.
AWS CLI DOES NOT support sourcing credentials from the SDK store.
AWS Tools for PowerShell supports this feature as you have mentioned:
- Using AWS Credentials - Credentials Store Locations - https://docs.aws.amazon.com/powershell/latest/userguide/specifying-your-aws-credentials.html#specifying-your-aws-credentials-store
The AWS SDK for .NET and Toolkit for Visual Studio can also use the AWS SDK store.
- Using the SDK Store (Windows only) - https://docs.aws.amazon.com/sdk-for-net/v3/developer-guide/sdk-store.html
- <a id="providing-aws-credentials"></a>Providing AWS credentials - Credentials locations - https://docs.aws.amazon.com/toolkit-for-visual-studio/latest/user-guide/credentials.html#credentials-locations
However, please note that AWS CLI DOES NOT support sourcing credentials from the SDK store.
Since you want to use a named profile for CLI, you may follow the guidelines in the documentation below to achieve this use case:
- Named profiles for the AWS CLI - https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html
To use a named profile for multiple commands, you can avoid specifying the profile in every command by setting the AWS_PROFILE environment variable at the command line. I believe this is what you are trying to achieve (please correct me if I'm wrong).
For Linux or macOS, you may set the AWS_PROFILE environment variable to use a profile called 'user1' as shown below:
$ export AWS_PROFILE=user1
For Windows, you may set the AWS_PROFILE environment variable to use a profile called 'user1' as shown below:
C:> setx AWS_PROFILE user1
Please let us know if you run into any further questions or concerns!
Relevant content
- Accepted Answerasked 5 months ago
- asked a year ago
- AWS OFFICIALUpdated 12 days ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
Understood thank you