StackGuardian/tirith

Support multiple `resource_type` for terraform_plan provider operations

開放

#219 建立於 2025年1月8日

 (0 則留言) (0 個反應) (0 位負責人)Python (41 個分叉)auto 404
enhancementhelp wanted

倉庫指標

星標
 (168 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

  • All operator '*' is possible for the resource_type
  • Multiselector (multiple types) can be selected for the resource_type

e.g.

{
  "evaluators": [
    {
      "description": "VPC needs to have one tag with key:'costcenter' and any value ",
      "condition": {
        "type": "IsNotEmpty",
        "value": "",
        "error_tolerance": 1
      },
      "id": "eval-id-1",
      "provider_args": {
        "operation_type": "attribute",
        "terraform_resource_attribute": "tags.costcenter",
        "terraform_resource_type": "*"
      }
    },
    {
      "id": "eval-id-2",
      "description": "",
      "provider_args": {
        "operation_type": "action",
        "terraform_resource_type": ["aws_vpc", "aws_ec2"]
      },
      "condition": {
        "type": "Equals",
        "value": "create",
        "error_tolerance": 1
      }
    }
  ],
  "meta": {
    "required_provider": "stackguardian/terraform_plan",
    "version": "v1"
  },
  "eval_expression": "eval-id-1 || eval-id-2"
}

貢獻者指南