github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/rules/cloud/policies/aws/ec2/enable_volume_encryption.tf.go (about)

     1  package ec2
     2  
     3  var terraformEnableVolumeEncryptionGoodExamples = []string{
     4  	`
     5   resource "aws_ebs_volume" "good_example" {
     6     availability_zone = "us-west-2a"
     7     size              = 40
     8   
     9     tags = {
    10       Name = "HelloWorld"
    11     }
    12     encrypted = true
    13   }
    14   `,
    15  }
    16  
    17  var terraformEnableVolumeEncryptionBadExamples = []string{
    18  	`
    19   resource "aws_ebs_volume" "bad_example" {
    20     availability_zone = "us-west-2a"
    21     size              = 40
    22   
    23     tags = {
    24       Name = "HelloWorld"
    25     }
    26     encrypted = false
    27   }
    28   `,
    29  }
    30  
    31  var terraformEnableVolumeEncryptionLinks = []string{
    32  	`https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ebs_volume#encrypted`,
    33  }
    34  
    35  var terraformEnableVolumeEncryptionRemediationMarkdown = ``