Hi <#C046GMHQ6NM|>, I use trial version of Infraco...
# help
l
Hi #C046GMHQ6NM, I use trial version of Infracost Cloud and 3 weeks ago Usage costs particularly stopped to work. I use it with Gitlab ci MR, there is commit from Infracost report. I can see Usage information in logs. But it's not visible in git commit or from Infracost Cloud. Do you have any advice?
b
Hi! The left screenshot shows the breakdown output like a full repo/project cost estimate. The right now from the PR comment shows the cost diff (only for changed resources). Do you modify any usage resources in your PR so you expect the their costs to show up?
BTW, how do you use usage costs? 1. It can be usage yml file 2. It can be usage defaults in Infracost Cloud - this feature only works with paid plan.
l
I have enabled usage defaults (it works for trial) Also I have usage Yaml
Copy code
version: 0.1
resource_usage:
  google_storage_bucket.sc_bucket:
    monthly_egress_data_transfer_gb:
      worldwide: 500
    storage_gb: 500
  google_compute_forwarding_rule:
    monthly_ingress_data_gb: 500
  google_compute_vpn_gateway:
    monthly_egress_data_transfer_gb: # Monthly VM-VM data transfer from VPN gateway to the following, in GB:
      same_region: 500 # VMs in the same Google Cloud region.
      europe: 500 # Between Google Cloud regions within Europe.
  google_sql_database_instance:
    backup_storage_gb: 500 # Amount of backup storage in GB.
Do you modify any usage resources in your PR so you expect the their costs to show up?
Yes, I do. it shows change for entire repository, but doesn't show for PR. I have tried multiple times, with different values (I assume that their is some free tier limit)
b
On CI/CD (free) plan only the usage config will be used. I noticed that all resources except
<http://google_storage_bucket.sc|google_storage_bucket.sc>_bucket
don't have the full resource address. If you want to use them as defaults for all corresponding resources, could you try moving them under
resource_type_default_usage:
section, otherwise they won't be used.
Does the
infracost diff
command show these resources in the diff (when you're running locally)?