β Repository β π Compliance Engine β π CloudAware β π AWS β π DynamoDB β π‘οΈ Table is located in a less cost-effective regionπ’
π§ AWS DynamoDB Table is located in a less cost-effective region - prod.logic.yamlπ’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/aws/dynamodb/table-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:44:48.929130901Z Open
Result | Id | Condition Index | Condition Text | Runtime Error |
---|---|---|---|---|
π’ | 001 | βοΈ 99 | βοΈ isDisappeared(CA10__disappearanceTime__c) | βοΈ null |
π’ | 002 | βοΈ 299 | βοΈ extract('CA10__regionName2__c') == 'us-west-1' | βοΈ null |
π’ | 003 | βοΈ 399 | βοΈ extract('CA10__regionName2__c') == 'ca-west-1' | βοΈ null |
π’ | 004 | βοΈ 499 | βοΈ extract('CA10__regionName2__c') == 'ap-northeast-1' | βοΈ null |
π’ | 005 | βοΈ 599 | βοΈ extract('CA10__regionName2__c') == 'ap-northeast-3' | βοΈ null |
π’ | 006 | βοΈ 699 | βοΈ extract('CA10__regionName2__c') == 'ca-central-1' | βοΈ null |
π’ | 007 | βοΈ 799 | βοΈ extract('CA10__regionName2__c') == 'eu-central-1' | βοΈ null |
π’ | 008 | βοΈ 1200 | βοΈ otherwise | βοΈ null |
π’ | 009 | βοΈ 199 | βοΈ extract('CA10__tableStatus__c') != 'ACTIVE' | βοΈ null |
π’ | 010 | βοΈ 899 | βοΈ extract('CA10__regionName2__c') == 'eu-west-2' | βοΈ null |
π’ | 011 | βοΈ 999 | βοΈ extract('CA10__regionName2__c') == 'eu-south-1' | βοΈ null |
π’ | 012 | βοΈ 1099 | βοΈ extract('CA10__regionName2__c') == 'eu-west-3' | βοΈ null |
π’ | 013 | βοΈ 1199 | βοΈ extract('CA10__regionName2__c') == 'eu-central-2' | βοΈ null |
Generation Bundleβ
File | MD5 | |
---|---|---|
Open | /ce/ca/aws/dynamodb/table-cost-effective-region/policy.yaml | 5F3358A94AA975D9C718A5A7D736220F |
Open | /ce/ca/aws/dynamodb/table-cost-effective-region/prod.logic.yaml | 96ACE10170C0ABCB2924C1E7F6FFBB8F |
Open | /ce/ca/aws/dynamodb/table-cost-effective-region/test-data.json | D098F85EFDDA9F53AAEF6873BCAE0E16 |
Open | /types/CA10__CaAwsDynamoDbTable__c/object.extracts.yaml | A8D1E2741C16A4C7C104289152587E61 |
Available Commandsβ
repo-manager policies generate FULL /ce/ca/aws/dynamodb/table-cost-effective-region/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/dynamodb/table-cost-effective-region/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/dynamodb/table-cost-effective-region/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/dynamodb/table-cost-effective-region/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/dynamodb/table-cost-effective-region/prod.logic.yaml
Contentβ
---
inputType: "CA10__CaAwsDynamoDbTable__c"
importExtracts:
- file: "/types/CA10__CaAwsDynamoDbTable__c/object.extracts.yaml"
testData:
- file: 'test-data.json'
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "The table is not active."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10__tableStatus__c"
right:
TEXT: "ACTIVE"
- status: "INCOMPLIANT"
currentStateMessage: "The table is running in us-west-1 which is more expensive than us-west-2."
remediationMessage: "Consider migrating the table to us-west-2."
check:
IS_EQUAL:
left:
EXTRACT: CA10__regionName2__c
right:
TEXT: "us-west-1"
- status: "INCOMPLIANT"
currentStateMessage: "The table is running in ca-west-1 which is more expensive than us-west-2."
remediationMessage: "Consider migrating the table to us-west-2."
check:
IS_EQUAL:
left:
EXTRACT: CA10__regionName2__c
right:
TEXT: "ca-west-1"
- status: "INCOMPLIANT"
currentStateMessage: "The table is running in ap-northeast-1 which is more expensive than ap-northeast-2."
remediationMessage: "Consider migrating the table to ap-northeast-2."
check:
IS_EQUAL:
left:
EXTRACT: CA10__regionName2__c
right:
TEXT: "ap-northeast-1"
- status: "INCOMPLIANT"
currentStateMessage: "The table is running in ap-northeast-3 which is more expensive than ap-northeast-2."
remediationMessage: "Consider migrating the table to ap-northeast-2."
check:
IS_EQUAL:
left:
EXTRACT: CA10__regionName2__c
right:
TEXT: "ap-northeast-3"
- status: "INCOMPLIANT"
currentStateMessage: "The table is running in ca-central-1 which is more expensive than us-east-2."
remediationMessage: "Consider migrating the table to us-east-2."
check:
IS_EQUAL:
left:
EXTRACT: CA10__regionName2__c
right:
TEXT: "ca-central-1"
- status: "INCOMPLIANT"
currentStateMessage: "The table 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 table to eu-west-1, eu-north-1, or eu-south-2."
check:
IS_EQUAL:
left:
EXTRACT: CA10__regionName2__c
right:
TEXT: "eu-central-1"
- status: "INCOMPLIANT"
currentStateMessage: "The table 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 table to eu-west-1, eu-north-1, or eu-south-2."
check:
IS_EQUAL:
left:
EXTRACT: CA10__regionName2__c
right:
TEXT: "eu-west-2"
- status: "INCOMPLIANT"
currentStateMessage: "The table 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 table to eu-west-1, eu-north-1, or eu-south-2."
check:
IS_EQUAL:
left:
EXTRACT: CA10__regionName2__c
right:
TEXT: "eu-south-1"
- status: "INCOMPLIANT"
currentStateMessage: "The table 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 table to eu-west-1, eu-north-1, or eu-south-2."
check:
IS_EQUAL:
left:
EXTRACT: CA10__regionName2__c
right:
TEXT: "eu-west-3"
- status: "INCOMPLIANT"
currentStateMessage: "The table 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 table to eu-west-1, eu-north-1, or eu-south-2."
check:
IS_EQUAL:
left:
EXTRACT: CA10__regionName2__c
right:
TEXT: "eu-central-2"
otherwise:
status: "COMPLIANT"
currentStateMessage: "The EC2 table is located in a cost-effective region."