Skip to main content

⭐ Repository β†’ πŸ“ Compliance Engine β†’ πŸ“ CloudAware β†’ πŸ“ AWS β†’ πŸ“ S3 β†’ πŸ›‘οΈ Bucket is located in a less cost-effective region🟒

🧠 AWS S3 Bucket is located in a less cost-effective region - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2025-10-01T12:45:59.128673551Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒001βœ”οΈ 99βœ”οΈ isDisappeared(CA10__disappearanceTime__c)βœ”οΈ null
🟒002βœ”οΈ 199βœ”οΈ extract('CA10__regionName__c') == 'us-west-1'βœ”οΈ null
🟒003βœ”οΈ 299βœ”οΈ extract('CA10__regionName__c') == 'ca-west-1'βœ”οΈ null
🟒006βœ”οΈ 399βœ”οΈ extract('CA10__regionName__c') == 'ca-central-1'βœ”οΈ null
🟒007βœ”οΈ 499βœ”οΈ extract('CA10__regionName__c') == 'eu-central-1'βœ”οΈ null
🟒008βœ”οΈ 900βœ”οΈ otherwiseβœ”οΈ null
🟒010βœ”οΈ 599βœ”οΈ extract('CA10__regionName__c') == 'eu-west-2'βœ”οΈ null
🟒011βœ”οΈ 699βœ”οΈ extract('CA10__regionName__c') == 'eu-south-1'βœ”οΈ null
🟒012βœ”οΈ 799βœ”οΈ extract('CA10__regionName__c') == 'eu-west-3'βœ”οΈ null
🟒013βœ”οΈ 899βœ”οΈ extract('CA10__regionName__c') == 'eu-central-2'βœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/aws/s3/bucket-cost-effective-region/policy.yaml5A5C43AB32A62B89BC045CACEAF5C077
Open/ce/ca/aws/s3/bucket-cost-effective-region/prod.logic.yaml834A7B97A291822BD4E1C0F585289DC3
Open/ce/ca/aws/s3/bucket-cost-effective-region/test-data.json11CD82D07EE6702D90D1B5B68FD02969
Open/types/CA10__CaAwsBucket__c/object.extracts.yaml2191662ECE28C46BA33E49CFC5DC1EBA

Available Commands​

repo-manager policies generate FULL /ce/ca/aws/s3/bucket-cost-effective-region/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/s3/bucket-cost-effective-region/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/s3/bucket-cost-effective-region/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/s3/bucket-cost-effective-region/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/s3/bucket-cost-effective-region/prod.logic.yaml

Content​

Open File

---
inputType: "CA10__CaAwsBucket__c"
importExtracts:
- file: "/types/CA10__CaAwsBucket__c/object.extracts.yaml"
testData:
- file: 'test-data.json'
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "The bucket is running in us-west-1 which is more expensive than us-west-2."
remediationMessage: "Consider migrating the bucket to us-west-2."
check:
IS_EQUAL:
left:
EXTRACT: CA10__regionName__c
right:
TEXT: "us-west-1"
- status: "INCOMPLIANT"
currentStateMessage: "The bucket is running in ca-west-1 which is more expensive than us-west-2."
remediationMessage: "Consider migrating the bucket to us-west-2."
check:
IS_EQUAL:
left:
EXTRACT: CA10__regionName__c
right:
TEXT: "ca-west-1"
- status: "INCOMPLIANT"
currentStateMessage: "The bucket is running in ca-central-1 which is more expensive than us-east-2."
remediationMessage: "Consider migrating the bucket to us-east-2."
check:
IS_EQUAL:
left:
EXTRACT: CA10__regionName__c
right:
TEXT: "ca-central-1"
- status: "INCOMPLIANT"
currentStateMessage: "The bucket is running in eu-central-1 which is more expensive than eu-west-1, eu-north-1, or eu-south-2."
remediationMessage: "Consider migrating the bucket to eu-west-1, eu-north-1, or eu-south-2."
check:
IS_EQUAL:
left:
EXTRACT: CA10__regionName__c
right:
TEXT: "eu-central-1"
- status: "INCOMPLIANT"
currentStateMessage: "The bucket is running in eu-west-2 which is more expensive than eu-west-1, eu-north-1, or eu-south-2."
remediationMessage: "Consider migrating the bucket to eu-west-1, eu-north-1, or eu-south-2."
check:
IS_EQUAL:
left:
EXTRACT: CA10__regionName__c
right:
TEXT: "eu-west-2"
- status: "INCOMPLIANT"
currentStateMessage: "The bucket is running in eu-south-1 which is more expensive than eu-west-1, eu-north-1, or eu-south-2."
remediationMessage: "Consider migrating the bucket to eu-west-1, eu-north-1, or eu-south-2."
check:
IS_EQUAL:
left:
EXTRACT: CA10__regionName__c
right:
TEXT: "eu-south-1"
- status: "INCOMPLIANT"
currentStateMessage: "The bucket is running in eu-west-3 which is more expensive than eu-west-1, eu-north-1, or eu-south-2."
remediationMessage: "Consider migrating the bucket to eu-west-1, eu-north-1, or eu-south-2."
check:
IS_EQUAL:
left:
EXTRACT: CA10__regionName__c
right:
TEXT: "eu-west-3"
- status: "INCOMPLIANT"
currentStateMessage: "The bucket is running in eu-central-2 which is more expensive than eu-west-1, eu-north-1, or eu-south-2."
remediationMessage: "Consider migrating the bucket to eu-west-1, eu-north-1, or eu-south-2."
check:
IS_EQUAL:
left:
EXTRACT: CA10__regionName__c
right:
TEXT: "eu-central-2"
otherwise:
status: "COMPLIANT"
currentStateMessage: "The EC2 bucket is located in a cost-effective region."