hallowed-soccer-34663
11/22/2022, 2:24 PMlittle-author-61621
hallowed-soccer-34663
11/22/2022, 2:30 PMinfracost breakdown --path .
little-author-61621
provider
block? That’s how we detect that it is a root modulehallowed-soccer-34663
11/22/2022, 3:06 PMprovider
filelittle-author-61621
.infracost
directory. So I’m assuming this is a remote module and infracost has downloaded it right?hallowed-soccer-34663
11/22/2022, 3:39 PMlittle-author-61621
hallowed-soccer-34663
11/22/2022, 3:52 PMmodule "nodepool_app" {
source = "git::<https://------>-/tf_modules/tf_gcp_gke_node_pool.git?ref=1.0.0"
}
little-author-61621
hallowed-soccer-34663
11/22/2022, 4:50 PMlittle-author-61621
infracost breakdown --path=. --format=json
so we can see what the raw json result is for themhallowed-soccer-34663
11/22/2022, 5:04 PMlittle-author-61621
hourlyQuantity
is 0 for those, which means it will have no cost. So I wonder why infracost is detecting those as zero. What do you have set for the initial_node_count
, node_count
and autoscaling
attributes?hallowed-soccer-34663
11/22/2022, 7:16 PMnode_count = 1
little-author-61621
hallowed-soccer-34663
12/15/2022, 1:52 PMlittle-author-61621
hallowed-soccer-34663
12/15/2022, 2:26 PMlittle-author-61621
hallowed-soccer-34663
12/15/2022, 2:27 PMlittle-author-61621
hallowed-soccer-34663
12/15/2022, 2:28 PMinfracost comment gitlab --path=infracost.json --repo=webdoxclm/infra/tg_resources/tg_gcp_cloudstorage --merge-request=5 --gitlab-token="glpat-########" --gitlab-server-url="<https://gitlab.com>" --behavior=update
INFRACOST_VCS_PROVIDER=gitlab
INFRACOST_VCS_REPOSITORY_URL=<https://gitlab.com/####/####/tg_resources/tg_gcp_cloudstorage>
INFRACOST_VCS_PULL_REQUEST_URL=<https://gitlab.com/######/-/merge_requests/5>
INFRACOST_VCS_PULL_REQUEST_AUTHOR=Felipe Saravia
INFRACOST_VCS_PULL_REQUEST_TITLE=Review case with Infracost Team
INFRACOST_VCS_BRANCH=feature/ST-00
INFRACOST_VCS_COMMIT_SHA=3ce57f339ea28c0b7d8e9ace8167de5e72e2bdb0
INFRACOST_VCS_COMMIT_TIMESTAMP=1671111600
INFRACOST_VCS_COMMIT_AUTHOR_EMAIL=####@#####.com
INFRACOST_VCS_COMMIT_AUTHOR_NAME=####
little-author-61621
infracost breakdown
or infracost diff
runs?hallowed-soccer-34663
12/15/2022, 2:57 PMinfracost comment
runlittle-author-61621
breakdown
and diff
run?hallowed-soccer-34663
12/15/2022, 3:02 PMlittle-author-61621
hallowed-soccer-34663
12/15/2022, 3:05 PMlittle-author-61621
hallowed-soccer-34663
12/15/2022, 3:14 PMlittle-author-61621
infracost comment
. So if you run infracost comment
again now it should show. We need to put in a fix so that the env vars work properly with just infracost comment
, but at the moment you need them on the breakdown
and diff
commands as well.hallowed-soccer-34663
12/15/2022, 3:28 PMEstimate uploaded to organization 'WebdoxCLM' in Infracost Cloud
Comment posted to GitLab
little-author-61621
hallowed-soccer-34663
12/15/2022, 3:32 PMinfracost breakdown
infracost diff
infracost comment
little-author-61621
hallowed-soccer-34663
12/15/2022, 4:15 PMlittle-author-61621
hallowed-soccer-34663
12/15/2022, 4:32 PM