Skip to content

Instantly share code, notes, and snippets.

@MisterDaniels
Last active February 15, 2022 17:46
Show Gist options
  • Save MisterDaniels/c763a5058a5e118a8fb3a98813b62280 to your computer and use it in GitHub Desktop.
Save MisterDaniels/c763a5058a5e118a8fb3a98813b62280 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -e
declare -a tables=("project" "photo_project");
for table in "${tables[@]}"
do
aws dms reload-tables \
--replication-task-arn "arn:aws:dms:sa-east-1:563887512369:task:XGPXOQJKUOT2I5P4HXSB3LQFAVH6XG6WAFDHENY" \
--tables-to-reload "SchemaName=photobook,TableName=$table" \
--profile bot-dms
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment