Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pricing of gcp t2a-standard #2420

Closed
KivraChristoffer opened this issue Apr 25, 2023 · 2 comments
Closed

pricing of gcp t2a-standard #2420

KivraChristoffer opened this issue Apr 25, 2023 · 2 comments
Labels
bug Something isn't working google Issue related to Google Cloud infracost team These issues will be handled by the core Infracost team

Comments

@KivraChristoffer
Copy link

KivraChristoffer commented Apr 25, 2023

resource "google_compute_instance" "runners" {
  count        = 3
  name         = "runner-${format("%02d", count.index + 1)}"
  machine_type = "t2a-standard-1"
  zone         = "europe-west4-a"
  project      = google_project.project.project_id
  tags = ["gh-runner", "github-runner"]

  boot_disk {
    initialize_params {
      size  = 100
      image = "ubuntu-os-cloud/ubuntu-minimal-2204-jammy-arm64-v20230420"
      labels = {
        my_label = "value"
      }
    }
  }

  network_interface {
    network = "default"
    access_config {
      // Ephemeral public IP
    }
  }
  metadata = {
    foo = "bar"
  }
  depends_on = [
    google_project.project
  ]
}

would give

Name                                                       Monthly Qty  Unit   Monthly Cost 
                                                                                             
 google_compute_instance.runners[0]                                                          
 ├─ Instance usage (Linux/UNIX, on-demand, t2a-standard-1)          730  hours         $0.00 
 └─ Standard provisioned storage (pd-standard)                      100  GB            $4.40 
                                                                                             
 google_compute_instance.runners[1]                                                          
 ├─ Instance usage (Linux/UNIX, on-demand, t2a-standard-1)          730  hours         $0.00 
 └─ Standard provisioned storage (pd-standard)                      100  GB            $4.40 
                                                                                             
 google_compute_instance.runners[2]                                                          
 ├─ Instance usage (Linux/UNIX, on-demand, t2a-standard-1)          730  hours         $0.00 
 └─ Standard provisioned storage (pd-standard)                      100  GB            $4.40 
                                                                                             
 OVERALL TOTAL                                                                        $13.20 
──────────────────────────────────
5 cloud resources were detected:
∙ 3 were estimated, all of which include usage-based costs, see https://infracost.io/usage-file
∙ 2 were free:
  ∙ 1 x google_project
  ∙ 1 x google_project_service

gcp reports each vm kosts $41.93
Screenshot from 2023-04-25 09-55-59

@aliscott aliscott added bug Something isn't working google Issue related to Google Cloud labels Apr 25, 2023
@aliscott
Copy link
Member

aliscott commented Apr 28, 2023

I'm not seeing any prices in our pricing DB, so looks like this might be an issue in https://github.com/infracost/cloud-pricing-api. We will look at getting a fix in for the next release.

> SELECT prices FROM products where "vendorName"='gcp' AND "service"='Compute Engine' AND "productFamily"='Compute Instance'  AND "region"='us-central1' AND "attributes"->>'machineType' LIKE 't2a-standard%';
 prices
--------
(0 rows)

@aliscott aliscott added the infracost team These issues will be handled by the core Infracost team label Apr 28, 2023
@aliscott
Copy link
Member

aliscott commented May 3, 2023

Thanks for reporting this @KivraChristoffer. This has now been fixed and released in v0.3.15 of the Cloud Pricing API

@aliscott aliscott closed this as completed May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working google Issue related to Google Cloud infracost team These issues will be handled by the core Infracost team
Projects
None yet
Development

No branches or pull requests

2 participants