[9271c5]: / source / GenomicsAnalysisZone / zone_cfn.yml

Download this file

36 lines (29 with data), 1.3 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
AWSTemplateFormatVersion: 2010-09-09
Description: GenomicsAnalysisZone
# CodeCommit
# Repo
Parameters:
ResourcePrefix:
Type: String
Default: GenomicsAnalysis
ResourcePrefixLowercase:
Type: String
Default: genomicsanalysis
Resources:
# CodeCommit
Repo:
DeletionPolicy: Retain
Type: AWS::CodeCommit::Repository
Properties:
RepositoryName: !Sub ${ResourcePrefix}-Pipe
RepositoryDescription: !Sub ${ResourcePrefix}-Pipe
Outputs:
RepoName:
Description: RepoName
Value: !Sub ${Repo.Name}
RepoHttpUrl:
Description: RepoCloneCommand
Value: !Sub ${Repo.CloneUrlHttp}
# 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
# 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