From 19ecfb712c33ff1b8f7d6a1348a7faaa3e40bc24 Mon Sep 17 00:00:00 2001 From: Lourens Touwen Date: Tue, 28 Jan 2025 20:32:15 +0100 Subject: [PATCH 1/2] Update production-app.mdx Fix: ECR repository name should match `image_name` not `ws_name`. --- templates/how-to/production-app.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/how-to/production-app.mdx b/templates/how-to/production-app.mdx index c4095587..ca3f8746 100644 --- a/templates/how-to/production-app.mdx +++ b/templates/how-to/production-app.mdx @@ -28,7 +28,7 @@ To use ECR, **create the image repo and authenticate with ECR** before pushing i **1. Create the image repository in ECR** -The repo name should match the `ws_name`. Meaning if you're using the default workspace name, the repo name would be `ai`. +The repo name should match the `image_name` in `workspace/settings.py`. create-ecr-image @@ -76,7 +76,7 @@ ws_settings = WorkspaceSettings( The `image_repo` defines the repo for your image. - If using dockerhub it would be something like `phidata`. -- If using ECR it would be something like `[ACCOUNT_ID].dkr.ecr.us-east-1.amazonaws.com` +- If using ECR it would be something like `[ACCOUNT_ID].dkr.ecr.[AWS REGION].amazonaws.com` From c8dc17dca32246df7352084d4b319a9154b8ab23 Mon Sep 17 00:00:00 2001 From: Lourens Touwen Date: Tue, 28 Jan 2025 20:39:24 +0100 Subject: [PATCH 2/2] Update agent-app-update-production.mdx fix broken link --- _snippets/agent-app-update-production.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_snippets/agent-app-update-production.mdx b/_snippets/agent-app-update-production.mdx index b08e52ac..037f3fd6 100644 --- a/_snippets/agent-app-update-production.mdx +++ b/_snippets/agent-app-update-production.mdx @@ -1,6 +1,6 @@ ## Updating Production -Follow [this guide](templates/how-to/production-app) to update your production application. You'll need to: +Follow [this guide](/templates/how-to/production-app) to update your production application. You'll need to: 1. Create a new image 2. Update the ECS task definition and services.