Description
EFS encryption at rest protects shared files and metadata. Use file permissions, network controls and encryption in transit to protect access to those files.
Potential impact
Unencrypted storage can expose data from several workloads and leave organizational encryption requirements unmet.
Remediation
For new file systems, set Encrypted: true. EFS uses its default KMS key unless you specify another key and grant the required permissions. Changing this property on an existing file system causes CloudFormation to replace it. Preserve the source and backups, migrate the data, and test the destination mounts and applications before switching.
Examples
Both templates enable backups and retain the file system on deletion or replacement. The second requests encryption at creation. Configure mount targets and access separately. Retention does not copy data to a replacement.
Before
Resources:
EFSFileSystem01:
Type: AWS::EFS::FileSystem
DeletionPolicy: Retain
UpdateReplacePolicy: Retain
Properties:
BackupPolicy:
Status: ENABLED
Encrypted: false
LifecyclePolicies:
- TransitionToIA: AFTER_60_DAYS
PerformanceMode: generalPurpose
ThroughputMode: bursting
After
Resources:
EFSFileSystem01:
Type: AWS::EFS::FileSystem
DeletionPolicy: Retain
UpdateReplacePolicy: Retain
Properties:
BackupPolicy:
Status: ENABLED
Encrypted: true
LifecyclePolicies:
- TransitionToIA: AFTER_60_DAYS
PerformanceMode: generalPurpose
ThroughputMode: bursting