ekristen / aws-nuke

Remove all the resources from an AWS account
https://ekristen.github.io/aws-nuke/
MIT License
258 stars 26 forks source link

Profile flag not supported in brew installed binary #333

Closed cisopaul closed 1 month ago

cisopaul commented 1 month ago

Installed aws-nuke via the homebrew tap per documentation.

brew install ekristen/tap/aws-nuke

I have a profile setup in ~/.aws/config which is using AWS SSO profiles. Run the aws-nuke command which chucks the following error:

> aws-nuke -profile profileName nuke -c ./new-config.yaml
Incorrect Usage: flag provided but not defined: -profile

This happens with -profile (which is in the error message for both) & --profile (which is in the docs)

> aws-nuke --profile profileName nuke -c ./new-config.yaml
Incorrect Usage: flag provided but not defined: -profile
cisopaul commented 1 month ago

seems to be an issue with the order of commands.

aws-nuke --profile command. # doesn't work aws-nuke command --profile . # works

ekristen commented 1 month ago

By design, switched libraries for cli of the build in v3. If it used to work in any position previously that was an oversight on the notes to not call that out.

cisopaul commented 1 month ago

Ok cool, makes sense. Totally happy to close this issue off. Thanks for the swift response

ekristen commented 1 month ago

Sounds good. I'll try and put a note in the upgrade guide soon. Thanks!