import { Repository } from '@aws-cdk/aws-ecr' ; import { Construct } from "@aws-cdk/core" ; import { EnvironmentSettings } from "../../../settings" ; import { EnvConstructProps } from "../../../types" ; export class GlobalECR extends Construct { backendRepository : Repository ; static getBackendRepositoryName ( envSettings ) { return `${ envSettings . projectName }-backend` ; } constructor ( scope , id , props ) { super ( scope , id ) ; this . backendRepository = new Repository ( this , "ECRBackendRepository" , { repositoryName : GlobalECR . getBackendRepositoryName ( props . envSettings ) , } ) ; } }