github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/rules/cloud/policies/aws/ec2/enable_volume_encryption.cf.go (about) 1 package ec2 2 3 var cloudFormationEnableVolumeEncryptionGoodExamples = []string{ 4 `--- 5 Resources: 6 GoodExample: 7 Type: AWS::EC2::Volume 8 Properties: 9 Size: 100 10 Encrypted: true 11 KmsKeyId: "alias/volumeEncrypt" 12 DeletionPolicy: Snapshot 13 `, 14 } 15 16 var cloudFormationEnableVolumeEncryptionBadExamples = []string{ 17 `--- 18 Resources: 19 BadExample: 20 Type: AWS::EC2::Volume 21 Properties: 22 Size: 100 23 AvailabilityZone: !GetAtt Ec2Instance.AvailabilityZone 24 DeletionPolicy: Snapshot 25 `, 26 } 27 28 var cloudFormationEnableVolumeEncryptionLinks = []string{} 29 30 var cloudFormationEnableVolumeEncryptionRemediationMarkdown = ``