Last active
February 15, 2022 17:46
-
-
Save MisterDaniels/c763a5058a5e118a8fb3a98813b62280 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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