Hi
I am trying to create infrastructure on azure with circle ci… I am using certified orb of terraform by circleci for this purpose. orb; Issues · CircleCI-Public/terraform-orb · GitHub
My config file looks like
version: 2.1
orbs:
terraform: circleci/terraform@3.1
azure-cli: circleci/azure-cli@1.0.0
jobs:
verify-install:
executor: azure-cli/default
steps:
- checkout
- azure-cli/install
- run:
command: az -v
name: Verify Azure CLI is installed
- run:
name: Setup Terraform Remote Backend
command: |
az login --service-principal -u $spid -p $spkey --tenant $tenantid
az group create --location $region --name $terraformstoragerg
az storage account create --name $terraformstorageaccount --resource-group $terraformstoragerg --location $region --sku Standard_LRS
az storage container create --name terraform --account-name $terraformstorageaccount
key=$(az storage account keys list -n $terraformstorageaccount --query [0].value -o tsv)
- terraform/init:
backend: true
backend_config:
"resource_group_name=${TF_RESOURCE_GROUP_NAME}, \
storage_account_name=${TF_STORAGE_ACCOUNT_NAME}, \
container_name=${TF_CONTAINER_NAME}, \
key=${TF_KEY_NAME}"
path: "Terraform"
- terraform/plan:
backend_config:
"resource_group_name=${TF_RESOURCE_GROUP_NAME}, \
storage_account_name=${TF_STORAGE_ACCOUNT_NAME}, \
container_name=${TF_CONTAINER_NAME}, \
key=${TF_KEY_NAME}"
path: "Terraform"
workflows:
my-workflow:
jobs:
- verify-install:
context:
- ab-synpase
Now i get error at init step:
How to define this $INIT_ARGS for terraform as per the orb?

