This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
import re | |
import json | |
import sys | |
from typing import List, Dict, Any | |
from pydantic import BaseModel | |
class EvaluatedExpression(BaseModel): | |
result: str |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import input as tfplan | |
# Helper function to determine subnet zone from name | |
get_subnet_zone(name) = zone { | |
contains(name, "-r-") | |
zone := "r" | |
} else = zone { | |
contains(name, "-s-") | |
zone := "s" |