Skip to content

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

@edmundcraske-cgi

Description

@edmundcraske-cgi

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!```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions