Skip to main content

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

Uses​

Test Results πŸŸ’β€‹

Generated at: 2025-10-01T12:44:48.929130901Z Open

ResultIdCondition IndexCondition TextRuntime 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​

FileMD5
Open/ce/ca/aws/dynamodb/table-cost-effective-region/policy.yaml5F3358A94AA975D9C718A5A7D736220F
Open/ce/ca/aws/dynamodb/table-cost-effective-region/prod.logic.yaml96ACE10170C0ABCB2924C1E7F6FFBB8F
Open/ce/ca/aws/dynamodb/table-cost-effective-region/test-data.jsonD098F85EFDDA9F53AAEF6873BCAE0E16
Open/types/CA10__CaAwsDynamoDbTable__c/object.extracts.yamlA8D1E2741C16A4C7C104289152587E61

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​

Open File

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