-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (37 loc) · 1.46 KB
/
terraform-state-rm.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
41
name: Terraform State Remove
on:
workflow_dispatch:
inputs:
resource_address:
description: Resource Address
required: true
env:
TF_VERSION: 1.1.4
KEYCLOAK_DEV_URL: https://sso-keycloak-1-b861c7-test.apps.silver.devops.gov.bc.ca
KEYCLOAK_TEST_URL: https://sso-keycloak-2-b861c7-test.apps.silver.devops.gov.bc.ca
KEYCLOAK_PROD_URL: https://sso-keycloak-3-b861c7-test.apps.silver.devops.gov.bc.ca
jobs:
terraform:
runs-on: ubuntu-22.04
steps:
- uses: hmarr/debug-action@v2
- uses: actions/checkout@v2
- name: Setup Terraform
uses: bcgov/sso-requests-actions/actions/[email protected]
with:
context: ./terraform
tf-version: ${{ env.TF_VERSION }}
tf-s3-bucket: xgr00q-dev-keycloak
tf-s3-bucket-key: keycloak/silver
tf-s3-dynamodb-table: xgr00q-dev-state-locking
tf-s3-access-key: ${{ secrets.TF_S3_ACCESS_KEY }}
tf-s3-secret-key: ${{ secrets.TF_S3_SECRET_KEY }}
tf-s3-role-arn: ${{ secrets.TF_S3_ROLE_ARN }}
kc-provider-version: 3.10.0
kc-dev-url: ${{ env.KEYCLOAK_DEV_URL }}
kc-test-url: ${{ env.KEYCLOAK_TEST_URL }}
kc-prod-url: ${{ env.KEYCLOAK_PROD_URL }}
kc-dev-secret: ${{ secrets.KEYCLOAK_DEV_CLIENT_SECRET }}
kc-test-secret: ${{ secrets.KEYCLOAK_TEST_CLIENT_SECRET }}
kc-prod-secret: ${{ secrets.KEYCLOAK_PROD_CLIENT_SECRET }}
state-rm: ${{ github.event.inputs.resource_address }}