https://infracost.io logo
#help
Title
# help
w

wonderful-lock-10789

01/23/2024, 6:12 PM
hi all, I'm trying to run infracost against a test terraform repo I have locally. I'm having issues getting an api key. The url referenced in the help docs doesn't list a key and the login option is redirecting to localhost. I'm trying to run via docker.
c

crooked-daybreak-55253

01/23/2024, 6:35 PM
Hi you can sign up for an account on the Infracost Cloud site. Once you’re logged in navigate to the
Org Settings
page (rightmost button in the top nav). On that page you will be able to copy your API Key. You can then pass that into docker as an environment variable name
INFRACOST_API_KEY
and the infracost cli will use that make requests.