Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hard-coded check for presence of "prod" string in account alias is too restrictive #997

Open
krishnan-mani opened this issue May 11, 2023 · 2 comments

Comments

@krishnan-mani
Copy link

As documented in the README, aws-nuke refuses to run as soon as it detects the presence of the (substring) prod in the AWS account alias.

However, it is also not uncommon to use a string such as nonprod (!) in the alias for accounts that not in production use, and these are precisely the kinds of accounts one may want to use aws-nuke against, as they are used for experimentation.

Rather than be forced to fork the repo (to make a trivial change to remove the hard-coding), we are requesting that the user be allowed to specify a choice for this kind of safeguard.

This is currently an impediment to our intended use of aws-nuke

@sstoops
Copy link
Contributor

sstoops commented May 24, 2023

I think this PR may address your concern: #983

@ikarlashov
Copy link

We have the same issue that OP described. It's not possible to nuke nonprod accounts. Also all accounts that have productivity or producer in the name won't be nuked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants