mattclay / aws-terminator Goto Github PK
View Code? Open in Web Editor NEWAn AWS Lambda function for cleaning up AWS resources.
License: Apache License 2.0
An AWS Lambda function for cleaning up AWS resources.
License: Apache License 2.0
Ansible Pull Request: ansible/ansible#59925
The integration test failed with an AccessDeniedException
in https://app.shippable.com/github/ansible/ansible/runs/149823/113/console
The integration test creates one CloudWatch log group and applies metric filters on it.
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.
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:"
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/*
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.