Skip to content

Commit

Permalink
ebs encryption SCP with basic doc added
Browse files Browse the repository at this point in the history
  • Loading branch information
ericstraavaldsen committed Aug 28, 2019
1 parent 6e6b7da commit dd22ede
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ A repository of community generated Service control policies (SCPs) and referenc

- [prevent-deletion-of-service-resources](prevent-deletion-of-service-resources.policy) - Protect various organizational roles and resources curated for service and governance related purposes.

- [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-encreypt-ebs.policy
Original file line number Diff line number Diff line change
@@ -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 dd22ede

Please sign in to comment.