Login - davidkhala/aws-collection GitHub Wiki
config file path
$env:USERPROFILE\.aws\configon Windows~/.aws/configon Linux or macOS
credentials file
wizard: aws configure
file path
$env:USERPROFILE\.aws\credentialson Windows~/.aws/credentialson Linux or macOS
SSO
prerequisite:
- your AWS SSO start URL
https://david-khala.awsapps.com/start
- the AWS Region that hosts the AWS SSO directory
ap-east-1
- Map your SSO user/group towards your aws account
- mapped to [email protected]
- aws cli
Workflow
-
aws configure sso -
SSO session name (Recommended): desktop SSO start URL [None]: https://david-khala.awsapps.com/start SSO Region [None]: ap-east-1 SSO registration scopes [sso:account:access]: - login to your aws SSO account in web browser
-
CLI default client Region [None]: ap-east-1 CLI default output format [None]: CLI profile name [AdministratorAccess-606262941110]: default - Done, you can validate by
Oraws s3 ls --profile defaultaws sts get-caller-identity
If session timeout, refresh by aws sso login