Skip to content
This repository was archived by the owner on Aug 9, 2023. It is now read-only.

Commit a4e4079

Browse files
authored
Merge pull request #9 from illusional/patch-1
Add prompt for S3 bucket naming conventions to CloudFormation template
2 parents 6c24969 + 377b5a9 commit a4e4079

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

src/templates/aws-genomics-root-novpc.template.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,13 @@ Parameters:
5555
Type: List<AWS::EC2::Subnet::Id>
5656
Description: 'Subnets you want your batch compute environment to launch in. We recommend private subnets. NOTE: Must be from the VPC provided.'
5757
S3BucketName:
58-
Description: A S3 bucket name for storing analysis results
58+
Description: >-
59+
A S3 bucket name for storing analysis results.
60+
The bucket name must respect the S3 bucket naming conventions
61+
(can contain lowercase letters, numbers, periods and hyphens).
5962
Type: String
63+
AllowedPattern: "(?=^.{3,63}$)(?!^(\\d+\\.)+\\d+$)(^(([a-z0-9]|[a-z0-9][a-z0-9\\-]*[a-z0-9])\\.)*([a-z0-9]|[a-z0-9][a-z0-9\\-]*[a-z0-9])$)"
64+
ConstraintDescription: "Must respect AWS naming conventions"
6065
ExistingBucket:
6166
Description: Does this bucket already exist?
6267
Type: String

src/templates/aws-genomics-s3.template.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ Mappings:
1616
Parameters:
1717
S3BucketName:
1818
Type: String
19+
Description: >-
20+
A S3 bucket name for storing analysis results.
21+
The bucket name must respect the S3 bucket naming conventions
22+
(can contain lowercase letters, numbers, periods and hyphens).
23+
Type: String
24+
AllowedPattern: "(?=^.{3,63}$)(?!^(\\d+\\.)+\\d+$)(^(([a-z0-9]|[a-z0-9][a-z0-9\\-]*[a-z0-9])\\.)*([a-z0-9]|[a-z0-9][a-z0-9\\-]*[a-z0-9])$)"
25+
ConstraintDescription: "Must respect AWS naming conventions"
1926
ExistingBucket:
2027
Type: String
2128
Description: Does this bucket already exist? If not, it will be created.

src/templates/cromwell/cromwell-aio.template.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,13 @@ Parameters:
6666
Description: "Choose the two Availability Zones to deploy instances for AWS Batch."
6767
Type: List<AWS::EC2::AvailabilityZone::Name>
6868
S3BucketName:
69-
Description: A S3 bucket name for storing analysis results
69+
Description: >-
70+
A S3 bucket name for storing analysis results.
71+
The bucket name must respect the S3 bucket naming conventions
72+
(can contain lowercase letters, numbers, periods and hyphens).
7073
Type: String
74+
AllowedPattern: "(?=^.{3,63}$)(?!^(\\d+\\.)+\\d+$)(^(([a-z0-9]|[a-z0-9][a-z0-9\\-]*[a-z0-9])\\.)*([a-z0-9]|[a-z0-9][a-z0-9\\-]*[a-z0-9])$)"
75+
ConstraintDescription: "Must respect S3 bucket naming conventions"
7176
ExistingBucket:
7277
Description: Does this bucket already exist?
7378
Type: String
@@ -218,4 +223,4 @@ Outputs:
218223
Value: !GetAtt 'GenomicsWorkflowStack.Outputs.GenomicsEnvHighPriorityJobQueueArn'
219224
Description: >-
220225
AWS Batch job queue for high priority workflow jobs, based on EC2 On-Demand
221-
instances
226+
instances

0 commit comments

Comments
 (0)