Skip to main content

Repository → 📁 Compliance Engine → 📁 CloudAware → 📁 Google → 📁 Cloud SQL → 🛡️ Instance Automated Backups are not configured🟢

🧠 Google Cloud SQL Instance Automated Backups are not configured - prod.logic.yaml🟢

Uses

Test Results 🟢

Generated at: 2025-10-01T12:50:55.188424776Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟢a8ED7✔️ 99✔️ isDisappeared(CA10__disappearanceTime__c)✔️ null
🟢a8E479✔️ 199✔️ extract('CA10__instanceType__c') == 'READ_REPLICA_INSTANCE'✔️ null
🟢a8E47✔️ 299✔️ extract('CA10__backupEnabled__c') == true && extract('CA10__backupStartTime__c').isNotEmpty()✔️ null
🟢a8ED77✔️ 300✔️ otherwise✔️ null
🟢a8E477✔️ 300✔️ otherwise✔️ null

Generation Bundle

FileMD5
Open/ce/ca/google/sql/instance-backup/policy.yaml5574044F1AF67F40C9C15C52E7B98208
Open/ce/ca/google/sql/instance-backup/prod.logic.yamlE93BE1007D3A97AE9D19F7807D547CF8
Open/ce/ca/google/sql/instance-backup/test-data.json11D429AF5CA5FC83866E8FB964640319
Open/types/CA10__CaGoogleSqlInstance__c/object.extracts.yaml8DD86EFB2FFA06BD1E9BC0452FF2EC8A

Available Commands

repo-manager policies generate FULL /ce/ca/google/sql/instance-backup/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/google/sql/instance-backup/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/google/sql/instance-backup/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/google/sql/instance-backup/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/google/sql/instance-backup/prod.logic.yaml

Content

Open File

---

inputType: "CA10__CaGoogleSqlInstance__c"
testData:
- file: test-data.json
importExtracts:
- file: /types/CA10__CaGoogleSqlInstance__c/object.extracts.yaml
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "GCP does not provide Automated Backups for read-replica instances."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__instanceType__c"
right:
TEXT: "READ_REPLICA_INSTANCE"
- status: "COMPLIANT"
currentStateMessage: "SQL instance automated backups are configured."
check:
AND:
args:
- IS_EQUAL:
left:
EXTRACT: "CA10__backupEnabled__c"
right:
BOOLEAN: true
- NOT_EMPTY:
arg:
EXTRACT: CA10__backupStartTime__c
otherwise:
status: "INCOMPLIANT"
currentStateMessage: "Automated backups disabled for the Cloud SQL database instance."
remediationMessage: "Enable Automated backups for Cloud SQL database instance."