a b/source/GenomicsAnalysisZone/zone_cfn.yml
1
---
2
AWSTemplateFormatVersion: 2010-09-09
3
Description: GenomicsAnalysisZone
4
5
# CodeCommit
6
#   Repo
7
8
Parameters:
9
  ResourcePrefix:
10
    Type: String
11
    Default: GenomicsAnalysis
12
  ResourcePrefixLowercase:
13
    Type: String
14
    Default: genomicsanalysis
15
    
16
Resources:
17
  # CodeCommit
18
  Repo:
19
    DeletionPolicy: Retain
20
    Type: AWS::CodeCommit::Repository
21
    Properties:
22
      RepositoryName: !Sub ${ResourcePrefix}-Pipe
23
      RepositoryDescription: !Sub ${ResourcePrefix}-Pipe
24
Outputs:
25
  RepoName:
26
    Description: RepoName
27
    Value: !Sub ${Repo.Name}
28
  RepoHttpUrl:
29
    Description: RepoCloneCommand
30
    Value: !Sub ${Repo.CloneUrlHttp}
31
32
# aws cloudformation update-stack --stack-name GenomicsAnalysisZone --template-body file://template_cfn.yml --capabilities CAPABILITY_IAM --output text; aws cloudformation wait stack-update-complete --stack-name GenomicsAnalysisZone
33
34
# aws cloudformation create-stack --stack-name GenomicsAnalysisZone --template-body file://template_cfn.yml --capabilities CAPABILITY_IAM --enable-termination-protection --output text; aws cloudformation wait stack-create-complete --stack-name GenomicsAnalysisZone; aws cloudformation describe-stacks --stack-name GenomicsAnalysisZone --query 'Stacks[].Outputs[?OutputKey==`RepoCloneCommand`].OutputValue' --output text
35