https://infracost.io logo
Title
a

able-pencil-95187

03/21/2023, 3:56 PM
Good morning. I'm looking for the file that has the
Azure Container App
resource file. I'm looking in
infracost/internal/resources/azure/
b

busy-agent-35515

03/21/2023, 3:57 PM
That's the container registry, but it doesn't have mappings for "Container App"
a

able-pencil-95187

03/21/2023, 3:59 PM
Hello Vadim! This also includes the
azurerm_container_app
Terraform resource?
b

busy-agent-35515

03/21/2023, 3:59 PM
Unfortunately no
a

able-pencil-95187

03/21/2023, 3:59 PM
infracost
does not yet support this resource?
b

busy-agent-35515

03/21/2023, 3:59 PM
Here's the list of supported Azure resources: https://www.infracost.io/docs/supported_resources/azure/
a

able-pencil-95187

03/21/2023, 3:59 PM
Oh this is useful. Ty for the share
b

busy-agent-35515

03/21/2023, 4:01 PM
Sorry, I was to quick to find "container" not realizing that registry is not the app, my bad 😅
a

able-pencil-95187

03/21/2023, 4:01 PM
all good 🙏
b

busy-agent-35515

03/21/2023, 4:01 PM
If a resource is not listed in the docs, then we don't support it yet. If you want it to be added, you can create a new issue with the request here: https://github.com/infracost/infracost/issues
This way other community members can thumbsup it and you can also subscribe and follow the issue's progress. There is also an opportunity to contribute 🙂
a

able-pencil-95187

03/21/2023, 4:03 PM
Once the core
infracost
API is understood, what's the usual turnaround to write the Go code to support the resource? Might be I can assist when a resource is not yet supported
is this something
infracost
wants from the community?
b

busy-agent-35515

03/21/2023, 4:10 PM
W/r/t turnaround time: this depends how complex is the resource 🙂 Sometimes it's just one cost component, so it's straight forward, other times for resources like storage that has many tiers, it can take a big chunk of time to understand what cost components should be and how to write them.
We have contributing guides and we gladly accept contributions from the community. Together we make all devops lives better 😄
Here you can find links to guides how to determine the cost components and how to write a new resource from scratch: https://github.com/infracost/infracost/blob/master/CONTRIBUTING.md
a

able-pencil-95187

03/21/2023, 4:12 PM
ty Vadim! 🙏
b

busy-agent-35515

03/21/2023, 4:12 PM
You're welcome! 🙂