Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit 658315c

Browse files
committed
Adding regex to validate bucket name. Fixes #117
1 parent 207c086 commit 658315c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

WebApplication/1_StaticWebHosting/webapp-static-hosting.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@ Parameters:
88
BucketName:
99
Type: String
1010
Description: The name for the bucket hosting your website, e.g. 'wildrydes-yourname'
11+
AllowedPattern: ^[a-z0-9][a-z0-9-.]{1,61}[a-z0-9]$
1112

1213
CodeBucket:
1314
Type: String
1415
Default: wildrydes-us-east-1
1516
Description: S3 bucket containing the code deployed by this template
17+
AllowedPattern: ^[a-z0-9][a-z0-9-.]{1,61}[a-z0-9]$
1618

1719
CodeKeyPrefix:
1820
Type: String

0 commit comments

Comments
 (0)