Run the following commands (from Ubuntu):
1. Add the following in ~/.aws/config file:
[profile sso]
sso_start_url = <SSO-Start-URL>
sso_region = <AWS-Region>
sso_account_id = <12-digit-AWS-Account-Number>
sso_role_name = <SSO-Role-Name>
2. Run the following command:
aws sso login --profile sso
3. You will be redirected to the browser --> Login --> Allow --> Close the browser
4. Install aws-sso-creds:
brew tap jaxxstorm/tap
brew install aws-sso-creds
5. Run the following command:
eval $(aws-sso-creds export --profile sso)
6. Check the current profile:
aws sts get-caller-identity
.
Comments
Post a Comment