-
Notifications
You must be signed in to change notification settings - Fork 523
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
Why is there a big price difference between infracost and gcp calculator? #2473
Comments
@Alexlofern are you able to share the Terraform code that was used to generate the estimate? |
Yes, sure |
Thanks @Alexlofern looks like there's two issues here causing the mismatch.
|
Hi, I did everything you asked, but there is still a small difference, I tried logged in and out of the calculator, the values are the same for my contract |
Thanks @Alexlofern. I've been trying to reproduce running against the following code and have been unable to reproduce. I'm seeing the expected $22.48 cost: provider "google" {
credentials = "{\"type\":\"service_account\"}"
region = "europe-west3"
}
resource "google_sql_database_instance" "sql_instance" {
project = "my-project"
name = "my-instance"
region = "europe-west3"
database_version = "POSTGRES_14"
settings {
tier = "db-f1-micro"
availability_type = "REGIONAL"
disk_size = 10
ip_configuration {
ipv4_enabled = false
}
}
} It seems like somehow the resource is getting the wrong region, since those prices you are seeing are from
|
Hi, My main location is europe-west9, I use europe-west3 for replication of the database! I just run:
I'll try use this var INFRACOST_GOOGLE_OVERRIDE_REGION, but I fill that isn't good idea, because of the read replica in another region, if have more suggestions, I appreciate. My infracost output: Tks |
Thanks for the details. Just to clarify, is the following correct?
If so then the expected prices should be:
Currently what you're seeing is:
|
👍 thanks for confirming @Alexlofern, I'll update this issue when the release is out. |
@Alexlofern thanks for your help with this 🙏. This has now been released in v0.10.23 |
Discussed in #2472
Originally posted by Alexlofern May 23, 2023
I'm using 0.10.22 version.
Regards
Alexandre
The text was updated successfully, but these errors were encountered: