Review the EFS customer managed KMS key

Review EFS encryption at rest and requirements for a customer managed KMS key.

Description

A new EFS file system with Encrypted: true uses the AWS managed key if KmsKeyId is omitted. Choose a customer managed key if you need to control its policy and lifecycle.

Potential impact

With Encrypted: false, stored files are unencrypted. Using the AWS managed key leaves its policy under AWS control.

Remediation

If you need your own key, supply its same-Region ARN in KmsKeyId and check permission to use it. Changing encryption or the key requires replacement. Review the CloudFormation change set, keep the source and copy the data to a separate file system. If applications still write to the source, pause writes and complete a final sync. Verify access before switching mounts. Configure file permissions, TLS and backups separately.

Examples

Before

yaml
Resources:
  FileSystem:
    Type: AWS::EFS::FileSystem
    Properties:
      Encrypted: false

After

yaml
Resources:
  FileSystem:
    Type: AWS::EFS::FileSystem
    Properties:
      Encrypted: true
      KmsKeyId: arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012

The second excerpt encrypts the new file system with the specified key. Substitute your actual key ARN.

References