โญ 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๐ข
- Contextual name: ๐ง prod.logic.yaml๐ข
- ID:
/ce/ca/google/compute-engine/instance-cost-effective-region/prod.logic.yaml
- Tags:
- ๐ข Logic test success
- ๐ข Logic with extracts
- ๐ข Logic with test data
Usesโ
Test Results ๐ขโ
Generated at: 2025-10-01T12:50:04.714704776Z Open
Result | Id | Condition Index | Condition Text | Runtime Error |
---|---|---|---|---|
๐ข | 001 | โ๏ธ 99 | โ๏ธ isDisappeared(CA10__disappearanceTime__c) | โ๏ธ null |
๐ข | 002 | โ๏ธ 899 | โ๏ธ extract('CA10__regionName__c') == 'europe-southwest1' | โ๏ธ null |
๐ข | 003 | โ๏ธ 1700 | โ๏ธ otherwise | โ๏ธ null |
Generation Bundleโ
File | MD5 | |
---|---|---|
Open | /ce/ca/google/compute-engine/instance-cost-effective-region/policy.yaml | 04652BBAF6FD5A0D4ABC36B32B976F33 |
Open | /ce/ca/google/compute-engine/instance-cost-effective-region/prod.logic.yaml | 92E4CFC745E74100FC96DCAC2FCBDC4D |
Open | /ce/ca/google/compute-engine/instance-cost-effective-region/test-data.json | 82ABC077E2A89C4AC793B692E5B70245 |
Open | /types/CA10__CaGoogleGceInstance__c/object.extracts.yaml | 75A538D7EA49443F6DA07C5D35BF9021 |
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โ
---
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."