Archive Winning Moments
Script to archive unused winning moments in DynamoDB.
Common Use Cases
1. Archive expired or completed campaigns
- Scenario: Campaigns are finished, and associated winning moments should be archived.
- Effect: Moves unused winning moments out of circulation and marks them as archived.
2. Clean up prize data
- Scenario: Maintain consistency by archiving old moments before reusing or updating a prize.
- Effect: Ensures DynamoDB does not retain obsolete or invalid winning moments.
Example Input
{
"awsProfile": "bronze",
"awsStage": "beta",
"configId": "config123",
"prizeArg": "prize789"
}