and the Infracost PR comments gets published as expected, however for some reason the
generate an Infracost JSON file as the baseline + generate a diff by comparing the latest code change with the baseline
every time and it does not seem to update 📉 and 📈 emojis as changes are pushed --- What I’ve checked so far:
Any advise or direction on how to continue will be greatly appreciated!
[x] CircleCI Box: /tmp dir structure . ├── base ├── circle-agent-runner.pid ├── circleci-1594698576 ├── circleci-ts.sock ├── infracost.json └── infracost-base.json [x] ran cost estimate breakdown locally infracost breakdown --path . It produced all the cloud resources that got detected while on the PR it showed only the ones that got changed --- on local and on the PR the overall cost however matches as expected! [?] as I have CircleCI orb [firstname.lastname@example.org] for terraform, did terraform show -json plan.out > infracost-base.json so I can persist it and attach it within the Infracost job but somehow got lost on the way and not sure if that is needed as Infracost job itself already produced the terraform plan ...
i couldn't find anything posted about it previously on the channel and seems like the one github issue raised about this was never solved: https://github.com/infracost/infracost/issues/1947 this error shows up both with multiple and single directory usage. Would love to hear some tips about how to go around this 🙂
2022-10-06T08:59:59.1441536Z Error: Failed to parse the Terragrunt code using the Terragrunt library: 2022-10-06T08:59:59.1442071Z 2 errors occurred: 2022-10-06T08:59:59.1442563Z * invalid character ',' looking for beginning of value 2022-10-06T08:59:59.1443145Z * invalid character ',' looking for beginning of value
section of the usage file, so you can create separate files for different traffic profiles for things like S3 or Lambda, e.g. low/medium/high. • Weekly reports • GitHub App integration We’ll also have time to discuss other topics that the community wants to cover. 👉 Calendar invite and Zoom link: https://github.com/infracost/infracost/issues/2030 (I’ll share the recording afterwards)
Infracost can now automatically estimate usage for AWS Lambda, S3, and DynamoDB using data from your cloud bill 📉💰. We’ll be adding coverage for more resources in future releases. Read more about the private beta here: https://www.infracost.io/docs/infracost_cloud/actual_costs/ or reach out to us at email@example.com.Thanks to everyone who contributed or raised issues!
- run: |
# In order to stop commenting on PRs twice we need to check
# if the Infracost output directory created in our 'plan' stage exists before continuing.
if [ ! -d "/infracost/$BASE_REPO_OWNER-$BASE_REPO_NAME-$PULL_NUM" ]; then
infracost comment github --repo $BASE_REPO_OWNER/$BASE_REPO_NAME \
--pull-request $PULL_NUM \
--path /infracost/$BASE_REPO_OWNER-$BASE_REPO_NAME-$PULL_NUM/'*'.json \
--github-api-url $GH_API_URL \
--github-token $ATLANTIS_GH_TOKEN \
`# remove the Infracost output directory so that
is not # triggered on an `atlantis apply``
rm -rf /infracost/$BASE_REPO_OWNER-$BASE_REPO_NAME-$PULL_NUM
result using the usal file . anything created using a index isn't considered although I saw no warning.
version: 0.1 resource_usage: azurerm_managed_disk.DATA: monthly_disk_operations: 100000000 ....
Name Monthly Qty Unit Monthly Cost (CAD) azurerm_linux_virtual_machine.curavm ├─ Instance usage (pay as you go, Standard_M8ms) 750 hours $1,693.75 └─ os_disk ├─ Storage (S4) 1 months $2.26 └─ Disk operations 10,000 10k operations $6.68 azurerm_managed_disk.BIN ├─ Storage (S10) 1 months $8.65 └─ Disk operations 10,000 10k operations $6.68 azurerm_managed_disk.DATA └─ Storage (P20) 1 months $97.83 ...etc