famous-city-17122
08/17/2022, 9:53 AMbusy-agent-35515
08/17/2022, 10:05 AMfamous-city-17122
08/17/2022, 10:06 AMbusy-agent-35515
08/17/2022, 10:08 AMvariables
list (that includes TF_ROOT
), of course please replace any sensitive information in there 🙂.famous-city-17122
08/17/2022, 10:10 AMvariables:
# If your terraform files are in a subdirectory, set TF_ROOT accordingly
TF_ROOT: code
# This instructs the CLI to send cost estimates to Infracost Cloud. Our SaaS product
# complements the open source CLI by giving teams advanced visibility and controls.
# The cost estimates are transmitted in JSON format and do not contain any cloud
# credentials or secrets (see <https://infracost.io/docs/faq/> for more information).
INFRACOST_ENABLE_CLOUD: true
stages:
- infracost
busy-agent-35515
08/17/2022, 10:12 AMTF_ROOT: "code"
with no luck. Do I understand that correctly?famous-city-17122
08/17/2022, 10:14 AMbusy-agent-35515
08/17/2022, 10:15 AMfamous-city-17122
08/17/2022, 10:16 AMbusy-agent-35515
08/17/2022, 10:22 AMtrue
for INFRACOST_ENABLE_CLOUD: true
. If you change it to INFRACOST_ENABLE_CLOUD: "true"
, it should start to workfamous-city-17122
08/17/2022, 10:40 AMbusy-agent-35515
08/17/2022, 10:42 AMfamous-city-17122
08/17/2022, 10:48 AMbusy-agent-35515
08/17/2022, 10:50 AMfamous-city-17122
08/17/2022, 10:55 AMbusy-agent-35515
08/17/2022, 10:55 AMfamous-city-17122
08/17/2022, 11:30 AMError: No INFRACOST_API_KEY environment variable is set.
We run a free Cloud Pricing API, to get an API key run infracost auth login
ParserError:
Line |
1 | --compare-to=infracost-base.json \
| ~
| Missing expression after unary operator '--'.
ParserError:
Line |
1 | --format=json \
| ~
| Missing expression after unary operator '--'.
ParserError:
Line |
1 | --out-file=infracost.json
| ~
| Missing expression after unary operator '--'.
Do I need to do any additional steps for it?busy-agent-35515
08/17/2022, 11:35 AMINFRACOST_API_KEY
?famous-city-17122
08/17/2022, 11:37 AMbusy-agent-35515
08/17/2022, 11:41 AMfamous-city-17122
08/17/2022, 11:42 AMbusy-agent-35515
08/17/2022, 11:44 AMfamous-city-17122
08/17/2022, 11:45 AMRunning with gitlab-runner 15.2.1 (32fc1585)
on LTUGPLTP0083 zJgg5nXb
Preparing the "shell" executor
00:00
Using Shell executor...
Preparing environment
00:00
Running on LTUGPLTP0083...
Getting source from Git repository
00:06
Fetching changes with git depth set to 20...
Reinitialized existing Git repository in C:/GitLab-Runner/builds/zJgg5nXb/0/gitlab/karolis.zivulskas/awstask/.git/
Checking out ef87834d as refs/merge-requests/4/head...
git-lfs/3.2.0 (GitHub; windows amd64; go 1.18.2)
Skipping Git submodules setup
Executing "step_script" stage of the job script
ParserError:
Line |
280 | --format=json \
| ~
| Missing expression after unary operator '--'.
$ infracost diff --path=${TF_ROOT} \ # collapsed multi-line command
Error: No INFRACOST_API_KEY environment variable is set.
We run a free Cloud Pricing API, to get an API key run infracost auth login
ParserError:
Line |
1 | --compare-to=infracost-base.json \
| ~
| Missing expression after unary operator '--'.
ParserError:
Line |
1 | --format=json \
| ~
| Missing expression after unary operator '--'.
ParserError:
Line |
1 | --out-file=infracost.json
| ~
| Missing expression after unary operator '--'.
Cleaning up project directory and file based variables
00:00
ERROR: Job failed: exit status 1
busy-agent-35515
08/17/2022, 11:49 AMfamous-city-17122
08/17/2022, 11:55 AMbusy-agent-35515
08/17/2022, 11:57 AM--X
on the same line with infracost
command and removing backslashes. We can start from this and see what fails nextfamous-city-17122
08/17/2022, 12:23 PMbusy-agent-35515
08/17/2022, 12:25 PMfamous-city-17122
08/17/2022, 12:27 PMbusy-agent-35515
08/17/2022, 12:29 PMfamous-city-17122
08/17/2022, 12:32 PMbusy-agent-35515
08/17/2022, 12:39 PMfamous-city-17122
08/17/2022, 12:40 PMbusy-agent-35515
08/17/2022, 12:43 PM$X
env vars with $env:X
and see if it worksfamous-city-17122
08/17/2022, 1:00 PMbusy-agent-35515
08/17/2022, 1:02 PMwhite-airport-8778
08/17/2022, 1:29 PMbusy-agent-35515
08/17/2022, 1:30 PMfamous-city-17122
08/18/2022, 6:36 AMbusy-agent-35515
08/18/2022, 7:26 AM