Skip to main content

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

๐Ÿง  Google GCE Commitment expired in the last 30 days - prod.logic.yaml๐ŸŸข

Usesโ€‹

Test Results ๐ŸŸขโ€‹

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

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

Generation Bundleโ€‹

FileMD5
Open/ce/ca/google/compute-engine/commitment-expired-in-last-30-days/policy.yaml7DC62973FB02549BEF6386706C3C63B5
Open/ce/ca/google/compute-engine/commitment-expired-in-last-30-days/prod.logic.yamlAE0411BD1B7DD386E6C0813995E86881
Open/ce/ca/google/compute-engine/commitment-expired-in-last-30-days/test-data.jsonACEC75A6A6699FF51629CC950A5D8C19
Open/types/CA10G1__CaGoogleGceCommitment__c/object.extracts.yaml73094F2229D28C8F9B6A97CDA40D5630

Available Commandsโ€‹

repo-manager policies generate FULL /ce/ca/google/compute-engine/commitment-expired-in-last-30-days/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/google/compute-engine/commitment-expired-in-last-30-days/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/google/compute-engine/commitment-expired-in-last-30-days/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/google/compute-engine/commitment-expired-in-last-30-days/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/google/compute-engine/commitment-expired-in-last-30-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 expired."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10G1__status__c"
right:
TEXT: "EXPIRED"
- status: "INCOMPLIANT"
currentStateMessage: "The commitment has expired within the last 30 days."
remediationMessage: "Review the expired commitment to determine if a new one should be purchased to maintain cost savings."
check:
IS_WITHIN_LAST_DAYS:
offsetDays: 30
arg:
EXTRACT: "CA10G1__endTimestamp__c"
otherwise:
status: "COMPLIANT"
currentStateMessage: "The commitment expired more than 30 days ago."