This message was deleted.
# general
b
This message was deleted.
👋 1
l
Hi 👋 . Do you have var files that you use for terraform? If so you can pass them with
--terraform-plan-flags="-var-file=vars.tfvars"
For Azure DevOps you can pass this as a
terraform_plan_flags
env var as per https://github.com/infracost/infracost-azure-devops#terraform_plan_flags
s
I will check this. Thanks!
I just commented all other stages in my pipeline and included only this infracost stage. But this is the error i am getting now:
Copy code
2021-10-01T09:48:57.7648137Z   Terraform command failed with:
2021-10-01T09:48:57.7655910Z     Error: building account: getting authenticated object ID: Error listing Service Principals: autorest.DetailedError{Original:adal.tokenRefreshError{message:"adal: Refresh request failed. Status Code = '400'. Response body: {\"error\":\"invalid_request\",\"error_description\":\"AADSTS900023: Specified tenant identifier '$(arm_tenant_id)' is neither a valid DNS name, nor a valid external domain.
Trying demo using same files
Please let me know if you need any file info. I can provide the same
w
It seems like the arm_tenant_id is not valid, have you set the following env variables according to this TF docs page:? Azure credentials so Terraform init can be run. Usually these are
ARM_CLIENT_ID
,
ARM_CLIENT_SECRET
,
ARM_SUBSCRIPTION_ID
and
ARM_TENANT_ID
.
s
Will check this again!
👍 1
w
@straight-address-35891 did you manage to get it working?
s
Hi Ali, Nope. I had no luck on getting this stage included in our terraform pipeline. Was occupied on other tasks. So, i just parked it aside for time being. Need to get that sorted this week. Thanks for checking anyways!
w
cool, I DM’d you in case I can help when you’d like to pick it up again