From 2cc380b9b97f84314e60901108c025095a654b52 Mon Sep 17 00:00:00 2001 From: ashmrtn <3891298+ashmrtn@users.noreply.github.com> Date: Mon, 7 Aug 2023 10:13:38 -0700 Subject: [PATCH] Remove redundant S3 bucket cleanup (#3977) Now that we're relying on S3 lifecycle policies for bucket cleanup we can remove the script that would remove everything from the bucket on a weekly basis. --- #### Does this PR need a docs update or release note? - [ ] :white_check_mark: Yes, it's included - [ ] :clock1: Yes, but in a later PR - [x] :no_entry: No #### Type of change - [ ] :sunflower: Feature - [ ] :bug: Bugfix - [ ] :world_map: Documentation - [ ] :robot: Supportability/Tests - [x] :computer: CI/Deployment - [ ] :broom: Tech Debt/Cleanup #### Test Plan - [x] :muscle: Manual - [ ] :zap: Unit test - [ ] :green_heart: E2E --- .github/workflows/weekly_cleanup.yml | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 .github/workflows/weekly_cleanup.yml diff --git a/.github/workflows/weekly_cleanup.yml b/.github/workflows/weekly_cleanup.yml deleted file mode 100644 index befd7d1de..000000000 --- a/.github/workflows/weekly_cleanup.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Weekly S3 Test Bucket Cleanup -on: - schedule: - # every saturday at 23:59 (11:59pm) - - cron: "59 23 * * 6" - -permissions: - # required to retrieve AWS credentials - id-token: write - -jobs: - S3-Test-Cleanup: - runs-on: ubuntu-latest - environment: Testing - - steps: - - name: Configure AWS credentials from Test account - uses: aws-actions/configure-aws-credentials@v2 - with: - role-to-assume: ${{ secrets.AWS_IAM_ROLE }} - role-session-name: integration-testing - aws-region: us-east-1 - - - name: Delete all files in the test bucket - run: | - aws s3 rm s3://${{ secrets.CI_TESTS_S3_BUCKET }} --recursive --include "*" --exclude "longevity/*" \ No newline at end of file