Comments (5)
Hey, didn't have much time to look at it, so I skipped more complicated resources (Compute Engine + Networking) and focused on the simpler ones. Here are my finds so far.
Artifact Registry
- Africa continent missing in network traffic calculation
BigQuery
- Missing support for
location
argument
BigQuery Dataset
- Multi-region not supported
BigQuery Table
- Multi-region not supported for multiple cost components
- Potential incorrect region attribution due to
r.mapRegion()
- Storage read API appears to not support regions correctly (judgement based on non regexed attribute filter)
Cloudfunctions
- Missing 2nd gen support
Compute Image
- Missing support for
storage_locations
argument
Compute Snapshot
- Missing support for
storage_locations
argument
As far as the testing region goes, it seems that usually the newer ones get special treatment, but that is not a guarantee. I'd suggest testing at least one region from every continent, as well as multi regional resources. Additionally, I suggest testing at least one non-provider default region, they aren't always attributed correctly due to non region
arguments in resources.
from infracost.
I'll go over all existing resources for GCP and verify that there are no other existing cases like this. From quick check I can see that there are some resources that handle it correctly, for example bigquery_dataset.go
with
AttributeFilters: []*schema.AttributeFilter{
{Key: "description", Value: strPtr(fmt.Sprintf("Analysis (%s)", r.Region))},
},
I will also check if this separation of pricing is consistent for any specific region, that way it can be added to tests and suggested for any new resources.
from infracost.
Thank you for digging into it, great stuff! ❤️ I'll bring your suggestions to the team to improve the test coverage for different regions.
The fix for the compute address is in the master already. We'll keep this issue open until the new release is out. We'll post a comment, so you should be notified when you can upgrade. Thanks again for all your help! :)
from infracost.
@jakubserwatka-oktawave Hey! Thanks a lot for creating the issue! I've confirmed that's an issue for the google_compute_address
resource. Tweaking the attribute filter should accommodate all the cases, I've created a PR for that.
You mentioned that other resources can have a similar issue too. Could you please list them here if you encountered them here? We're not using Google resources ourselves, especially across different regions, so we rely on the community to report such cases. I really appreciate any help you can provide. :)
from infracost.
@jakubserwatka-oktawave thanks for reporting this 🙏 The fix for compute address is now released in v0.10.31.
from infracost.
Related Issues (20)
- Incorrect Comments in infracost-usage.yml Template for RDS Cluster Read/Write Metrics HOT 1
- Add `aws_codepipeline` support
- Support aws_appautoscaling_policy for ECS Service
- Allow specifying custom resources HOT 5
- Custom GitHub comment or add image
- Support Azure Repos active comment thread
- Infracost integration with GitHub Actions doesn't display cost estimation in PR comments HOT 1
- Cost Estimation Regression in Azure Terraform IAC: Prices Default to $0 from v0.10.32 Onwards HOT 4
- Add support for some SES and SESv2 resources HOT 1
- infracost is not fetching variables defined in Terraform Enterprise HOT 1
- Missing cost for ECS Service when task definition is used from a module and "family:revision" is used instead of "arn" or "family"
- Breakdown timing after 0.10.32+ HOT 1
- Error Generating Breakdown with v0.10.35 HOT 9
- `--debug-report` flag throws an error
- Missing cost estimate for `azurerm_postgresql_flexible_server` compute GP_Standard_D2ds_v5 HOT 3
- Will Infracost work or support OpenTofu? HOT 1
- Add support for `aws_servicecatalog_product`
- New `terraform test` support for variables in run block causes module evaluation to fail HOT 2
- Comment only when costs change
- Infracost fails to display ecs service costs when using `terraform-aws-ecs` module
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from infracost.