https://infracost.io logo
#help
Title
w

white-airport-8778

06/06/2023, 4:06 AM
👋 Hey everyone, how do you currently communicate and enforce required FinOps tag keys/values to engineers? is anyone using things like Open Policy Agent for this?
g

gorgeous-napkin-79348

06/06/2023, 4:53 PM
Looking at combination of OPA and Cloud Custodian to do that, but nothing deployed yet.
(If we paid for Terraform Enterprise we would likely use Sentinel over OPA though)
w

white-airport-8778

06/06/2023, 4:57 PM
Nice! I was chatting with another Infracost user who does it this way in case it helps. How do you measure if the policy is working? by checking the total cost of un-tagged resources in Cost Explorer?
g

gorgeous-napkin-79348

06/06/2023, 4:59 PM
Yes, we are still in the initial phases with that work and have not yet turned on enforcement of the tagging policy, but that is an end goal. Realistically that will likely be environment specific, so only used in higher environments and not sandbox and dev accounts. Which are where most costs come from though, so it's a challenge.
i

icy-evening-74965

06/20/2023, 5:51 AM
We use a combination of terraform variable validation, Checkov, and AWS SCPs (service control policies). Our devs write the terraform themselves and don’t have access to create resources in the AWS console so variable validation is a good way to enforce the tags, and on PR builds they get errors if they miss tags. That is uncommon tho, as they use code gen tools we wrote to scaffold code based on the modules our cloud team manages and we have a standard folder structure that waterfalls tags in based on the directory structure so teams can just use a local value (
local.common_info[“aws”][“tags”]
) and it populates everything they need.
2 Views