Open ozeebee opened 5 years ago
aws-nuke --config config.yml --profile Default https://github.com/FernandoMiguel/kb/blob/master/aws-nuke/Readme.md
aws-nuke --config config.yml --profile Default https://github.com/FernandoMiguel/kb/blob/master/aws-nuke/Readme.md
Thanks @FernandoMiguel,
I had no success with the "Default" profile but based on your document and after experimenting a lot, I finally succeeded.
I had to do it in 2 steps:
aws-vault exec "${AWS_PROFILE:-default}" --no-session --
aws-nuke -c nuke-config.yml --access-key-id ${AWS_ACCESS_KEY_ID} --secret-access-key ${AWS_SECRET_ACCESS_KEY}
I had to work without session (--no-session
flag), otherwise I had an InvalidClientTokenId
.
Any other attempt failed.
Too bad we cannot do it with a one-liner, but at least it works.
That's a terrible way of doing this. I get it to work with my role just fine
i had to do the --no-session thing to
I have the same issue when running aws-nuke with aws-vault, any solutions?
Came across the same issue in the latest version (2.16.0), --no-session
approach workaround still seems to work
Hi,
Just trying to use
aws-nuke
withaws-vault
without success so far:I also tried without a session token:
The environment is correctly defined with aws-vault:
I tried to double-quote the arguments but I still get the error. Note that:
Tried with the latest versions of these tools on macOS.
Suggestions are welcome,
thanks !