-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added the update for dsf single account cli
- Loading branch information
Showing
2 changed files
with
14 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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: | ||
|
@@ -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 | ||
|
@@ -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() | ||
|