Skip to content

Clean up stale happy stacks every hour #15769

Clean up stale happy stacks every hour

Clean up stale happy stacks every hour #15769

name: Clean up stale happy stacks every hour
on:
schedule:
# Runs "every 55th minute" (see https://crontab.guru)
- cron: "55 * * * *"
permissions:
id-token: write
contents: read
jobs:
build:
name: Clean happy stacks
runs-on: ubuntu-22.04
steps:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-west-2
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
role-duration-seconds: 1800
role-session-name: HappyCleanupSingleCellDPRdevStacks
- name: Clean up stale happy stacks
uses: chanzuckerberg/github-actions/.github/actions/[email protected]
with:
tfe_token: ${{secrets.TFE_TOKEN}}
# the default stale period to delete a stack is 2 weeks
# override like this:
#time: 3 weeks
#time: 2 days