There was an error while loading. Please reload this page.
1 parent 93ac355 commit dacadc2Copy full SHA for dacadc2
1 file changed
aws/policies/tagging.rego
@@ -0,0 +1,9 @@
1
+package infracost
2
+
3
+required_tags = ["owner", "environment", "cost_center"]
4
5
+deny[msg] {
6
+ tag := required_tags[_]
7
+ not input.tags[tag]
8
+ msg := sprintf("Resource %s is missing the tag: %s", [input.name, tag])
9
+}
0 commit comments