Skip to content

Commit 6f4cfcd

Browse files
committed
Update CFN to enforce validation for non-capital env name
1 parent ee6a3a3 commit 6f4cfcd

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

recipes/res/res_demo_env/assets/bi.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ Parameters:
3535
Type: String
3636
Default: ""
3737
EnvironmentName:
38-
Description: (Optional) EnvironmentName must start with "res-"and should be less than or equal to 11 characters. Required to generate certificates.
38+
Description: (Optional) EnvironmentName must start with "res-" without capital letters and should be less than or equal to 11 characters. Required to generate certificates.
3939
Type: String
40-
AllowedPattern: ^$|^res-[A-Za-z\-\_0-9]{0,7}$
40+
AllowedPattern: ^$|^res-[a-z\-\_0-9]{0,7}$
4141
Default: res-demo
4242
AdminPassword:
4343
Description: (Optional) Provide the Active Directory Administrator Account Password Directly or Resource ARN to Secret Containing Password.

recipes/res/res_demo_env/assets/res-demo-stack.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ Parameters:
2727
Description: Provide name of the RES Environment. Must be unique for your account and AWS Region.
2828
Type: String
2929
Default: res-demo
30-
AllowedPattern: ^res-[A-Za-z\-\_0-9]{0,7}$
31-
ConstraintDescription: EnvironmentName must start with "res-" and should be less than or equal to 11 characters.
30+
AllowedPattern: ^res-[a-z\-\_0-9]{0,7}$
31+
ConstraintDescription: EnvironmentName must start with "res-" without capital letters and should be less than or equal to 11 characters.
3232

3333
AdministratorEmail:
3434
Type: String

recipes/res/res_demo_env/assets/res-sso-keycloak.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ Parameters:
2121
Description: Provide name of the RES Environment. Must be unique for your account and AWS Region.
2222
Type: String
2323
Default: res-demo
24-
AllowedPattern: ^res-[A-Za-z\-\_0-9]{0,7}$
25-
ConstraintDescription: EnvironmentName must start with "res-" and should be less than or equal to 11 characters.
24+
AllowedPattern: ^res-[a-z\-\_0-9]{0,7}$
25+
ConstraintDescription: EnvironmentName must start with "res-" without capital letters and should be less than or equal to 11 characters.
2626

2727
Keypair:
2828
Description: EC2 Keypair to access management instance.

recipes/res/res_ready_ami/assets/imagebuilder-infrastructure.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ Parameters:
1818
EnvironmentName:
1919
Type: String
2020
Description: Provide name of the RES Environment. Must be unique for your account and AWS Region.
21-
AllowedPattern: ^res-[A-Za-z\-\_0-9]{0,7}$
22-
ConstraintDescription: EnvironmentName must start with "res-" and should be less than or equal to 11 characters.
21+
AllowedPattern: ^res-[a-z\-\_0-9]{0,7}$
22+
ConstraintDescription: EnvironmentName must start with "res-" without capital letters and should be less than or equal to 11 characters.
2323
VPC:
2424
Description: VPC where RES is deployed
2525
Type: 'AWS::EC2::VPC::Id'

0 commit comments

Comments
 (0)