mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-10 07:07:21 +00:00
Updates ECR repository handling to import existing repo
This commit is contained in:
@ -117,12 +117,8 @@ export class BackendStack extends cdk.Stack {
|
|||||||
removalPolicy: cdk.RemovalPolicy.DESTROY,
|
removalPolicy: cdk.RemovalPolicy.DESTROY,
|
||||||
});
|
});
|
||||||
|
|
||||||
// ECR Repository for Docker images - ensure it's in the correct region
|
// ECR Repository for Docker images - import existing repository
|
||||||
const ecrRepository = new ecr.Repository(this, 'SyncrowBackendRepo', {
|
const ecrRepository = ecr.Repository.fromRepositoryName(this, 'SyncrowBackendRepo', 'syncrow-backend');
|
||||||
repositoryName: 'syncrow-backend',
|
|
||||||
removalPolicy: cdk.RemovalPolicy.DESTROY,
|
|
||||||
emptyOnDelete: true,
|
|
||||||
});
|
|
||||||
|
|
||||||
// Output the correct ECR URI for this region
|
// Output the correct ECR URI for this region
|
||||||
new cdk.CfnOutput(this, 'EcrRepositoryUriRegional', {
|
new cdk.CfnOutput(this, 'EcrRepositoryUriRegional', {
|
||||||
|
Reference in New Issue
Block a user