github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/rules/cloud/policies/aws/ec2/as_enable_at_rest_encryption.cf.go (about) 1 package ec2 2 3 var cloudFormationASEnableAtRestEncryptionGoodExamples = []string{ 4 `--- 5 Resources: 6 GoodExample: 7 Properties: 8 BlockDeviceMappings: 9 - DeviceName: root 10 Ebs: 11 Encrypted: true 12 ImageId: ami-123456 13 InstanceType: t2.small 14 Type: AWS::AutoScaling::LaunchConfiguration 15 `, 16 } 17 18 var cloudFormationASEnableAtRestEncryptionBadExamples = []string{ 19 `--- 20 Resources: 21 BadExample: 22 Properties: 23 BlockDeviceMappings: 24 - DeviceName: root 25 Ebs: 26 Encrypted: true 27 - DeviceName: data 28 Ebs: 29 Encrypted: false 30 ImageId: ami-123456 31 InstanceType: t2.small 32 Type: AWS::AutoScaling::LaunchConfiguration 33 `, 34 } 35 36 var cloudFormationASEnableAtRestEncryptionLinks = []string{} 37 38 var cloudFormationASEnableAtRestEncryptionRemediationMarkdown = ``