iac.htora.dev · security templates

Home/Refreshers/Block the changes you never want: refresher

Block the changes you never want

Policies that make dangerous actions fail outright, so there is nothing to alert on afterwards.

Remember

  1. Someone tries a blocked action: switching off logging, a new region.
  2. The organisation policy: checked before anything happens.
  3. The call is refused: nothing changes.
  4. The attempt is recorded: in the audit log, for whoever reviews it.
PlatformUsesThe part that catches people
AWSService control policies from the management accountService control policies never apply to the management account.
AzureAzure Policy rules that deny, grouped in an initiativeA new assignment takes up to 30 minutes to take effect.
Google CloudOrganization policy constraints on an organisation, folder, or projectConstraints apply to new actions only.
Oracle CloudSecurity zones that refuse changes breaking their recipeThe Maximum Security Recipe also refuses internet gateways, NAT gateways, and volumes without a customer-managed key.

Run the quick start

Download providersterraform init
Previewterraform plan
Applyterraform apply

Watch out

  • A guardrail is a deny that no permission inside the account can override.
  • Every refused call is still recorded in the audit log, with the policy that refused it.
Check it worked

Try a blocked action from a member account. It should be refused.

Read the full pageDownload PDF

Registry 0.23.0. Built 2026-11-17.

Made by Habibullah Tora. Source on GitHub. Code under the MIT licence, writing under CC BY 4.0.