Skip to content

Commit

Permalink
Merge pull request #263 from im-practices/tf-import-bug-fix
Browse files Browse the repository at this point in the history
TF import bug fix
  • Loading branch information
hpractv authored Apr 26, 2024
2 parents 6f3b348 + 528c056 commit 007acf9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions workflow-templates/im-run-tf-import.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Workflow Code: DrearyBuck_v22 DO NOT REMOVE
# Workflow Code: DrearyBuck_v23 DO NOT REMOVE

# Purpose:
# Imports a specified resource into the terraform state when someone kicks it off manually.
Expand Down Expand Up @@ -71,8 +71,7 @@ jobs:
defaults:
run:
shell: bash
working-directory: '${{ env.TF_WORKING_DIR }}'


steps:
- run: |
echo $'
Expand Down Expand Up @@ -100,8 +99,10 @@ jobs:
terraform_version: '${{ env.TF_VERSION }}'

- name: Terraform Init
working-directory: '${{ env.TF_WORKING_DIR }}'
run: terraform init

- name: Terraform Import
working-directory: '${{ env.TF_WORKING_DIR }}'
# TODO: Add any additional parameters that are needed
run: terraform import ${{ github.event.inputs.tf-resource-address }} ${{ github.event.inputs.tf-resource-id }}

0 comments on commit 007acf9

Please sign in to comment.