From 3826c70f1736f7b045c13feb1424c00c147d959f Mon Sep 17 00:00:00 2001 From: Ruslan Ibragimov <94184844+5hin0bi@users.noreply.github.com> Date: Mon, 13 Dec 2021 14:51:06 +0300 Subject: [PATCH] Feature/terraform deploy workflow (#1239) * terraform_deploy_workflow -> add workflow for kafka-ui infra terraform deployment * terraform_deploy_workflow -> fix comment * terraform_deploy_workflow -> fix --- .github/workflows/terraform-deploy.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/terraform-deploy.yml b/.github/workflows/terraform-deploy.yml index 2742e2797d..555ff8cec0 100644 --- a/.github/workflows/terraform-deploy.yml +++ b/.github/workflows/terraform-deploy.yml @@ -48,14 +48,14 @@ jobs: - name: Terraform plan id: plan run: | - echo "TF_VAR_github_connector_access_token=${{ secrets.SOURCE_CONNECTOR_GITHUB_TOKEN }}" >> $GITHUB_ENV -# TODO: echo "TF_VAR_repo_user_key=${{ secrets.KAKFA_UI_INFRA_TOKEN }}" >> $GITHUB_ENV -# we add these two vars to the env since we use them in tf deployment -# the TF_VAR_repo_user_key has to match the user from kafka-ui-infra repo (we create kubernetes secret there) -# currently its azsafin, changing it to kafka-ui-infra in infra repo will be better (imho). -# for now i'm leaving this var not exported (kubernetes secret is already created there, so it will work just yet). -# After the discussion we deal with this. - terraform plan --var-file="../envs/pro/eks.tfvars" + echo "TF_VAR_github_connector_access_token=${{ secrets.SOURCE_CONNECTOR_GITHUB_TOKEN }}" >> $GITHUB_ENV + # TODO: echo "TF_VAR_repo_user_key=${{ secrets.KAKFA_UI_INFRA_TOKEN }}" >> $GITHUB_ENV + # we add these two vars to the env since we use them in tf deployment + # the TF_VAR_repo_user_key has to match the user from kafka-ui-infra repo (we create kubernetes secret there) + # currently its azsafin, changing it to kafka-ui-infra in infra repo will be better (imho). + # for now i'm leaving this var not exported (kubernetes secret is already created there, so it will work just yet). + # After the discussion we deal with this. + terraform plan --var-file="../envs/pro/eks.tfvars" - name: Terraform plan status if: steps.plan.outcome == 'failure'