Deny disabling default EBS encryption
Facts read 10 Nov 2026. Page reviewed 16 Nov 2026.
Deny disabling default EBS encryption is an AWS guardrail written in service control policies. Denies ec2:DisableEbsEncryptionByDefault unless the caller is the privileged role. What it breaks: the README says to enable encryption by default in your accounts before implementing this policy.
More encryption and keys guardrails ยท About Service control policies
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Deny",
"Action": [
"ec2:DisableEbsEncryptionByDefault"
],
"Resource": "*",
"Condition": {
"ArnNotLike": {
"aws:PrincipalARN": "arn:aws:iam::${Account}:role/[PRIVILEGED_ROLE]"
}
}
}
]
}
- Blocks
- Denies ec2:DisableEbsEncryptionByDefault unless the caller is the privileged role.
- Breaks
- The README says to enable encryption by default in your accounts before implementing this policy. (source)
- Test before applying
- As for every Service control policies guardrail: how to test before enforcing
- Mechanism
- Service control policies (SCPs): IAM users, IAM roles and the root user in member accounts; not the management account and not service-linked roles.
- Taken from
- open source set, MIT-0 (README states MIT-0; LICENSE file fetched, MIT-0 text, Copyright Amazon.com, Inc.): https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/LICENSE
What the policy text names
It names 1 action or pattern: ec2:DisableEbsEncryptionByDefault. Its conditions test aws:PrincipalARN.
What the source says
ec2:DisableEbsEncryptionByDefault (read 10 Nov 2026).
On what it breaks: "Note : Enable your accounts for"
Related guardrails
- Storage accounts should have the specified minimum TLS versionAzure, Azure Policy (built-in definitions), encryption and keys
- Key vaults should have deletion protection enabledAzure, Azure Policy (built-in definitions), encryption and keys
- OS and data disks should be encrypted with a customer-managed keyAzure, Azure Policy (built-in definitions), encryption and keys
- Deny KMS key deletionAWS, Service control policies (SCPs), encryption and keys
- Enforce a 30-day KMS key deletion windowAWS, Service control policies (SCPs), encryption and keys
- Require server-side encryption on S3 uploadsAWS, Service control policies (SCPs), encryption and keys
Related pages
Sources
- Deny disabling default EBS encryption, read 10 Nov 2026
- What it breaks, read 10 Nov 2026
- How to test it first, read 10 Nov 2026
Last reviewed 16 Nov 2026.