Skip to main content

⭐ 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🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2025-10-01T12:51:20.052445050Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒001βœ”οΈ 99βœ”οΈ isDisappeared(CA10__disappearanceTime__c)βœ”οΈ null
🟒002βœ”οΈ 899βœ”οΈ extract('CA10__location__c') == 'europe-west2'βœ”οΈ null
🟒003βœ”οΈ 1400βœ”οΈ otherwiseβœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/google/storage/bucket-cost-effective-region/policy.yaml03E3F068C4B5BD54C95C74A2457FA1AC
Open/ce/ca/google/storage/bucket-cost-effective-region/prod.logic.yaml2D0F4DE42AF13D9C10B9733605CF1034
Open/ce/ca/google/storage/bucket-cost-effective-region/test-data.json9937E76F08AF2FA12B82106C40FEE911
Open/types/CA10__CaGoogleStorageBucket__c/object.extracts.yamlED1FDC8BD3DB0862B4D9A76164FC9744

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​

Open File

---
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."