Skip to content

Commit 48cb2d0

Browse files
committed
add mkpath
1 parent 19fe48f commit 48cb2d0

File tree

1 file changed

+3
-1
lines changed
  • adminforth/documentation/blog/2025-02-19-compose-ec2-deployment-ci-registry

1 file changed

+3
-1
lines changed

adminforth/documentation/blog/2025-02-19-compose-ec2-deployment-ci-registry/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ resource "null_resource" "sync_files_and_run" {
453453
454454
# if you will change host, pleasee add -o StrictHostKeyChecking=no
455455
echo "Copy files to the instance"
456-
rsync -t -avz -e "ssh -i ./.keys/id_rsa -o StrictHostKeyChecking=no" \
456+
rsync -t -avz --mkpath -e "ssh -i ./.keys/id_rsa -o StrictHostKeyChecking=no" \
457457
--delete \
458458
--exclude '.terraform' \
459459
--exclude '.keys' \
@@ -576,6 +576,8 @@ Now run deployement:
576576
terraform apply -auto-approve
577577
```
578578

579+
> First time you might need to run deployment twice if you still see "Waiting for Docker to start..." message. This is because terraform runs `docker` command before docker is started.
580+
579581
## Step 8 - Migrate state to the cloud
580582

581583
First deployment had to create S3 bucket for storing Terraform state. Now we need to migrate the state to the cloud.

0 commit comments

Comments
 (0)