refactor: hoist CDN block_ips to a variable #81
Loading…
Reference in a new issue
No description provided.
Delete branch "pr/cdn-tf-block-ips-var"
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?
Summary
block_ips = ["185.172.53.0"]was duplicated in bothbunnynet_pullzoneresources incdn.tf. Move it to a typedcdn_block_ipsvariable invars.tfwith the existing IP as the default.var.cdn_block_ipsinstead of a literal.Interaction with #80 (for_each refactor)
#80collapses the two pullzones tobunnynet_pullzone.this[for_each]. Either order works; whichever lands second is a trivial one-line rebase on the survivingblock_ips =line.block_ips was hardcoded in both pullzones as a single IP ("185.172.53.0"). Move it to a variable so updates don't require editing the resource bodies (and so a future for_each refactor doesn't bake the list into the map). Default keeps the existing entry; no plan diff on apply.