worried-soccer-67640
09/15/2022, 1:09 PMworried-soccer-67640
09/15/2022, 1:10 PMversion: 0.1
projects:
- path: dev
usage_file: dev/infracost-usage.yml
env:
AWS_PROFILE: $ENV_VAR
early-queen-42970
mammoth-accountant-5963
09/15/2022, 6:51 PMmysterious-teacher-68276
09/15/2022, 6:52 PMbrash-musician-72826
09/15/2022, 7:48 PMworried-soccer-67640
09/15/2022, 10:10 PMinfracost
with a config file but i'm having issues.
infracost breakdown --path=$SHOWFILE \
--format=json \
--config-file /atlantis-data/repos/b2c2/infrastructure/$PULL_NUM/default/infracost-generated.yml
--log-level=info \
--out-file=$INFRACOST_OUTPUT
i get this error
Error: --config-file flag cannot be used with the following flags: --path, --project-name, --terraform-*, --usage-file
sh: --log-level=info: not found
i can't use this against a plan file?
i assumed it would... seems strange that this isn't supported.
it would be great to see a diff that takes into account current usage.
currently all my diffs show the cost of the min_size of the autoscaling group, so being able to get the cost based on the current instance count would be great!white-airport-8778
--path
too, so it should work fine if you remove that, like this:
infracost breakdown \
--format=json \
--config-file /atlantis-data/repos/b2c2/infrastructure/$PULL_NUM/default/infracost-generated.yml
--log-level=info \
--out-file=$INFRACOST_OUTPUT
If youāre running infracost diff --config-file
AND the config-file has paths to plan JSON files (which it should given that youāre using Atlantis with $SHOWFILE), then it should work as normal.
(if youāre passing in Terraform directories, you can use option 2 mentioned in the docs, but that doesnāt apply to you)white-airport-8778
worried-soccer-67640
09/16/2022, 8:02 PMinstance_type
in a node group.
infracost breakdown \
--format=json \
--config-file infracost-generated.yml
--log-level=info \
--out-file=$INFRACOST_OUTPUT \
--sync-usage-file
when i check the usage file, i can see that the file contains the live number of nodes for many of the node groups, (if i compare with what i see in the aws console), however, for some node groups it doesn't seem to get the number of nodes at all.
you can see in the attached screenshot that a few node groups do not have a value for instances
.
all node groups are in the same eks cluster.early-queen-42970
boundless-london-92014
09/21/2022, 9:22 AMError: config file does not exist at terraform/infracost_config.yml
this error does not appear with only the multi-project config file configured, but does once i try to add the caching steps to it. any clue what i'm doing wrong?broad-zoo-34077
09/21/2022, 5:42 PMmillions-optician-95381
09/22/2022, 9:26 AMwhite-grass-51969
09/23/2022, 11:18 PMearly-queen-42970
early-queen-42970
many-easter-94952
09/26/2022, 10:38 PMgithub actions
?
Error: Error processing module at '/home/runner/work/infra-terraform-configurations/infra-terraform-configurations/aws/deployments/terragrunt.hcl'. How this module was found: Terragrunt config file found in a subdirectory of ./aws. Underlying error: /home/runner/work/infra-terraform-configurations/infra-terraform-configurations/aws/deployments/terragrunt.hcl:55,41-64: Error in function call; Call to function "find_in_parent_folders" failed: ParentFileNotFound: Could not find a account.hcl in any of the parent folders of /home/runner/work/infra-terraform-configurations/infra-terraform-configurations/aws/deployments/terragrunt.hcl. Cause: Traversed all the way to the root..
many-easter-94952
09/26/2022, 10:38 PMterragrunt
files in different directories within the same repo?ambitious-book-89337
09/27/2022, 10:32 AMazurerm_storage_account.hat_test_reports[\"uksouth\"]
What I'm seeing when running breakdown is something like this:
time="2022-09-27T11:24:39+01:00" level=warning msg="Using eastus for resource azurerm_storage_account.hat_function_app[\"ukwest\"] as its 'location' property could not be found."
time="2022-09-27T11:24:39+01:00" level=warning msg="Skipping resource azurerm_storage_account.hat_function_app[\"ukwest\"]. Infracost only supports StorageV2, BlockBlobStorage and FileStorage account kinds"
For the first message, location is there as it's mandatory by terraform
for the second message, it's a StorageV2 š®
code in screenshot
Worth opening an issue?
Running on last infracost version
Terraform Core 1.2.9white-airport-8778
aloof-hair-24776
09/28/2022, 7:21 AMmysterious-teacher-68276
09/29/2022, 8:43 AM64145.4525
with different formatting options:
| Environment variables | Output for 64145.4525 |
|------------------------------------------------------------------------------|-----------------------|
| INFRACOST_CURRENCY=USD<BR/>INFRACOST_CURRENCY_FORMAT="USD: 1.234,567890 $" | `64.145,452500 $` |
| INFRACOST_CURRENCY=EUR<BR/>INFRACOST_CURRENCY_FORMAT="EUR: 1.234,56ā¬" | `64.145,45ā¬` |
| INFRACOST_CURRENCY=GBP<BR/>INFRACOST_CURRENCY_FORMAT="GBP: £ 1,234.567" | `£ 64,145.453` |
⢠The Infracost usage file now allows users to provide defaults for resource types. āļø š You can now do things similar to:
aws_dynamodb_table:
storage_gb: 1000 # Set in all DynamoDB table resources
aws_dynamodb_table.my_table:
monthly_write_request_units: 200 # Merged with default that defines storage_gb
aws_dynamodb_table.my_other_table:
storage_gb: 50 # Overrides the default
⢠Support for HCL configuration warnings in output metadata. ā ļø This means that your Infracost Cloud runs will now contain useful information about missing configuration that could be affecting your cost estimates. š
Check out the full release herehallowed-soccer-34663
09/29/2022, 6:40 PMhallowed-soccer-34663
09/29/2022, 9:21 PMwhite-airport-8778
infracost comment
command that is used in our CI/CD integrations? Thatās the last step.
Which CI/CD system are you using?hallowed-soccer-34663
09/29/2022, 9:24 PMinfracost comment gitlab --path=infracost.json \
--repo=*****/tg_gcp_cloudstorage \
--merge-request=2 \
--gitlab-server-url=<https://gitlab.com> \
--gitlab-token=g*** \
--behavior=delete-and-new
ambitious-book-89337
10/03/2022, 2:57 PMlittle-author-61621
INFRACOST_API_KEY
isnāt set.famous-engineer-27909
10/04/2022, 10:02 AM