This message was deleted.
# general
b
This message was deleted.
b
Hello Sagar! 👋 You are right, the example usage file doesn't mention
aws_db_instance
. However it supports one attribute:
monthly_standard_io_requests
. Here's how to use it:
Copy code
aws_db_instance.my_db:
  monthly_standard_io_requests: 10000
But it's used only when volume type is "Magnetic" and storage type is "Standard". Here's an example of the output: https://github.com/infracost/infracost/blob/master/internal/providers/terraform/aws/testdata/db_instance_test/db_instance_test.golden#L50
a
@busy-agent-35515 thanks for your reply. I did this changes in usage file and now it's working fine.
b
Awesome! Please let me know if you need more help 🙂
w
@astonishing-oil-57884 did you try
infracost breakdown --path=... --sync-usage-file --usage-file=infracost-usage.yml
? that should have generated the params - but maybe it didn’t if we forgot to add it to https://github.com/infracost/infracost/blob/master/infracost-usage-example.yml ?
a
@white-airport-8778 I have not tried this command. I took infracost-usage-example.yml file from latest release.
w
cool - one last question, did you see https://www.infracost.io/docs/usage_based_resources at all? I’m curious how you discovered the usage-file feature
a
Yes I saw this ..
👍 1