Skip to content

Delete AWS Lambda functions created by tests regularly #2713

Closed

Description

@antonpirker

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

Activity

  1. antonpirker commented on Feb 7, 2024

    @antonpirker
    ContributorAuthor

    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)

  2. self-assigned this
    on Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions