The amount of duplication in `main.tf` (copy/pasta for each region) is shocking, but I'm not a Terraform user -- is that normal? It also seems problematic for re-use since not all accounts have those regions enabled. Perhaps using something like the below to discover enabled regions at deploy time would make it more "consumable" by other folks:<p><pre><code> aws account list-regions \
--region-opt-status-contains "ENABLED" "ENABLED_BY_DEFAULT" \
--no-paginate \
--query "Regions[].RegionName" \
--output text
</code></pre>
That's the approach I've taken with SAM/Cloudformation deployments[1].<p>[1] <a href="https://github.com/mlhpdx/email-origin/blob/main/scripts/deploy-region.sh">https://github.com/mlhpdx/email-origin/blob/main/scripts/dep...</a>
Cool idea. What was your initial use case for creating this?<p>Also, are the Function URLs publicly accessible? If so, what safe guards are there to prevent abuse?