Skip to content

Commit

Permalink
feature/PI-43-stored-properties secret stuff 9
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohoolio committed Oct 24, 2023
1 parent 14655b4 commit bcb07a5
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions scripts/infrastructure/terraform/terraform-commands.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,18 +128,18 @@ function _terraform_plan() {
-var "assume_role=${TERRAFORM_ROLE_NAME}" \
-var "updated_date=${current_date}" \
-var "expiration_date=${expiration_date}" || return 1
else
terraform plan \
-out="$plan_file" \
-var-file="$var_file" \
-var "assume_account=${aws_account_id}" \
-var "assume_role=${TERRAFORM_ROLE_NAME}" \
-var "updated_date=${current_date}" \
-var "expiration_date=${expiration_date}" \
-var "lambdas=${lambdas}" \
-var "workspace_type=${workspace_type}" \
-var "layers=${layers}" || return 1
fi

terraform plan \
-out="$plan_file" \
-var-file="$var_file" \
-var "assume_account=${aws_account_id}" \
-var "assume_role=${TERRAFORM_ROLE_NAME}" \
-var "updated_date=${current_date}" \
-var "expiration_date=${expiration_date}" \
-var "lambdas=${lambdas}" \
-var "workspace_type=${workspace_type}" \
-var "layers=${layers}" || return 1
}

function _terraform_apply() {
Expand Down Expand Up @@ -168,17 +168,17 @@ function _terraform_destroy() {
-var "assume_account=${aws_account_id}" \
-var "assume_role=${TERRAFORM_ROLE_NAME}" \
$args || return 1
else
terraform destroy \
-var-file="$var_file" \
-var "assume_account=${aws_account_id}" \
-var "assume_role=${TERRAFORM_ROLE_NAME}" \
-var "workspace_type=${workspace_type}" \
-var "lambdas=${lambdas}" \
-var "layers=${layers}" \
$args || return 1
fi

terraform destroy \
-var-file="$var_file" \
-var "assume_account=${aws_account_id}" \
-var "assume_role=${TERRAFORM_ROLE_NAME}" \
-var "workspace_type=${workspace_type}" \
-var "lambdas=${lambdas}" \
-var "layers=${layers}" \
$args || return 1

if [ "$workspace" != "default" ]; then
terraform workspace select default || return 1
terraform workspace delete "$workspace" || return 1
Expand Down

0 comments on commit bcb07a5

Please sign in to comment.