From a01096639eb634e4b7bd639d32375e4124eb45d1 Mon Sep 17 00:00:00 2001 From: Ruslan Ibragimov <94184844+5hin0bi@users.noreply.github.com> Date: Mon, 20 Dec 2021 12:27:19 +0300 Subject: [PATCH] Use kafka-ui-infra token in terraform deploy workflow. (#1285) --- .github/workflows/terraform-deploy.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/terraform-deploy.yml b/.github/workflows/terraform-deploy.yml index cec55810df..5acf980e22 100644 --- a/.github/workflows/terraform-deploy.yml +++ b/.github/workflows/terraform-deploy.yml @@ -3,7 +3,7 @@ on: workflow_dispatch: inputs: applyTerraform: - description: 'Do you want to apply the infra-repo terraform?' + description: 'Do you want to apply the infra-repo terraform? Possible values [yes/no]. If no is chosen only plan will be executed. If yes is chosen, terraform will be automatically applied.' required: true default: 'no' @@ -48,12 +48,7 @@ jobs: run: | cd $TF_DIR export TF_VAR_github_connector_access_token=${{ secrets.SOURCE_CONNECTOR_GITHUB_TOKEN }} - # TODO: export TF_VAR_repo_user_key=${{ secrets.KAKFA_UI_INFRA_TOKEN }} - # 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. + export TF_VAR_repo_user_key=${{ secrets.KAFKA_UI_INFRA_TOKEN }} terraform plan --var-file="../envs/pro/eks.tfvars" - name: Terraform plan status