Skip to content

Commit

Permalink
Fix deploy infrastructure name tfvar
Browse files Browse the repository at this point in the history
* Corrects the `cut` field to get the infrastructure name
  • Loading branch information
Stretch96 committed Nov 20, 2023
1 parent 00d5bc8 commit 0048448
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/terraform-dependencies/run-terraform-command
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ then
if [ "$TERRAFORM_PROJECT" == "infrastructure" ]
then
ACCOUNT_NAME=$(echo "$CURRENT_WORKSPACE" | cut -d'-' -f5- | rev | cut -d'-' -f3- | rev)
TF_VAR_infrastructure_name="$(echo "$CURRENT_WORKSPACE" | rev | cut -d'-' -f1 | rev)"
TF_VAR_infrastructure_name="$(echo "$CURRENT_WORKSPACE" | rev | cut -d'-' -f2 | rev)"
TF_VAR_environment="$(echo "$CURRENT_WORKSPACE" | rev | cut -d'-' -f1 | rev)"
export TF_VAR_infrastructure_name
export TF_VAR_environment
Expand Down

0 comments on commit 0048448

Please sign in to comment.