Git Product home page Git Product logo

aws-nuke-account-cleanser-example's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

aws-nuke-account-cleanser-example's Issues

I got a $1000 bill in one month of running this code several times per day.

ComputeType: BUILD_GENERAL1_2XLARGE

This is a completely unacceptable default size for a project of this type. It could easily break the bank.

BUILD_GENERAL1_2XLARGE: Use up to 145 GB memory, 72 vCPUs, and 824 GB of SSD storage for builds. This compute type supports Docker images up to 100 GB uncompressed.

Rediculous.

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-environment.html#cfn-codebuild-project-environment-computetype

I recommend setting it to BUILD_GENERAL1_SMALL

EDIT: LAMBDA wont work because it has a 15min timeout https://aws.amazon.com/blogs/devops/aws-codebuild-adds-support-for-aws-lambda-compute-mode/

nuke is not a recognized option of aws-nuke

๐Ÿ‘‹ First off, thanks for building this project. The mode of delivery is quite clever and perfect for a project I'm working on. As I've tested this out, I've run across an error with this section of the CF stack template:

- |
if [ "$AWS_NukeDryRun" = "true" ]; then
    for file in $(ls nuke_config_$NukeTargetRegion*) ; do aws-nuke -c $file --force --profile nuke 2>&1 |tee -a aws-nuke.log; done
elif [ "$AWS_NukeDryRun" = "false" ]; then
    for file in $(ls nuke_config_$NukeTargetRegion*) ; do aws-nuke -c $file --force --no-dry-run --profile nuke 2>&1 |tee -a aws-nuke.log; done
else
    echo "Couldn't determine Dryrun flag...exiting"
exit 1
fi

This errors out saying that nuke is not a recognized option of aws-nuke. In searching for other reference material, I don't see that option being used or even part of aws-nuke, and removing it gets rid of the error and leads to successful aws-nuke execution. Am I missing something here?

CodeBuild job fails when 0 matches by grep

- cat aws-nuke.log | grep -c " - filtered by config" >> email_template.txt

cat aws-nuke.log | grep -c " - would remove" >> email_template.txt

When there are 0 matches from grep it returns an exit status 1 causing CodeBuild to interpret the command as having failed. I've worked around this by adding a || true in the command

cat aws-nuke.log | grep -c " - would remove" || true >> email_template.txt

The Stack is deleting itself ๐Ÿ˜‘

When running in non dry run, this stack is nuking itself and deleting its own resources...

It's a bit dumb because this really meet my usecase with the parallel tasking and the mail report, but yea, as of today not perfect and need a little tweeking with role permissions.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.