Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files Browse the repository at this point in the history
Merged master into current repo
pcrum committed Aug 28, 2019
2 parents 0478d0c + 77af301 commit 442495b
Showing 2 changed files with 23 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
@@ -17,8 +17,10 @@ A repository of community generated Service control policies (SCPs) and referenc

- [s3-us-only-buckets](s3-us-only-buckets.policy) - Allows creation of an S3 bucket only in the US EAST (us-east-1 or us-east-2) or WEST (us-west-1 or us-west-2) regions.

- [ec2-encrypt-ebs](ec2-encrypt-ebs.policy) - Set enforces setting where ebs volumes are encrypted by default - to set default for account use cli command: aws ec2 enable-ebs-encryption-by-default Not setting up a default encryption will generate a difficult to understand error.

## Reference Links

- [Service Control Policies](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scp.html) - AWS Organizations - Service Control Policies Documentation

- [Example Control Policies](https://github.com/awsdocs/aws-organizations-docs/blob/master/doc_source/orgs_manage_policies_example-scps.md)
- [Example Control Policies](https://github.com/awsdocs/aws-organizations-docs/blob/master/doc_source/orgs_manage_policies_example-scps.md)
20 changes: 20 additions & 0 deletions ec2-encrypt-ebs.policy
@@ -0,0 +1,20 @@
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Require EC2 Encryption",
"Effect": "Deny",
"Action": [
"ec2:RunInstances"
],
"Condition": {
"Bool": {
"ec2:Encrypted": "false"
}
},
"Resource": [
"*"
]
}
]
}

0 comments on commit 442495b

Please sign in to comment.