#!/bin/zsh

awsume dev --region us-east-1

echo "enter the filename for the messages you want to retrieve"

read FILENAME

aws dynamodb get-item \
    --table-name 'ownership-ingestion-events' \
    --key '{"originalFilename": {"S": "'${FILENAME}'"}}' \
    --return-consumed-capacity TOTAL
