<@U01G5T3C76W> Can you please tell me why my lambd...
# help
b
@white-airport-8778 Can you please tell me why my lambda is not showing any cost, below is the breakdown command output and usage file version: 0.1 resource_usage: module.lambda_primary.aws_lambda_function.lambda: monthly_requests: 5000000 request_duration_ms: 6000 ============================
w
@brash-france-78102 can you try this usage file please? This sets all lambda functions to have this usage so it’ll tell us if the issue is related to the resource address or something else:
Copy code
version: 0.1
resource_type_default_usage:
  aws_lambda_function:
    monthly_requests: 5000000
    request_duration_ms: 6000
b
sure
@white-airport-8778 Giving same output with given usage file.
Ideally with this configuration in usage file it should show some cost right?
w
yep, it should
so it seems like the issue was
module.lambda_primary.aws_lambda_function.lambda:
in the first file. Did that file work when you ran the CLI locally? That’s the quickest way to test it (vs waiting for CI to run it)
b
@white-airport-8778 when running through cli below is the output
w
ah looking at that screenshot outputs I think the file path is wrong, that needs to be the relative path to where you are running the CLI from so try
--usage-file terraform/infracost-usage.yml
b
ohhh, okay. Let me try with that
@white-airport-8778 Thank you very much. It worked