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

Commit fc4f5a0

Browse files
authored
Add S3 naming conventions to genomics novpc tmplte
Port from Cromwell cloud stack file, still no actual validation on form.
1 parent 14f0862 commit fc4f5a0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
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

0 commit comments

Comments
 (0)