Skip to content

Delete old cloudformation stacks #789

Delete old cloudformation stacks

Delete old cloudformation stacks #789

name: "Delete old cloudformation stacks"
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
permissions: {}
jobs:
delete-old-cloudformation-stacks:
runs-on: ubuntu-22.04
permissions:
id-token: write
contents: read
steps:
- name: Checkout local github scripts
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
persist-credentials: false
sparse-checkout: |
.github/scripts
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@ec61189d14ec14c8efccab744f656cffd0e33f37
with:
aws-region: eu-west-2
role-to-assume: ${{ secrets.DEV_CLOUD_FORMATION_DEPLOY_ROLE }}
role-session-name: fhir-validator-lambda-delete-old-stacks
- name: delete stacks
shell: bash
working-directory: .github/scripts
run: ./delete_stacks.sh