๐ง AWS RDS Instance automated backups are not enabled - prod.logic.yaml๐ข
- Contextual name: ๐ง prod.logic.yaml๐ข
- ID:
/ce/ca/aws/rds/instance-automated-backups/prod.logic.yaml - Tags:
- ๐ข Logic test success
- ๐ข Logic with extracts
- ๐ข Logic with test data
Usesโ
Test Results ๐ขโ
Generated at: 2025-10-25T12:01:58.609867127Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| ๐ข | test1 | โ๏ธ 99 | โ๏ธ isDisappeared(CA10__disappearanceTime__c) | โ๏ธ null |
| ๐ข | test2 | โ๏ธ 199 | โ๏ธ CA10__backupRetentionPeriod__c == number(0.0) | โ๏ธ null |
| ๐ข | test3 | โ๏ธ 200 | โ๏ธ otherwise | โ๏ธ null |
Generation Bundleโ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/rds/instance-automated-backups/policy.yaml | 5A202E092D23DCB72783BA1452D0C5A3 |
| Open | /ce/ca/aws/rds/instance-automated-backups/prod.logic.yaml | 79F27782DFE1BE7A9391431599C03E6C |
| Open | /ce/ca/aws/rds/instance-automated-backups/test-data.json | 1448C4D27357DA7488617485E08D1536 |
| Open | /types/CA10__CaAwsDbInstance__c/object.extracts.yaml | 26DCC1C39C347B18BF7B5A1C5DBD9419 |
Available Commandsโ
repo-manager policies generate FULL /ce/ca/aws/rds/instance-automated-backups/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/rds/instance-automated-backups/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/rds/instance-automated-backups/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/rds/instance-automated-backups/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/rds/instance-automated-backups/prod.logic.yaml
Contentโ
---
inputType: "CA10__CaAwsDbInstance__c"
testData:
- file: test-data.json
importExtracts:
- file: /types/CA10__CaAwsDbInstance__c/object.extracts.yaml
conditions:
- status: INCOMPLIANT
currentStateMessage: "The DB Instance automated backups are disabled."
remediationMessage: "Enable automated backups by setting the backup retention\
\ period to a value greater than 0 days."
check:
IS_EQUAL:
left:
FIELD:
path: CA10__backupRetentionPeriod__c
right:
NUMBER: 0.0
otherwise:
status: COMPLIANT
currentStateMessage: "The DB Instance automated backups are enabled."