AWS CLI – How to authenticate with SSO

Configure your ~/.aws/config like this: Now, login using the following command: When the web browser popup, choose Allow and go back to the shell. After that, issue new commands like this: Now, to be able to stop using –profile parameter every time, export the AWS_PROFILE variable: To logout: If you find the error bellow, run aws sso login again:

AWS CLI – How to authenticate with SSO Read More »