Skip to content

How to Set Up AWS CLI

Authenticating with SSO 1. Install the AWS CLI from here.

  1. Set up your credentials by using the command:
    aws configure sso

SSO session name (Recommended): The name of the session, you can choose this name. SSO start URL [None]: https://medtronicsso.awsapps.com/start#/ SSO region [None]: us-east-1 SSO registration scopes [None]: sso:account:access

This will create a ~/.aws/config file with content such as so:

```[profile my-dev-profile] sso_session = my-sso sso_account_id = 123456789011 sso_role_name = readOnly region = us-west-2 output = json

[sso-session my-sso] sso_region = us-east-1 sso_start_url = https://my-sso-portal.awsapps.com/start sso_registration_scopes = sso:account:access```

  1. After this is configured, you can use the command aws sso login to login. The AWS CLI will attempt to open your default browser and begin the login process for your IAM Identity Center account. Follow the prompts to complete this step.