Hello, I have two directories that I am playing wi...
# general
d
Hello, I have two directories that I am playing with infracost, and by mistake was in the parent directory and issued a infracost command, perhaps during install or setting the api key. There as a .infracost directory created in the parent directory and I deleted it. The .infracost directory should only be in each project directory or my root, - wherever infracost wants it to be (not sure). Anyway, I deleted the parent directory .infracost directory, and perhaps concidently whenever I attempt to do anything, such as set the api key, I always get this message 2022/08/18 191953 Can't separate key from value
m
Hey Tom đź‘‹
The “can't separate key from value” error normally originates from having a malformed .env file within your project path.
It normally means theres a variable defined without a mapping in that file
Are you using a env file in any of these directories?
d
Yes, I store my notes there. Perhaps it could mention that in the error message? I can comment out my text in the .env. Thanks
So do I not need to set the api key if it is in the .env ?
p
https://www.infracost.io/docs/features/environment_variables/
We recommend using this environment variable in CI/CD integrations; it overrides any values you might have set in .config/infracost/credentials.yml, .env or .env.local too.