awscli-mfa
awscli-mfa copied to clipboard
awscli-mfa.sh errors if '[preview]' section exists in ~/.aws/config
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!```