Hi team, How do we integrate self-hosted setup wit...
# general
e
Hi team, How do we integrate self-hosted setup with Github Actions? I am not able to find the exact variable to pass the self hosted domain details for Infracost?
c
Hi, You can set
INFRACOST_PRICING_API_ENDPOINT
to point to your self hosted cloud pricing API. In the docs here.
e
Understood and I am able to pass it on CLI but unable to find it how to pass on the github action workflow yaml file
c
any chance you can share the workflow yaml?
e
sure, i am planning to the one mentioned in the documents only -> https://github.com/infracost/actions
c
you can set it in the
env:
section at the top where
TF_ROOT
is being set. So:
Copy code
...
env:
      TF_ROOT: examples/terraform-project/code
      INFRACOST_PRICING_API_ENDPOINT: <https://yourendpoint>
...
e
ohhh..awesome! Will try and let you know how it went. Thanks for the quick help