Skip to main content

โญ Repository โ†’ ๐Ÿ“ Compliance Engine โ†’ ๐Ÿ“ CloudAware โ†’ ๐Ÿ“ Google โ†’ ๐Ÿ“ GCE โ†’ ๐Ÿ›ก๏ธ GCE Instance is located in a less cost-effective region๐ŸŸข

๐Ÿง  Google GCE Instance is located in a less cost-effective region - prod.logic.yaml๐ŸŸข

Usesโ€‹

Test Results ๐ŸŸขโ€‹

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

ResultIdCondition IndexCondition TextRuntime Error
๐ŸŸข001โœ”๏ธ 99โœ”๏ธ isDisappeared(CA10__disappearanceTime__c)โœ”๏ธ null
๐ŸŸข002โœ”๏ธ 899โœ”๏ธ extract('CA10__regionName__c') == 'europe-southwest1'โœ”๏ธ null
๐ŸŸข003โœ”๏ธ 1700โœ”๏ธ otherwiseโœ”๏ธ null

Generation Bundleโ€‹

FileMD5
Open/ce/ca/google/compute-engine/instance-cost-effective-region/policy.yaml04652BBAF6FD5A0D4ABC36B32B976F33
Open/ce/ca/google/compute-engine/instance-cost-effective-region/prod.logic.yaml92E4CFC745E74100FC96DCAC2FCBDC4D
Open/ce/ca/google/compute-engine/instance-cost-effective-region/test-data.json82ABC077E2A89C4AC793B692E5B70245
Open/types/CA10__CaGoogleGceInstance__c/object.extracts.yaml75A538D7EA49443F6DA07C5D35BF9021

Available Commandsโ€‹

repo-manager policies generate FULL /ce/ca/google/compute-engine/instance-cost-effective-region/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/google/compute-engine/instance-cost-effective-region/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/google/compute-engine/instance-cost-effective-region/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/google/compute-engine/instance-cost-effective-region/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/google/compute-engine/instance-cost-effective-region/prod.logic.yaml

Contentโ€‹

Open File

---
inputType: "CA10__CaGoogleGceInstance__c"
importExtracts:
- file: "/types/CA10__CaGoogleGceInstance__c/object.extracts.yaml"
testData:
- file: 'test-data.json'
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "The Instance is running in us-west2 which is more expensive than us-west1."
remediationMessage: "Consider migrating the Instance to us-west1."
check:
IS_EQUAL:
left:
EXTRACT: CA10__regionName__c
right:
TEXT: "us-west2"
- status: "INCOMPLIANT"
currentStateMessage: "The Instance is running in us-west3 which is more expensive than us-west1."
remediationMessage: "Consider migrating the Instance to us-west1."
check:
IS_EQUAL:
left:
EXTRACT: CA10__regionName__c
right:
TEXT: "us-west3"
- status: "INCOMPLIANT"
currentStateMessage: "The Instance is running in us-west4 which is more expensive than us-west1."
remediationMessage: "Consider migrating the Instance to us-west1."
check:
IS_EQUAL:
left:
EXTRACT: CA10__regionName__c
right:
TEXT: "us-west4"
- status: "INCOMPLIANT"
currentStateMessage: "The Instance is running in us-south1 which is more expensive than us-east1, us-east5 or us-central1."
remediationMessage: "Consider migrating the Instance to us-east1, us-east5 or us-central1."
check:
IS_EQUAL:
left:
EXTRACT: CA10__regionName__c
right:
TEXT: "us-south1"
- status: "INCOMPLIANT"
currentStateMessage: "The Instance is running in northamerica-northeast1 which is more expensive than us-east1, us-east5 or us-central1."
remediationMessage: "Consider migrating the Instance to us-east1, us-east5 or us-central1."
check:
IS_EQUAL:
left:
EXTRACT: CA10__regionName__c
right:
TEXT: "northamerica-northeast1"
- status: "INCOMPLIANT"
currentStateMessage: "The Instance is running in northamerica-northeast2 which is more expensive than us-east1, us-east5 or us-central1."
remediationMessage: "Consider migrating the Instance to us-east1, us-east5 or us-central1."
check:
IS_EQUAL:
left:
EXTRACT: CA10__regionName__c
right:
TEXT: "northamerica-northeast2"
- status: "INCOMPLIANT"
currentStateMessage: "The Instance is running in europe-north1 which is more expensive than europe-north2 or europe-west4."
remediationMessage: "Consider migrating the Instance to europe-north2 or europe-west4."
check:
IS_EQUAL:
left:
EXTRACT: CA10__regionName__c
right:
TEXT: "europe-north1"
- status: "INCOMPLIANT"
currentStateMessage: "The Instance is running in europe-southwest1 which is more expensive than europe-north2 or europe-west4."
remediationMessage: "Consider migrating the Instance to europe-north2 or europe-west4."
check:
IS_EQUAL:
left:
EXTRACT: CA10__regionName__c
right:
TEXT: "europe-southwest1"
- status: "INCOMPLIANT"
currentStateMessage: "The Instance is running in europe-west1 which is more expensive than europe-north2 or europe-west4."
remediationMessage: "Consider migrating the Instance to europe-north2 or europe-west4."
check:
IS_EQUAL:
left:
EXTRACT: CA10__regionName__c
right:
TEXT: "europe-west1"
- status: "INCOMPLIANT"
currentStateMessage: "The Instance is running in europe-west12 which is more expensive than europe-north2 or europe-west4."
remediationMessage: "Consider migrating the Instance to europe-north2 or europe-west4."
check:
IS_EQUAL:
left:
EXTRACT: CA10__regionName__c
right:
TEXT: "europe-west12"
- status: "INCOMPLIANT"
currentStateMessage: "The Instance is running in europe-west2 which is more expensive than europe-north2 or europe-west4."
remediationMessage: "Consider migrating the Instance to europe-north2 or europe-west4."
check:
IS_EQUAL:
left:
EXTRACT: CA10__regionName__c
right:
TEXT: "europe-west2"
- status: "INCOMPLIANT"
currentStateMessage: "The Instance is running in europe-west3 which is more expensive than europe-north2 or europe-west4."
remediationMessage: "Consider migrating the Instance to europe-north2 or europe-west4."
check:
IS_EQUAL:
left:
EXTRACT: CA10__regionName__c
right:
TEXT: "europe-west3"
- status: "INCOMPLIANT"
currentStateMessage: "The Instance is running in europe-west6 which is more expensive than europe-north2 or europe-west4."
remediationMessage: "Consider migrating the Instance to europe-north2 or europe-west4."
check:
IS_EQUAL:
left:
EXTRACT: CA10__regionName__c
right:
TEXT: "europe-west6"
- status: "INCOMPLIANT"
currentStateMessage: "The Instance is running in europe-west8 which is more expensive than europe-north2 or europe-west4."
remediationMessage: "Consider migrating the Instance to europe-north2 or europe-west4."
check:
IS_EQUAL:
left:
EXTRACT: CA10__regionName__c
right:
TEXT: "europe-west8"
- status: "INCOMPLIANT"
currentStateMessage: "The Instance is running in europe-west9 which is more expensive than europe-north2 or europe-west4."
remediationMessage: "Consider migrating the Instance to europe-north2 or europe-west4."
check:
IS_EQUAL:
left:
EXTRACT: CA10__regionName__c
right:
TEXT: "europe-west9"
- status: "INCOMPLIANT"
currentStateMessage: "The Instance is running in australia-southeast2 which is more expensive than australia-southeast1."
remediationMessage: "Consider migrating the Instance to australia-southeast1."
check:
IS_EQUAL:
left:
EXTRACT: CA10__regionName__c
right:
TEXT: "australia-southeast2"
otherwise:
status: "COMPLIANT"
currentStateMessage: "The Instance is located in a cost-effective region."