awscli-mfa icon indicating copy to clipboard operation
awscli-mfa copied to clipboard

awscli-mfa.sh errors if '[preview]' section exists in ~/.aws/config

Open edmundcraske-bjss opened this issue 5 years ago • 0 comments

I have a '[preview]' section set in my ~/.aws/config file that previously enabled some preview features for CloudFront (not sure if they are still needed). This is/was a legitimate configuration that should be handled correctly by this tool. However I instead get this output and cannot proceed:

      While it's required in the credentials file, it is not allowed in the config file.
      Also note that the 'default' profile is an exception; it may NEVER have the 'profile' prefix.

      Please edit the '/Users/foobar/.aws/config' to correct the error(s) and try again!```

edmundcraske-bjss avatar Jan 16 '20 13:01 edmundcraske-bjss