forked from aws-samples/eks-blueprints-actions-workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 1.06 KB
/
terraform-destroy-eks-demo-01.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
name: 'Terraform Destroy EKS Demo 01'
on:
workflow_dispatch:
pull_request:
paths:
- ".github/workflows/terraform-destroy-eks-demo-01.yml"
jobs:
destroy-dev:
name: "Destroy Dev"
uses: ./.github/workflows/terraform-destroy-eks-reusable.yml
with:
aws-region: "us-west-2"
s3-bucket: "terraform-state-eks-demo-us-west-2"
team: "demo"
environment: "dev"
deployment-id: "01"
secrets:
AWS_ACCOUNT: ${{ secrets.DEV_AWS_ACCOUNT }}
AWS_IAM_ROLE: ${{ secrets.DEV_AWS_IAM_ROLE }}
WORKLOADS_PAT: ${{ secrets.DEMO_WORKLOADS_PAT }}
destroy-staging:
needs: [destroy-dev]
name: "Destroy Staging"
uses: ./.github/workflows/terraform-destroy-eks-reusable.yml
with:
aws-region: "us-west-2"
s3-bucket: "terraform-state-eks-demo-us-west-2"
team: "demo"
environment: "staging"
deployment-id: "01"
secrets:
AWS_ACCOUNT: ${{ secrets.STAGING_AWS_ACCOUNT }}
AWS_IAM_ROLE: ${{ secrets.STAGING_AWS_IAM_ROLE }}
WORKLOADS_PAT: ${{ secrets.DEMO_WORKLOADS_PAT }}