python3 /home/ec2-user/git/meteor2-account/build/build.py
GRANT SELECT, INSERT, UPDATE, DELETE ON `meteor2-account`.* TO 'meteor2-account'@'10.0.0.229';
GRANT SELECT, INSERT, UPDATE, DELETE ON `meteor2-account`.* TO 'meteor2-account'@'172.17.0.%';
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"ecs:UpdateService",
"iam:PassRole",
"ecr:GetDownloadUrlForLayer",
"ecr:BatchGetImage",
"ecr:CompleteLayerUpload",
"ecr:UploadLayerPart",
"ecr:InitiateLayerUpload",
"ecr:BatchCheckLayerAvailability",
"ecr:PutImage"
],
"Resource": [
"arn:aws:ecs:eu-west-1:633757032102:service/meteor2/meteor2-account",
"arn:aws:ecr:eu-west-1:633757032102:repository/meteor2-account",
"arn:aws:iam::633757032102:role/ecsTaskExecutionRole"
]
},
{
"Sid": "VisualEditor1",
"Effect": "Allow",
"Action": [
"ecs:RegisterTaskDefinition",
"ecr:GetAuthorizationToken"
],
"Resource": "*"
}
]
}
# wget latest binary (https://github.com/docker/buildx/releases)
# rename binary to 'docker-buildx' and place it in '~/.docker/cli-plugins/docker-buildx'
chmod a+x ~/.docker/cli-plugins/docker-buildx
yum install qemu-user-static
reboot
aws ecs execute-command --cluster meteornext --task task_id --container meteornext-account --interactive --command "/bin/sh"