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
- Someone tries a blocked action: switching off logging, a new region.
- The organisation policy: checked before anything happens.
- The call is refused: nothing changes.
- The attempt is recorded: in the audit log, for whoever reviews it.
| Platform | Uses | The part that catches people |
|---|---|---|
| AWS | Service control policies from the management account | Service control policies never apply to the management account. |
| Azure | Azure Policy rules that deny, grouped in an initiative | A new assignment takes up to 30 minutes to take effect. |
| Google Cloud | Organization policy constraints on an organisation, folder, or project | Constraints apply to new actions only. |
| Oracle Cloud | Security zones that refuse changes breaking their recipe | The Maximum Security Recipe also refuses internet gateways, NAT gateways, and volumes without a customer-managed key. |
Run the quick start
| Download providers | terraform init |
| Preview | terraform plan |
| Apply | terraform 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.