github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/rules/cloud/policies/aws/efs/enable_at_rest_encryption.cf.go (about)

     1  package efs
     2  
     3  var cloudFormationEnableAtRestEncryptionGoodExamples = []string{
     4  	`---
     5  Resources:
     6    GoodExample:
     7      Type: AWS::EFS::FileSystem
     8      Properties:
     9        BackupPolicy:
    10          Status: ENABLED
    11        LifecyclePolicies:
    12          - TransitionToIA: AFTER_60_DAYS
    13        PerformanceMode: generalPurpose
    14        Encrypted: true
    15        ThroughputMode: bursting
    16  `,
    17  }
    18  
    19  var cloudFormationEnableAtRestEncryptionBadExamples = []string{
    20  	`---
    21  Resources:
    22    BadExample:
    23      Type: AWS::EFS::FileSystem
    24      Properties:
    25        BackupPolicy:
    26          Status: ENABLED
    27        LifecyclePolicies:
    28          - TransitionToIA: AFTER_60_DAYS
    29        PerformanceMode: generalPurpose
    30        Encrypted: false
    31        ThroughputMode: bursting
    32  `,
    33  }
    34  
    35  var cloudFormationEnableAtRestEncryptionLinks = []string{}
    36  
    37  var cloudFormationEnableAtRestEncryptionRemediationMarkdown = ``