CircleCI-Public / terraform-orb

Deploy your infrastructure via a CircleCI pipeline using the Terraform orb. Integrate Infrastructure-as-Code (IaC) to help provision and manage any cloud, infrastructure, or service of your choice.
https://circleci.com/orbs/registry/orb/circleci/terraform
MIT License
10 stars 44 forks source link

Goocle Cloud Credentials on plan command does not work #64

Closed supergrilo closed 2 years ago

supergrilo commented 2 years ago

Hi all!

The command plan does not recognize google credential variable. A set this variable in a context, but auth does not work

orbs:
  terraform: circleci/terraform@3.0.1
jobs:
  single-job-lifecycle:
    executor: terraform/default
    steps:
      - checkout
      - attach_workspace:
          at: .
      - run:
          command: >-
            rm -rf ~/.gitconfig
          name: clean gitconfg
      - run:
          command: >-
            git config --global url.https://oauth2:$TERRAFORM_GITHUB_TOKEN@github.com.insteadOf https://github.com
          name: Github Auth webeta
      - persist_to_workspace:
          root: .
          paths:
            - ""
      - terraform/validate:
          path: .
      - terraform/init:
          backend: true
          path: .
      - terraform/plan:
          path: .
          var: GOOGLE_CREDENTIALS=$GOOGLE_CREDENTIALS
workflows:
  single-job-lifecycle:
    jobs:
      - single-job-lifecycle:
          context: gcp-insane-wizard

any one know how to do this?

KyleTryon commented 2 years ago

Hello,

This appears to be a duplicate of #51. The issue has been resolved and will be released shortly. Please follow #51 for the update (likely later today).