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
// Ensure we enroll ecs with long resource IDs | |
// Delete after April 1st as all new accounts will be enrolled by default | |
resource "null_resource" "enable_long_ecs_resource_ids" { | |
provisioner "local-exec" { | |
command = <<EOF | |
# $1=account_id, $2=region | |
source ${path.root}/../scripts/assume_role.sh \ | |
${var.workload_account_id} \ | |
${var.workload_provider_region} |
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
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |