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

Commit 377b5a9

Browse files
authored
Add name conventions to aws-genomics-s3 template
Update separate aws-genomics-s3 stack template with naming conventions
1 parent b834816 commit 377b5a9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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.

0 commit comments

Comments
 (0)