Congratulations! You have made it to the end of the workshop.
In this workshop you explored capturing item level changes on a DynamoDB table using DynamoDB Streams and Kinesis Data Streams. In this instance, you wrote the previous version of updated items to a different DynamoDB table. By applying these same techniques, you can build complex event driven solutions that are triggered by changes to items you have stored on DynamoDB.
If you used an account provided by Workshop Studio, you do not need to do any cleanup. The account terminates when the event is over.
If you used your own account, please remove the following resources:
UUID_1=`aws lambda list-event-source-mappings --function-name create-order-history-kds --query 'EventSourceMappings[].UUID' --output text`
UUID_2=`aws lambda list-event-source-mappings --function-name create-order-history-ddbs --query 'EventSourceMappings[].UUID' --output text`
aws lambda delete-event-source-mapping --uuid ${UUID_1}
aws lambda delete-event-source-mapping --uuid ${UUID_2}
aws lambda delete-function --function-name create-order-history-ddbs
aws lambda delete-function --function-name create-order-history-kds
aws kinesis delete-stream --stream-name Orders
aws dynamodb delete-table --table-name Orders
aws dynamodb delete-table --table-name OrdersHistory
aws sqs delete-queue --queue-url https://sqs.${REGION}.amazonaws.com/${ACCOUNT_ID}/orders-ddbs-dlq
aws sqs delete-queue --queue-url https://sqs.${REGION}.amazonaws.com/${ACCOUNT_ID}/orders-kds-dlq
This should wrap up the cleanup process.