Skip to content

Commit 95b0387

Browse files
author
Andrews
committed
add regex to cloudformation config
1 parent 2e93e04 commit 95b0387

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pre-configure.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ const questions = [{
2929
name: 'cloudFormationStackName',
3030
message: 'CloudFormation stack name:',
3131
type: 'input',
32-
default: 'Dev Portal Stack'
32+
default: 'DevPortalStack',
33+
validate: value => /^[a-zA-Z][a-zA-Z0-9\-]*/.test(value)
3334
}, {
3435
name: 'apiGatewayApiName',
3536
message: 'API name:',

0 commit comments

Comments
 (0)