โญ 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๐ข
- Contextual name: ๐ง prod.logic.yaml๐ข
- ID:
/ce/ca/google/compute-engine/snapshot-90-days-old/prod.logic.yaml
- Tags:
- ๐ข Logic test success
- ๐ข Logic with extracts
- ๐ข Logic with test data
Usesโ
Test Results ๐ขโ
Generated at: 2025-10-01T12:50:19.849692263Z Open
Result | Id | Condition Index | Condition Text | Runtime 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โ
File | MD5 | |
---|---|---|
Open | /ce/ca/google/compute-engine/snapshot-90-days-old/policy.yaml | 009C4CA78CB38B15F235409FB02688CE |
Open | /ce/ca/google/compute-engine/snapshot-90-days-old/prod.logic.yaml | E970143D85B3A189F0F72B9D6186C1E9 |
Open | /ce/ca/google/compute-engine/snapshot-90-days-old/test-data.json | 4DF96E57E5F36B8F54AD005C51AC137F |
Open | /types/CA10__CaGoogleGceSnapshot__c/object.extracts.yaml | 02A113C76DBDC4F3BA8EB7177F18AF4D |
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โ
---
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."