Does this look incorrect? AWS RDS price 0 even tho...
# help
Does this look incorrect? AWS RDS price 0 even though it is not free tier: size is
. The infracost says class is mock, little weird. Latest release 0.10.18 and command used was:
infracost breakdown --path .
in the folder that has the tf files and tfvars etc. This stack is live.
Copy code
Name                                                                       Monthly Qty  Unit                    Monthly Cost 
 ├─ Database instance (on-demand, Single-AZ, db_instance_class-mock)                730  hours                          $0.00 
 └─ Storage (general purpose SSD, gp2)                                               20  GB                             $2.54
Hi Oliver, yeah the
indicates that we weren’t able to figure out the instance class from the HCL or the tf vars. Any chance you could share the minimal code that reproduces the issue?
I'll see what I can do to get a MCVE. BTW there needs to be better warning about stuff like that. I don't mind if it cannot get the cost estimate, but it needs to let the user know more obviously when there is data that affects cost that it could not find. Eg it could say
Copy code
WARNING: Incomplete cost because the following parameters were not found: 
- RDS instance class
- ...
Thanks an MCVE would be great. You should be seeing a warning log along the lines of
No products found for module.dss_comp_database.aws_db_instance.postgres[0] Database instance (on-demand, Single-AZ, db_instance_class-mock), using 0.00
, but it would be great if we could specifically call out the case where mock values are used. We’ve actually had discussions about this before but we haven’t come up with a nice way to do it yet.
@crooked-daybreak-55253 ^^^
Thanks! I saw it and have a story on our sprint.