Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multiple resource_type for terraform_plan provider operations #219

Open
refeed opened this issue Jan 8, 2025 · 0 comments
Open
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@refeed
Copy link
Member

refeed commented Jan 8, 2025

  • 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"
}
@refeed refeed added enhancement New feature or request help wanted Extra attention is needed labels Jan 8, 2025
refeed pushed a commit that referenced this issue Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant