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

Commit 14f0862

Browse files
authored
Add S3 bucket naming conventions to description
I forgot about naming conventions when I created my bucket name, even though I added an `AllowedPattern`, I don't get validation on the form.
1 parent 97aeadd commit 14f0862

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

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)