Howto:
- Run in the vscode terminal and answer questions from awscli:
$ aws configure sso
SSO session name (Recommended): harvester
SSO start URL [None]: https://spatineo.awsapps.com/start
SSO region [None]: eu-west-1
SSO registration scopes [sso:account:access]:
Attempting to automatically open the SSO authorization page in your default browser.
If the browser does not open or you wish to use a different device to authorize this request, open the following URL:
https://device.sso.eu-west-1.amazonaws.com/
Then enter the code:
-
Your browser will open a login, accept stuff.
-
Go back to the vscode terminal, you will be presented with options. Choose either harvester-seasons-staging or harvester-seasons-production
-
Enter in the following information:
There are 9 AWS accounts available to you.
Using the account ID 399350213473
The only role available to you is: HarvesterSeasonsAdmin
Using the role name "HarvesterSeasonsAdmin"
CLI default client Region [None]: eu-north-1
CLI default output format [None]: json
CLI profile name [HarvesterSeasonsAdmin-399350213473]: harvester-staging
To use this profile, specify the profile name using --profile, as shown:
aws s3 ls --profile harvester-staging
- Set default profile:
export AWS_PROFILE=harvester-staging
- Done!