Deployment error
Hi Mukesh,
i cannot reopen previous issue but now i got following error:
rds_endpoint = "dev-eu-west-1-postgres.cx02aeyuku1e.eu-west-1.rds.amazonaws.com"
rds_port = 5432
rds_secret_arn = "arn:aws:secretsmanager:eu-west-1:997916277888:secret:rds!db-a2f061c8-4444-44b0-a633-43cb6b367843-W5cKPq"
redis_connection_string =
-
Die "migrator ($label) exited $exitCode — $reason (logs: CloudWat ... -
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~- CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
- FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Die
Thanks for the detailed log — that pinned it down.
What happened: the deploy tried to run the migrator from ghcr.io/fullstackhero/fsh-db-migrator:488a56ef6051, and that tag doesn't exist in the registry. The 488a56ef6051 tag is your local git short-SHA — it only gets used when you run with -BuildApi, where the script builds the images and pushes them to the registry itself. Since you're deploying a fork, that push went to the default ghcr.io/fullstackhero registry, which you don't have write access to, so the push was rejected. The script didn't stop on that failed push (a PowerShell-specific gap — see below), so it carried on and told ECS to pull a tag that was never published → CannotPullContainerError.
To unblock yourself now, pick one:
-
Deploy an already-published tag (simplest — no build):
./deploy.ps1 -Environment dev -Region eu-west-1 -ImageTag v1.0.0(or set
container_image_tag = "v1.0.0"inenvs/dev/eu-west-1/terraform.tfvars). The published tags live on the GHCR packages page. -
Build & push to a registry you own (if you want to deploy your own code changes):
docker login ghcr.io # or `aws ecr get-login-password ... | docker login` for ECR ./deploy.ps1 -Environment dev -Region eu-west-1 -BuildApi -Registry ghcr.io/<your-org>The
-Registrymust be one your credentials can push to.
On the tooling side: #1341 hardens deploy.ps1 so a failed image push now stops the deploy immediately with a clear message (naming the registry/access cause and the two options above), instead of failing opaquely at the ECS pull step several minutes later.