Skip to content

Commit 9d2f681

Browse files
committed
rds should be encrypted
1 parent 9240dea commit 9d2f681

File tree

13 files changed

+66
-74
lines changed

13 files changed

+66
-74
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
resource "aws_db_instance" "default" {
2+
allocated_storage = 10
3+
engine = "mysql"
4+
engine_version = "5.7"
5+
instance_class = "db.t3.micro"
6+
name = "mydb"
7+
username = "foo"
8+
password = "foobarbaz"
9+
parameter_group_name = "default.mysql5.7"
10+
skip_final_snapshot = true
11+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
resource "aws_db_instance" "default" {
2+
allocated_storage = 10
3+
engine = "postgresql"
4+
instance_class = "db.t3.micro"
5+
name = "mydb"
6+
username = "foo"
7+
password = "foobarbaz"
8+
skip_final_snapshot = true
9+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
resource "aws_db_instance" "default" {
2+
allocated_storage = 10
3+
engine = "postgresql"
4+
instance_class = "db.t3.micro"
5+
name = "mydb"
6+
username = "foo"
7+
password = "foobarbaz"
8+
skip_final_snapshot = true
9+
storage_encrypted = false
10+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
resource "aws_db_instance" "default" {
2+
allocated_storage = 10
3+
engine = "mysql"
4+
engine_version = "5.7"
5+
instance_class = "db.t3.micro"
6+
name = "mydb"
7+
username = "foo"
8+
password = "foobarbaz"
9+
parameter_group_name = "default.mysql5.7"
10+
skip_final_snapshot = true
11+
storage_encrypted = true
12+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
resource "aws_db_instance" "default" {
2+
allocated_storage = 10
3+
engine = "postgresql"
4+
instance_class = "db.t3.micro"
5+
name = "mydb"
6+
username = "foo"
7+
password = "foobarbaz"
8+
skip_final_snapshot = true
9+
storage_encrypted = true
10+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
metadata:
2+
name: "Check that databases are encrypted"
3+
id: "CUSTOM_AWS_1"
4+
category: "ENCRYPTION"
5+
scope:
6+
provider: aws
7+
definition:
8+
and:
9+
- cond_type: "attribute"
10+
resource_types:
11+
- "aws_db_instance"
12+
attribute: "storage_encrypted"
13+
operator: "equals"
14+
value: "true"

infra/checkov/require-department-label/fail0.tf

Lines changed: 0 additions & 3 deletions
This file was deleted.

infra/checkov/require-department-label/fail1.tf

Lines changed: 0 additions & 15 deletions
This file was deleted.

infra/checkov/require-department-label/fail2.tf

Lines changed: 0 additions & 18 deletions
This file was deleted.

infra/checkov/require-department-label/pass0.tf

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)