Skip to main content

โญ Repository โ†’ ๐Ÿ“ Compliance Engine โ†’ ๐Ÿ“ CloudAware โ†’ ๐Ÿ“ Google โ†’ ๐Ÿ“ GCE โ†’ ๐Ÿ›ก๏ธ Commitment expires in the next 60 days๐ŸŸข

๐Ÿง  Google GCE Commitment expires in the next 60 days - prod.logic.yaml๐ŸŸข

Usesโ€‹

Test Results ๐ŸŸขโ€‹

Generated at: 2025-10-01T12:49:58.362918491Z Open

ResultIdCondition IndexCondition TextRuntime Error
๐ŸŸขtest1โœ”๏ธ 99โœ”๏ธ isDisappeared(CA10G1__disappearanceTime__c)โœ”๏ธ null
๐ŸŸขtest2โœ”๏ธ 199โœ”๏ธ extract('CA10G1__status__c') != 'ACTIVE'โœ”๏ธ null
๐ŸŸขtest3โœ”๏ธ 299โœ”๏ธ extract('CA10G1__endTimestamp__c').withinNextDays(60)โœ”๏ธ null
๐ŸŸขtest4โœ”๏ธ 300โœ”๏ธ otherwiseโœ”๏ธ null

Generation Bundleโ€‹

FileMD5
Open/ce/ca/google/compute-engine/commitment-expires-in-60-days/policy.yaml5A4EE8C413613BFC1556B9122E156E9E
Open/ce/ca/google/compute-engine/commitment-expires-in-60-days/prod.logic.yaml37EE24DE0D82D2CE8748C2DD30FCDCEF
Open/ce/ca/google/compute-engine/commitment-expires-in-60-days/test-data.json40A1DAF465373261CA88C44492587B5B
Open/types/CA10G1__CaGoogleGceCommitment__c/object.extracts.yaml73094F2229D28C8F9B6A97CDA40D5630

Available Commandsโ€‹

repo-manager policies generate FULL /ce/ca/google/compute-engine/commitment-expires-in-60-days/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/google/compute-engine/commitment-expires-in-60-days/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/google/compute-engine/commitment-expires-in-60-days/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/google/compute-engine/commitment-expires-in-60-days/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/google/compute-engine/commitment-expires-in-60-days/prod.logic.yaml

Contentโ€‹

Open File

---
inputType: "CA10G1__CaGoogleGceCommitment__c"
testData:
- file: test-data.json
importExtracts:
- file: /types/CA10G1__CaGoogleGceCommitment__c/object.extracts.yaml
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "The commitment is not active."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10G1__status__c"
right:
TEXT: "ACTIVE"
- status: "INCOMPLIANT"
currentStateMessage: "The commitment expires in 60 days or less."
remediationMessage: "Consider renewing the expiring commitment to maintain cost savings."
check:
IS_WITHIN_NEXT_DAYS:
offsetDays: 60
arg:
EXTRACT: CA10G1__endTimestamp__c
otherwise:
status: "COMPLIANT"
currentStateMessage: "The commitment is not expiring within the next 60 days."