β 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π’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/aws/rds/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:45:47.513691724Z Open
Result | Id | Condition Index | Condition Text | Runtime 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β
File | MD5 | |
---|---|---|
Open | /ce/ca/aws/rds/instance-cost-effective-region/policy.yaml | 69716B0692EB6D2DFBDDB86994BEC0F3 |
Open | /ce/ca/aws/rds/instance-cost-effective-region/prod.logic.yaml | 449097AE5D21F34696BB68B109859530 |
Open | /ce/ca/aws/rds/instance-cost-effective-region/test-data.json | C31333518256CFBBE4421D97B6C24933 |
Open | /types/CA10__CaAwsDbInstance__c/object.extracts.yaml | 0E769BD71AE72B63B1A02CBF1C462F5B |
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β
---
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."