-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (42 loc) · 1.54 KB
/
delete-curl-performance-test.yaml
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
41
42
43
44
45
46
47
48
49
50
name: delete-main-stacks
on:
workflow_dispatch:
inputs:
account:
description: "Alias of the AWS account to be applied to"
required: true
defaults:
run:
shell: bash
jobs:
echo-parameters:
name: parameters
runs-on: ubuntu-latest
continue-on-error: false
steps:
- name: account ${{ github.event.inputs.account }}
run: echo
delete-curl-performance-test:
name: Delete curl-performance-test
runs-on: ubuntu-latest
environment:
name: production
env:
region: ap-southeast-2
steps:
- uses: actions/checkout@v4
- uses: aws-actions/configure-aws-credentials@v4.0.2
env:
AWS_ACCESS_KEY_ID_NAME: ${{ github.event.inputs.account }}_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY_NAME: ${{ github.event.inputs.account }}_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION: ${{ env.region }}
with:
aws-access-key-id: ${{ secrets[env.AWS_ACCESS_KEY_ID_NAME] }}
aws-secret-access-key: ${{ secrets[env.AWS_SECRET_ACCESS_KEY_NAME] }}
aws-region: ${{ env.AWS_DEFAULT_REGION }}
- name: Delete CloudWatch Dashboard CurlPerformance
run: aws cloudwatch delete-dashboards --dashboard-names CurlPerformance
- name: Delete curl-performance-test-main stack
run: aws cloudformation delete-stack --stack-name curl-performance-test-main
- name: Wait until curl-performance-test-main stack delete complete
run: aws cloudformation wait stack-delete-complete --stack-name curl-performance-test-main