AWS CLI v2 Preview with AWS SSO

​ A few days ago AWS annouced the AWS CLI v2 Preview with support for AWS SSO. Sounds promising, however it could be that you have issues validating your device during the aws2 configure sso stage. When you get to the following step: ​

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:
Then enter the code:

​ You may get the following error: ​

* Unexpected Error *
* TypeError: Failed to fetch *

This is because your Content Security Policy isn't set up correctly in your browser. To resolve the issue you need to do the following: ​

  • For Firefox you need to go to about:config and set security.csp.enable to false.
  • For Google Chrome you need to install the following plugin Disable Content-Security-Policy.

​​ The .aws/config file should look like this if everything was done correctly:

[profile my-profile]
sso_start_url =
sso_region = {AWS::Region}
sso_account_id = 123456789012
sso_role_name = readOnly
region = {AWS::Region}
output = json

To use your Profile:

aws2 s3 ls --profile my-profile


export AWS_PROFILE=MyProfile

Hamburg AWS User Group 2019/12

re:Invent 2019 - Public Viewing: Werner Vogels Keynote

Dec 6th 2019

Marc Schröter

re:Invent 2019

Dec. 2-6, 2019. Las Vegas - A List of every new service and every feature what AWS announced during this week.

Dec 6th 2019

David Krohn

New Exam Versions and Certification

Coming Soon to AWS Certification

Oct 2nd 2019

David Krohn