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

Delete AWS Lambda functions created by tests regularly #2713

Closed
antonpirker opened this issue Feb 7, 2024 · 1 comment · Fixed by #2960
Closed

Delete AWS Lambda functions created by tests regularly #2713

antonpirker opened this issue Feb 7, 2024 · 1 comment · Fixed by #2960
Assignees

Comments

@antonpirker
Copy link
Member

Our AWS Lambda test suite is creating real Lambda functions in AWS.

We need a Lambda function that runs every Sunday that will remove all Lambda functions named test_*.

Run Lambda function ever X days:
https://stackoverflow.com/questions/56979740/how-to-run-aws-lambda-every-6-hours

Delete Lambda function from Python SDK:
https://docs.aws.amazon.com/lambda/latest/dg/example_lambda_DeleteFunction_section.html

@antonpirker
Copy link
Member Author

We have a bash script that does this: https://github.com/getsentry/sentry-python/blob/master/scripts/aws-cleanup.sh

So maybe we can just invoke this in an AWS Lambda function (or somewhere else)

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

Successfully merging a pull request may close this issue.

1 participant