Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions aws/terraform/abstract/aws-instance/expected/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
resource "aws_instance" "example" {
ami = "ami-0c55b159cbfafe1f0"
instance_type = "t3.medium"

ebs_block_device {
device_name = "/dev/xvda"

encrypted = true
}

root_block_device {
encrypted = true
}
}
16 changes: 16 additions & 0 deletions aws/terraform/abstract/aws-instance/gomboc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# yaml-language-server: $schema=../../../../gomboc-schema/test-case.yaml

name: Encrypt aws instance data at rest

provider: AWS
iac:
language: terraform
version: v1.5.8

canBeApplied: false

benchmarkRecommendations:
- id: gomboc-ai/cis/controls_8-1-2/3_data_protection/3-11_encrypt_sensitive_data_at_rest
name: CIS - Controls 8.1.2 - 3 Data Protection - 3.11 Encrypt Sensitive Data at Rest
benchmark: CIS Amazon Web Services Foundations Benchmark
benchmarkVersion: v8.1.2
8 changes: 8 additions & 0 deletions aws/terraform/abstract/aws-instance/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
resource "aws_instance" "example" {
ami = "ami-0c55b159cbfafe1f0"
instance_type = "t3.medium"

ebs_block_device {
device_name = "/dev/xvda"
}
}