β Repository β π Compliance Engine β π CloudAware β π Google β π Storage β π‘οΈ Bucket is located in a less cost-effective regionπ’
π§ Google Storage Bucket is located in a less cost-effective region - prod.logic.yamlπ’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/google/storage/bucket-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:51:20.052445050Z Open
Result | Id | Condition Index | Condition Text | Runtime Error |
---|---|---|---|---|
π’ | 001 | βοΈ 99 | βοΈ isDisappeared(CA10__disappearanceTime__c) | βοΈ null |
π’ | 002 | βοΈ 899 | βοΈ extract('CA10__location__c') == 'europe-west2' | βοΈ null |
π’ | 003 | βοΈ 1400 | βοΈ otherwise | βοΈ null |
Generation Bundleβ
File | MD5 | |
---|---|---|
Open | /ce/ca/google/storage/bucket-cost-effective-region/policy.yaml | 03E3F068C4B5BD54C95C74A2457FA1AC |
Open | /ce/ca/google/storage/bucket-cost-effective-region/prod.logic.yaml | 2D0F4DE42AF13D9C10B9733605CF1034 |
Open | /ce/ca/google/storage/bucket-cost-effective-region/test-data.json | 9937E76F08AF2FA12B82106C40FEE911 |
Open | /types/CA10__CaGoogleStorageBucket__c/object.extracts.yaml | ED1FDC8BD3DB0862B4D9A76164FC9744 |
Available Commandsβ
repo-manager policies generate FULL /ce/ca/google/storage/bucket-cost-effective-region/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/google/storage/bucket-cost-effective-region/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/google/storage/bucket-cost-effective-region/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/google/storage/bucket-cost-effective-region/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/google/storage/bucket-cost-effective-region/prod.logic.yaml
Contentβ
---
inputType: "CA10__CaGoogleStorageBucket__c"
importExtracts:
- file: "/types/CA10__CaGoogleStorageBucket__c/object.extracts.yaml"
testData:
- file: 'test-data.json'
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "The Bucket is running in us-west2 which is more expensive than us-west1."
remediationMessage: "Consider migrating the Bucket to us-west1."
check:
IS_EQUAL:
left:
EXTRACT: CA10__location__c
right:
TEXT: "us-west2"
- status: "INCOMPLIANT"
currentStateMessage: "The Bucket is running in us-west3 which is more expensive than us-west1."
remediationMessage: "Consider migrating the Bucket to us-west1."
check:
IS_EQUAL:
left:
EXTRACT: CA10__location__c
right:
TEXT: "us-west3"
- status: "INCOMPLIANT"
currentStateMessage: "The Bucket is running in us-west4 which is more expensive than us-west1."
remediationMessage: "Consider migrating the Bucket to us-west1."
check:
IS_EQUAL:
left:
EXTRACT: CA10__location__c
right:
TEXT: "us-west4"
- status: "INCOMPLIANT"
currentStateMessage: "The Bucket is running in northamerica-northeast1 which is more expensive than us-east1, us-east5 or us-central1."
remediationMessage: "Consider migrating the Bucket to us-east1, us-east5 or us-central1."
check:
IS_EQUAL:
left:
EXTRACT: CA10__location__c
right:
TEXT: "northamerica-northeast1"
- status: "INCOMPLIANT"
currentStateMessage: "The Bucket is running in northamerica-northeast2 which is more expensive than us-east1, us-east5 or us-central1."
remediationMessage: "Consider migrating the Bucket to us-east1, us-east5 or us-central1."
check:
IS_EQUAL:
left:
EXTRACT: CA10__location__c
right:
TEXT: "northamerica-northeast2"
- status: "INCOMPLIANT"
currentStateMessage: "The Bucket is running in europe-southwest1 which is more expensive than europe-west4."
remediationMessage: "Consider migrating the Bucket to europe-west4."
check:
IS_EQUAL:
left:
EXTRACT: CA10__location__c
right:
TEXT: "europe-southwest1"
- status: "INCOMPLIANT"
currentStateMessage: "The Bucket is running in europe-west12 which is more expensive than europe-west4."
remediationMessage: "Consider migrating the Bucket to europe-west4."
check:
IS_EQUAL:
left:
EXTRACT: CA10__location__c
right:
TEXT: "europe-west12"
- status: "INCOMPLIANT"
currentStateMessage: "The Bucket is running in europe-west2 which is more expensive than europe-west4."
remediationMessage: "Consider migrating the Bucket to europe-west4."
check:
IS_EQUAL:
left:
EXTRACT: CA10__location__c
right:
TEXT: "europe-west2"
- status: "INCOMPLIANT"
currentStateMessage: "The Bucket is running in europe-west3 which is more expensive than europe-west4."
remediationMessage: "Consider migrating the Bucket to europe-west4."
check:
IS_EQUAL:
left:
EXTRACT: CA10__location__c
right:
TEXT: "europe-west3"
- status: "INCOMPLIANT"
currentStateMessage: "The Bucket is running in europe-west6 which is more expensive than europe-west4."
remediationMessage: "Consider migrating the Bucket to europe-west4."
check:
IS_EQUAL:
left:
EXTRACT: CA10__location__c
right:
TEXT: "europe-west6"
- status: "INCOMPLIANT"
currentStateMessage: "The Bucket is running in europe-west8 which is more expensive than europe-west4."
remediationMessage: "Consider migrating the Bucket to europe-west4."
check:
IS_EQUAL:
left:
EXTRACT: CA10__location__c
right:
TEXT: "europe-west8"
- status: "INCOMPLIANT"
currentStateMessage: "The Bucket is running in europe-west9 which is more expensive europe-west4."
remediationMessage: "Consider migrating the Bucket to europe-west4."
check:
IS_EQUAL:
left:
EXTRACT: CA10__location__c
right:
TEXT: "europe-west9"
- status: "INCOMPLIANT"
currentStateMessage: "The Bucket is running in europe-north2 which is more expensive than europe-north1 or europe-west1."
remediationMessage: "Consider migrating the Bucket to europe-north1 or europe-west1."
check:
IS_EQUAL:
left:
EXTRACT: CA10__location__c
right:
TEXT: "europe-north2"
otherwise:
status: "COMPLIANT"
currentStateMessage: "The Bucket is located in a cost-effective region."