Skip to main content

🧠 AWS DynamoDB Table is unused - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2025-12-27T12:01:46.195993615Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒001βœ”οΈ 199βœ”οΈ extract('CA10__tableStatus__c') != 'ACTIVE'βœ”οΈ null
🟒002βœ”οΈ 299βœ”οΈ CA10__creationDateTime__c.withinLastDays(30)βœ”οΈ null
🟒003βœ”οΈ 399βœ”οΈ extract('CA10__itemCount__c') == number(0.0)βœ”οΈ null
🟒004βœ”οΈ 400βœ”οΈ otherwiseβœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/aws/dynamodb/table-unused/policy.yamlB5979C3E4755A572EADD36F7A82BB076
Open/ce/ca/aws/dynamodb/table-unused/prod.logic.yaml0249B119F58AA73435DDBDAC60F0E9CE
Open/ce/ca/aws/dynamodb/table-unused/test-data.json546CA49183A182C061EDF86B1C14AD35
Open/types/CA10__CaAwsDynamoDbTable__c/object.extracts.yamlEC959FF9A6572890388AA7C1C47122EF

Available Commands​

repo-manager policies generate FULL /ce/ca/aws/dynamodb/table-unused/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/dynamodb/table-unused/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/dynamodb/table-unused/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/dynamodb/table-unused/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/dynamodb/table-unused/prod.logic.yaml

Content​

Open File

inputType: "CA10__CaAwsDynamoDbTable__c"
testData:
- file: "test-data.json"
importExtracts:
- file: /types/CA10__CaAwsDynamoDbTable__c/object.extracts.yaml
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "The table is not active."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10__tableStatus__c"
right:
TEXT: "ACTIVE"
- status: "INAPPLICABLE"
currentStateMessage: "The table was created less than 30 days ago."
check:
IS_WITHIN_LAST_DAYS:
offsetDays: 30
arg:
FIELD:
path: "CA10__creationDateTime__c"
- status: "INCOMPLIANT"
currentStateMessage: "The DynamoDB Table is not used and contains 0 items."
remediationMessage: "Consider deleting the Table."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__itemCount__c"
right:
NUMBER: 0.0
otherwise:
status: "COMPLIANT"
currentStateMessage: "The Table contains items and is considered in use."