Skip to content

Commit

Permalink
Pass container and key to tf init in plan stage
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilkka Poutanen committed Dec 4, 2023
1 parent dfd12fc commit 2d77ee5
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,11 @@ jobs:
id: init
run: >-
terraform init
--backend-config="resource_group_name={{ "${{ inputs.RESOURCE_GROUP_NAME }}" }}"
--backend-config="storage_account_name={{ "${{ inputs.TERRAFORM_BACKEND_STORAGE_NAME }}" }}"
-backend-config="resource_group_name={{ "${{ inputs.RESOURCE_GROUP_NAME }}" }}"
-backend-config="storage_account_name={{ "${{ inputs.TERRAFORM_BACKEND_STORAGE_NAME }}" }}"
-backend-config="container_name=tfstate"
-backend-config="key=tfstate_"
working-directory: ./terraform

- name: Terraform Workspace
Expand Down

0 comments on commit 2d77ee5

Please sign in to comment.