Skip to content

Open source AI coding agent. Designed for large projects and real world tasks.

 πŸ€– Plandex  πŸ“ Ensure consistent ECR repository name between deploy script and CDK script ✏️ Edits: β€’ infra/src/main.ts βœ… Use existing ECR repository instead of creating a new one

Dane Schneider321f22ad9583
diff --git a/infra/src/main.ts b/infra/src/main.ts
index fe2cb61e..59f7b101 100644
--- a/infra/src/main.ts
+++ b/infra/src/main.ts
@@ -80,9 +80,7 @@ export class PlandexStack extends cdk.Stack {
);
// Create an ECR repository
- const ecrRepository = new ecr.Repository(
- this,
- `plandex-ecr-repository-${tag}`,
+ const ecrRepository = ecr.Repository.fromRepositoryName(this, 'PlandexEcrRepository', 'plandex-ecr-repository');
{
repositoryName: "plandex-ecr-repository",
}