diff --git a/codebuild.yml b/codebuild.yml index 73d839e17..9ae85d499 100644 --- a/codebuild.yml +++ b/codebuild.yml @@ -9,8 +9,15 @@ Parameters: Type: String LogStream: Type: String + RepoName: + Type: String + AllowedPattern: (?:[a-z0-9]+(?:[._-][a-z0-9]+)*/)*[a-z0-9]+(?:[._-][a-z0-9]+)* Resources: + ECRRepository: + Type: AWS::ECR::Repository + Properties: + RepositoryName: !Ref RepoName CodeBuildProject: Type: AWS::CodeBuild::Project Properties: diff --git a/ecr.yml b/ecr.yml new file mode 100644 index 000000000..71e575fb7 --- /dev/null +++ b/ecr.yml @@ -0,0 +1,11 @@ +--- +AWSTemplateFormatVersion: 2010-09-09 +Parameters: + RepoName: + Type: String + AllowedPattern: (?:[a-z0-9]+(?:[._-][a-z0-9]+)*/)*[a-z0-9]+(?:[._-][a-z0-9]+)* +Resources: + ECRRepository: + Type: AWS::ECR::Repository + Properties: + RepositoryName: !Ref RepoName \ No newline at end of file