-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 1.03 KB
/
cleanup-stacks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: cleanup-stacks
on:
schedule:
- cron: "0 */3 * * *"
workflow_dispatch:
jobs:
cleanup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: jbrunton/cleanup-pulumi-stacks@v2
with:
working-directory: pulumi
verbose: true
preview: false
config: |
policies:
dev:
match:
name: '!(staging|production)'
ttl:
hours: 6
staging:
match:
name: staging
ttl:
hours: 24
production:
match:
name: production
ttl:
hours: 24
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: us-east-1