Skip to main content

🧠 AWS EFS File System is not encrypted with KMS CMK - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2025-12-27T12:01:55.820499456Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒001βœ”οΈ 199βœ”οΈ not(extract('CA10__encrypted__c'))βœ”οΈ null
🟒002βœ”οΈ 299βœ”οΈ isEmptyLookup('CA10__kmsKey__r')βœ”οΈ null
🟒003βœ”οΈ 399βœ”οΈ extract('CA10__kmsKey__r.CA10__manager__c') != 'CUSTOMER'βœ”οΈ null
🟒004βœ”οΈ 499βœ”οΈ extract('CA10__encrypted__c') == true && extract('CA10__kmsKey__r.CA10__manager__c') == 'CUSTOMER'βœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/aws/efs/file-system-cmk-encryption/policy.yaml9BFD36FB13AFBEDDE37FBE84ECC18E5F
Open/ce/ca/aws/efs/file-system-cmk-encryption/prod.logic.yaml2DC6CEC428A05AE9D6E8C769829F2E92
Open/ce/ca/aws/efs/file-system-cmk-encryption/test-data.jsonC2628736D35D3F86B64BA5A93840ADDF
Open/types/CA10__CaAwsKmsKey__c/object.extracts.yamlEC6D0EFD0BFEAB3447A84529724D4AFE
Open/types/CA10__CaAwsEfsFileSystem__c/object.extracts.yaml3C7626729E41425BAD13D04E544D0213

Available Commands​

repo-manager policies generate FULL /ce/ca/aws/efs/file-system-cmk-encryption/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/efs/file-system-cmk-encryption/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/efs/file-system-cmk-encryption/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/efs/file-system-cmk-encryption/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/efs/file-system-cmk-encryption/prod.logic.yaml

Content​

Open File

---
inputType: "CA10__CaAwsEfsFileSystem__c"
testData:
- file: test-data.json
importExtracts:
- file: "/types/CA10__CaAwsEfsFileSystem__c/object.extracts.yaml"
- file: "/types/CA10__CaAwsKmsKey__c/object.extracts.yaml"
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "The EFS File System is not encrypted with any key. This is addressed in the file-system-encryption policy."
check:
NOT:
arg:
EXTRACT: "CA10__encrypted__c"
- status: "INCOMPLIANT"
currentStateMessage: "The EFS File System is not encrypted using KMS key."
remediationMessage: "Enable KMS customer-managed keys encryption for the EFS File System."
check:
IS_EMPTY_LOOKUP: CA10__kmsKey__r
- status: "INCOMPLIANT"
currentStateMessage: "The EFS File System is not encrypted using KMS customer-managed keys."
remediationMessage: "Enable KMS CMK customer-managed keys encryption for the EFS File System."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10__kmsKey__r.CA10__manager__c"
right:
TEXT: 'CUSTOMER'
- status: "COMPLIANT"
currentStateMessage: "The EFS File System is encrypted using KMS CMK customer-managed keys."
check:
AND:
args:
- IS_EQUAL:
left:
EXTRACT: "CA10__encrypted__c"
right:
BOOLEAN: true
- IS_EQUAL:
left:
EXTRACT: "CA10__kmsKey__r.CA10__manager__c"
right:
TEXT: 'CUSTOMER'
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unexpected values in the field."