Skip to main content

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

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

Uses​

Test Results πŸŸ’β€‹

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

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

Generation Bundle​

FileMD5
Open/ce/ca/aws/rds/instance-cost-effective-region/policy.yaml69716B0692EB6D2DFBDDB86994BEC0F3
Open/ce/ca/aws/rds/instance-cost-effective-region/prod.logic.yaml449097AE5D21F34696BB68B109859530
Open/ce/ca/aws/rds/instance-cost-effective-region/test-data.jsonC31333518256CFBBE4421D97B6C24933
Open/types/CA10__CaAwsDbInstance__c/object.extracts.yaml0E769BD71AE72B63B1A02CBF1C462F5B

Available Commands​

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

Content​

Open File

---
inputType: "CA10__CaAwsDbInstance__c"
importExtracts:
- file: "/types/CA10__CaAwsDbInstance__c/object.extracts.yaml"
testData:
- file: 'test-data.json'
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "The instance is not available."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10__status__c"
right:
TEXT: "available"
- status: "INCOMPLIANT"
currentStateMessage: "The instance is running in us-west-1 which is more expensive than us-west-2."
remediationMessage: "Consider migrating the instance to us-west-2."
check:
IS_EQUAL:
left:
EXTRACT: CA10__regionName__c
right:
TEXT: "us-west-1"
- status: "INCOMPLIANT"
currentStateMessage: "The instance is running in ca-west-1 which is more expensive than us-west-2."
remediationMessage: "Consider migrating the instance to us-west-2."
check:
IS_EQUAL:
left:
EXTRACT: CA10__regionName__c
right:
TEXT: "ca-west-1"
- status: "INCOMPLIANT"
currentStateMessage: "The instance is running in ca-central-1 which is more expensive than us-east-2."
remediationMessage: "Consider migrating the instance to us-east-2."
check:
IS_EQUAL:
left:
EXTRACT: CA10__regionName__c
right:
TEXT: "ca-central-1"
- status: "INCOMPLIANT"
currentStateMessage: "The instance 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 instance 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 instance 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 instance 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 instance 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 instance 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 instance 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 instance 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 instance 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 instance 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 RDS instance is located in a cost-effective region."