- Do we support `count` and `for_each` for module...
# contributors
d
• Do we support
count
and
for_each
for modules? It is supported since terraform v0.13, and the format would be such as
<http://module.my|module.my>_module[0].<http://aws_dynamodb_table.my|aws_dynamodb_table.my>_table
and `module.somemodule["some_key"].some and if so, does the estimate usage would apply for all modules together ro per module? I mean when we add an entry like
<http://module.my|module.my>_module.sth
since terraform would interpret this as
<http://module.my|module.my>_module[*]
l
I'm not sure off the top of my head. Something we need to test and document/fix.
d
The wildcard char for module
count
and
for_each
is not working. (also
--sync-usage-file
flag is destructive there too)
Copy code
version: 0.1
resource_usage:

  module.dev[*].aws_lambda_function.hello_world:
    monthly_requests: 1000000
    request_duration_ms: 100