From cbd2de4ec6512d45e61bbdf4492f7d2f403ed810 Mon Sep 17 00:00:00 2001 From: Darren McGhee Date: Mon, 20 Apr 2020 11:04:50 +0100 Subject: [PATCH] Completion of ECR build files --- codebuild.yml | 7 +++++++ ecr.yml | 11 +++++++++++ 2 files changed, 18 insertions(+) create mode 100644 ecr.yml 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