Giter Club home page Giter Club logo

aws-terminator's Introduction

AWS Terminator

An AWS Lambda function for cleaning up AWS resources.

Run the sanity tests

We use tox to run the sanity tests:

$ tox

You can run one specific test with a -e foo parameter. Use tox -av to list them all:

$ tox -e pylint

aws-terminator's People

Contributors

abikouo avatar alinabuzachis avatar avishayil avatar badnetmask avatar caphrim007 avatar ezmac avatar gomathiselvis avatar goneri avatar gravesm avatar hakbailey avatar ichekaldin avatar jillr avatar kapilt avatar mandar242 avatar marknet15 avatar markuman avatar matt-telstra avatar mattclay avatar mmoyle avatar oukooveu avatar prasadkatti avatar s-hertel avatar sebastien-rosset avatar shaps avatar stefanhorning avatar tjarra avatar tremble avatar waffie1 avatar willthames avatar zeten30 avatar

Stargazers

 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  avatar  avatar  avatar  avatar

aws-terminator's Issues

Fix Cloudformation class

Cloudformation class currently returned stacks in a state of DELETE_COMPLETE, which live something approaching forever. Because the Cloudformation tests at one point used name=CloudformationInfo-IntegrationTest instead of resource_prefix, there's a deleted stack that's making the terminator unhappy. Double check the boto docs to make sure there's not a better way, otherwise see if we can filter by stack state. If that fails, cloudformation policies may need to act on arn:aws:cloudformation:us-east-1:{{ acct_id }}:stack/*

couldn't resolve module/action 'aws_account_facts'

The Deployment Process section of the README.md is missing the instructions asking the user to install the mattclay.aws collection. The change was made via #72. The README.md should have been updated as part of that PR.

DbTerminator for SSM Parameter Store can race with the tests or itself

We're seeing ParameterNotFound in our Cloudwatch logs, for example on this CI run. It appears that everything should have worked here so need to reproduce and see if the Db is not updating the entry after the tests delete the Parameter or if something else is going on.
https://app.shippable.com/github/ansible-collections/community.aws/runs/847/35/console

"error \"ParameterNotFound\" terminating SsmParameter: name=/shippable-847-35/deeppath/toodir/samevar, id=/shippable-847-35/deeppath/toodir/samevar age=0:10:01, stale=True"

"Traceback (most recent call last):
  File \"/var/task/terminator/__init__.py\", line 138, in terminate
    instance.terminate()
  File \"/var/task/terminator/application_services.py\", line 323, in terminate
    self.client.delete_parameter(Name=self.id)
  File \"/opt/python/lib/python3.7/site-packages/botocore/client.py\", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File \"/opt/python/lib/python3.7/site-packages/botocore/client.py\", line 661, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.errorfactory.ParameterNotFound: An error occurred (ParameterNotFound) when calling the DeleteParameter operation:"

https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ssm.html#SSM.Client.delete_parameter

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.