Structured source/dest schema + computed set_name; fix the README example
#9
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem 1 — live doc bug. The README example creates
tomswallapi_address_groupnamedcloudflarebut the rule references+asn_cloudflare. Either the example is wrong or there's implicitasn_prefixing magic; both are footguns when selectors are hand-typed strings.
Problem 2 — stringly-typed DSL.
source = ["net:+asn_cloudflare"]embedsa mini-grammar in strings: no Terraform-native references, no plan-time
validation, no dependency edges (Terraform can't know the rule depends on the
group, so destroy ordering is luck).
Proposal.
Expose a computed
set_nameattribute ontomswallapi_address_group.Accept structured elements alongside (eventually instead of) strings:
References give correct dependency ordering for free and make the
bare-selector-without-zone case unrepresentable in the schema.
Fix the README example either way.