Skip to main content

🧠 AWS Backup Vault contains unencrypted Recovery Points - prod.logic.yaml 🟒

Flags​

Input Type​

TypeAPI NameExtractsExtract FilesLogic Files
πŸ”’πŸ“• AWS Backup Backup VaultCA10A1__CaAwsBackupBackupVault__c1

Uses​

Test Results πŸŸ’β€‹

Generated at: 2025-06-25T13:41:09.554641803Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 99βœ”οΈ isDisappeared(CA10A1__disappearanceTime__c)βœ”οΈ null
🟒test2βœ”οΈ 200βœ”οΈ otherwiseβœ”οΈ null
🟒test3βœ”οΈ 199βœ”οΈ CA10A1__AWS_Backup_Recovery_Points__r.has(INCOMPLIANT)βœ”οΈ null
🟒test4βœ”οΈ 200βœ”οΈ otherwiseβœ”οΈ null
🟒test5βœ”οΈ 200βœ”οΈ otherwiseβœ”οΈ null

Generation​

FileMD5
Open/ce/ca/aws/backup/vault-contains-unencrypted-recovery-points/policy.yaml0DDB007D223F95A82002339BC3D6A010
Open/ce/ca/aws/backup/vault-contains-unencrypted-recovery-points/prod.logic.yaml492CAB216CF5CF41D36C1EDF3D9AED27
Open/types/CA10A1__CaAwsBackupRecoveryPoint__c/object.extracts.yamlC4B6C10EA9486A6080860FBE1C6E1BD8
Open/ce/ca/aws/backup/vault-contains-unencrypted-recovery-points/test-data.json6E39716EE48F994F12AEA7F4AC5B9B22

Generate FULL script​

java -jar repo-manager.jar policies generate FULL /ce/ca/aws/backup/vault-contains-unencrypted-recovery-points/prod.logic.yaml

Generate DEBUG script​

java -jar repo-manager.jar policies generate DEBUG /ce/ca/aws/backup/vault-contains-unencrypted-recovery-points/prod.logic.yaml

Generate CAPTURE_TEST_DATA script​

java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/aws/backup/vault-contains-unencrypted-recovery-points/prod.logic.yaml

Generate TESTS script​

java -jar repo-manager.jar policies generate TESTS /ce/ca/aws/backup/vault-contains-unencrypted-recovery-points/prod.logic.yaml

Execute tests​

java -jar repo-manager.jar policies test /ce/ca/aws/backup/vault-contains-unencrypted-recovery-points/prod.logic.yaml

Content​

Open File

---
inputType: "CA10A1__CaAwsBackupBackupVault__c"
testData:
- file: "test-data.json"
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "The Backup Vault contains one or more unencrypted Recovery Points."
remediationMessage: "Ensure all Recovery Points are encrypted. This might require configuring the source resource's encryption settings."
check:
RELATED_LIST_HAS:
status: "INCOMPLIANT"
relationshipName: "CA10A1__AWS_Backup_Recovery_Points__r"
otherwise:
status: "COMPLIANT"
currentStateMessage: "All Recovery Points in this Backup Vault are encrypted."
relatedLists:
- relationshipName: "CA10A1__AWS_Backup_Recovery_Points__r"
importExtracts:
- file: "/types/CA10A1__CaAwsBackupRecoveryPoint__c/object.extracts.yaml"
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "The Recovery Point is not encrypted with a KMS key."
remediationMessage: "Consider encrypting this Recovery Point."
check:
IS_EMPTY:
arg:
EXTRACT: "CA10A1__kmsMasterKeyId__c"
otherwise:
status: "COMPLIANT"
currentStateMessage: "The Recovery Point is encrypted with a KMS."