Skip to content

Commit

Permalink
added the update for dsf single account cli
Browse files Browse the repository at this point in the history
  • Loading branch information
roiklorin committed Oct 14, 2024
1 parent 875fca7 commit b4dae12
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dsf_poc_cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
additional_tags:
required: true
type: string
default: '{"OwnerEmail": "ex1", "ManagerEmail": "ex2", "TeamEmail": "ex3", "Description": "ex4", "Environment": "ex5", "DataClassification": "ex6"}'
default: '{"OwnerEmail": "[email protected]", "ManagerEmail": "[email protected]", "TeamEmail": "[email protected]", "Description": "DSFKit_Tests", "Environment": "Test", "DataClassification": "Internal"}'
secrets:
AWS_ACCESS_KEY_ID:
required: true
Expand All @@ -38,7 +38,7 @@ on:
additional_tags:
required: true
type: string
default: '{"OwnerEmail": "ex1", "ManagerEmail": "ex2", "TeamEmail": "ex3", "Description": "ex4", "Environment": "ex5", "DataClassification": "ex6"}'
default: '{"OwnerEmail": "[email protected]", "ManagerEmail": "[email protected]", "TeamEmail": "[email protected]", "Description": "DSFKit_Tests", "Environment": "Test", "DataClassification": "Internal"}'


push:
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/dsf_single_account_cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
branch:
required: true
type: string
additional_tags:
required: true
type: string
default: '{"OwnerEmail": "[email protected]", "ManagerEmail": "[email protected]", "TeamEmail": "[email protected]", "Description": "DSFKit_Tests", "Environment": "Test", "DataClassification": "Internal"}'
secrets:
AWS_ACCESS_KEY_ID:
required: true
Expand All @@ -35,6 +39,11 @@ on:
type: boolean
default: false
required: false
additional_tags:
required: true
type: string
default: '{"OwnerEmail": "[email protected]", "ManagerEmail": "[email protected]", "TeamEmail": "[email protected]", "Description": "DSFKit_Tests", "Environment": "Test", "DataClassification": "Internal"}'


push:
branches:
Expand Down Expand Up @@ -80,6 +89,7 @@ env:
JUMP_SERVER_KEY: ${{ secrets.JUMP_SERVER_KEY }}
AWS_KEY_PATH: "jump_server_key.cer"
DESTROY_DELAY_SECONDS: 1800
TF_VAR_additional_tags: ${{ inputs.additional_tags }}

permissions:
contents: read
Expand Down Expand Up @@ -209,10 +219,10 @@ jobs:

# Generates an execution plan for Terraform
- name: Terraform Plan
run: terraform -chdir=$EXAMPLE_DIR plan
run: terraform -chdir=$EXAMPLE_DIR plan -var additional_tags='${{ env.TF_VAR_additional_tags }}'

- name: Terraform Apply
run: terraform -chdir=$EXAMPLE_DIR apply -auto-approve
run: terraform -chdir=$EXAMPLE_DIR apply -var additional_tags='${{ env.TF_VAR_additional_tags }}' -auto-approve

- name: Terraform Output
if: always()
Expand Down

0 comments on commit b4dae12

Please sign in to comment.