Skip to main content

โญ Repository โ†’ ๐Ÿ“ Compliance Engine โ†’ ๐Ÿ“ CloudAware โ†’ ๐Ÿ“ Google โ†’ ๐Ÿ“ GCE โ†’ ๐Ÿ›ก๏ธ Snapshot is 90 days old or more๐ŸŸข

๐Ÿง  Google GCE Snapshot is 90 days old or more - prod.logic.yaml๐ŸŸข

Usesโ€‹

Test Results ๐ŸŸขโ€‹

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

ResultIdCondition IndexCondition TextRuntime Error
๐ŸŸข001โœ”๏ธ 99โœ”๏ธ isDisappeared(CA10__disappearanceTime__c)โœ”๏ธ null
๐ŸŸข002โœ”๏ธ 299โœ”๏ธ extract('CA10__creationDate__c').beyondLastDays(90)โœ”๏ธ null
๐ŸŸข003โœ”๏ธ 300โœ”๏ธ otherwiseโœ”๏ธ null
๐ŸŸข004โœ”๏ธ 199โœ”๏ธ extract('CA10__status__c') != 'READY'โœ”๏ธ null

Generation Bundleโ€‹

FileMD5
Open/ce/ca/google/compute-engine/snapshot-90-days-old/policy.yaml009C4CA78CB38B15F235409FB02688CE
Open/ce/ca/google/compute-engine/snapshot-90-days-old/prod.logic.yamlE970143D85B3A189F0F72B9D6186C1E9
Open/ce/ca/google/compute-engine/snapshot-90-days-old/test-data.json4DF96E57E5F36B8F54AD005C51AC137F
Open/types/CA10__CaGoogleGceSnapshot__c/object.extracts.yaml02A113C76DBDC4F3BA8EB7177F18AF4D

Available Commandsโ€‹

repo-manager policies generate FULL /ce/ca/google/compute-engine/snapshot-90-days-old/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/google/compute-engine/snapshot-90-days-old/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/google/compute-engine/snapshot-90-days-old/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/google/compute-engine/snapshot-90-days-old/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/google/compute-engine/snapshot-90-days-old/prod.logic.yaml

Contentโ€‹

Open File

---
inputType: "CA10__CaGoogleGceSnapshot__c"
testData:
- file: test-data.json
importExtracts:
- file: /types/CA10__CaGoogleGceSnapshot__c/object.extracts.yaml
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "The snapshot is not ready."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10__status__c"
right:
TEXT: "READY"
- status: "INCOMPLIANT"
currentStateMessage: "The GCE Snapshot is 90 days old or more."
remediationMessage: "Consider deleting or archiving the snapshot."
check:
IS_BEYOND_LAST_DAYS:
offsetDays: 90
arg:
EXTRACT: "CA10__creationDate__c"
otherwise:
status: "COMPLIANT"
currentStateMessage: "The GCE Snapshot is less than 90 days old."