Skip to content

Clean up test resources #1050

Clean up test resources

Clean up test resources #1050

Workflow file for this run

name: Clean up test resources
permissions:
id-token: write
contents: read
on:
workflow_dispatch:
inputs:
stackPrefix:
description: "Prefix of the stacks to clean"
required: true
env:
NODE_NO_WARNINGS: 1
jobs:
cleanup:
runs-on: ubuntu-24.04
env:
STACK_PREFIX: ${{ github.event.inputs.stackPrefix }}
VERSION: ${{ github.sha }}
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: "24.x"
cache: "npm"
- name: Install dependencies
run: npm ci --no-audit
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v5
with:
# The role is set up via https://github.com/bifravst/ci
# secrets.CI__AWS_ACCOUNT_ID is an organization secret
role-to-assume: |
arn:aws:iam::${{ secrets.CI__AWS_ACCOUNT_ID }}:role/${{ github.repository_owner }}-ci-${{ github.event.repository.name }}
# vars.CI__AWS_REGION is an organization variable
aws-region: ${{ vars.CI__AWS_REGION }}
- name: Clean up resources
run: npm run cdk:ci:destroy