Skip to main content

🧠 AWS Account EBS Volume Encryption Attribute is not enabled in all regions - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2026-06-06T12:02:25.071750794Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒a01βœ”οΈ 199βœ”οΈ CA10__AWS_Account_Regions__r.has(INCOMPLIANT)βœ”οΈ null
🟒a02βœ”οΈ 299βœ”οΈ CA10__AWS_Account_Regions__r.has(UNDETERMINED)βœ”οΈ null
🟒a03βœ”οΈ 399βœ”οΈ CA10__AWS_Account_Regions__r.has(COMPLIANT)βœ”οΈ null
🟒a04βœ”οΈ 400βœ”οΈ otherwiseβœ”οΈ null
🟒a05βœ”οΈ 299βœ”οΈ CA10__AWS_Account_Regions__r.has(UNDETERMINED)βœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/aws/account/ebs-volume-encryption-attribute-in-all-regions/policy.yaml766A2EDA424843BF1E46B24079FDA77E
Open/ce/ca/aws/account/ebs-volume-encryption-attribute-in-all-regions/prod.logic.yaml9697E07FE7793990A7AAEC74ED4E8961
Open/ce/ca/aws/account/ebs-volume-encryption-attribute-in-all-regions/test-data.json195B9F11EA2CCAE1DB6277478B9B183A
Open/types/CA10__CaAwsAccount__c/object.extracts.yaml926999C100E8C1066EC8BD4B82B0F362
Open/types/CA10__CaAwsAccountRegion__c/object.extracts.yamlB5D54D4844B8E77238E14E730ABEE3C4

Available Commands​

repo-manager policies generate FULL /ce/ca/aws/account/ebs-volume-encryption-attribute-in-all-regions/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/account/ebs-volume-encryption-attribute-in-all-regions/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/account/ebs-volume-encryption-attribute-in-all-regions/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/account/ebs-volume-encryption-attribute-in-all-regions/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/account/ebs-volume-encryption-attribute-in-all-regions/prod.logic.yaml

Content​

Open File

---
inputType: "CA10__CaAwsAccount__c"
testData:
- file: test-data.json
importExtracts:
- file: /types/CA10__CaAwsAccount__c/object.extracts.yaml
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "Default EBS volume encryption is disabled in at least one active region."
remediationMessage: "Enable default EBS volume encryption in every active region."
check:
RELATED_LIST_HAS:
status: "INCOMPLIANT"
relationshipName: "CA10__AWS_Account_Regions__r"
- status: "UNDETERMINED"
currentStateMessage: "Unable to determine the default EBS encryption status for at least one active region."
check:
RELATED_LIST_HAS:
status: "UNDETERMINED"
relationshipName: "CA10__AWS_Account_Regions__r"
- status: "COMPLIANT"
currentStateMessage: "Default EBS volume encryption is enabled in all active regions."
check:
RELATED_LIST_HAS:
status: "COMPLIANT"
relationshipName: "CA10__AWS_Account_Regions__r"
otherwise:
status: "UNDETERMINED"
currentStateMessage: "No active AWS regions were found, or region data could not be collected."
relatedLists:
- relationshipName: "CA10__AWS_Account_Regions__r"
importExtracts:
- file: "/types/CA10__CaAwsAccountRegion__c/object.extracts.yaml"
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "This AWS account region is not active."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__status__c"
right:
TEXT: "not-opted-in"
- status: "UNDETERMINED"
currentStateMessage: "Unable to determine the default EBS encryption status."
check:
IS_EMPTY:
arg:
EXTRACT: "CA10__ebsStorageEncryption__c"
- status: "INCOMPLIANT"
currentStateMessage: "Default EBS volume encryption is disabled for this region."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__ebsStorageEncryption__c"
right:
TEXT: "Disabled"
- status: "COMPLIANT"
currentStateMessage: "Default EBS volume encryption is enabled for this region."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__ebsStorageEncryption__c"
right:
TEXT: "Enabled"
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unable to determine the default EBS encryption status for this active region."