11name : zero-deployable-react-frontend
22description : ' zero module for a deployable single page application based on Create React App and deployed to S3/Cloudfront'
33author : ' Commit'
4+ zeroVersion : ' >= 0.1.0'
45
56dependsOn :
67- zero-aws-eks-stack
@@ -15,16 +16,45 @@ template:
1516
1617requiredCredentials :
1718 - aws
18- - circleci
1919 - github
2020
2121parameters :
22+ - field : useExistingAwsProfile
23+ label : " Use credentials from an existing AWS profile?"
24+ options :
25+ " yes " : " Yes"
26+ " no " : " No"
27+ omitFromProjectFile : yes
28+ - field : profilePicker
29+ omitFromProjectFile : yes
30+ type : AWSProfilePicker
31+ conditions :
32+ - action : KeyMatchCondition
33+ whenValue : " yes"
34+ matchField : useExistingAwsProfile
35+ - field : accessKeyId
36+ label : AWS AccessKeyId
37+ envVarName : " AWS_ACCESS_KEY_ID"
38+ conditions :
39+ - action : KeyMatchCondition
40+ whenValue : " no"
41+ matchField : useExistingAwsProfile
42+ - field : secretAccessKey
43+ envVarName : " AWS_SECRET_ACCESS_KEY"
44+ label : AWS SecretAccessKey
45+ conditions :
46+ - action : KeyMatchCondition
47+ whenValue : " no"
48+ matchField : useExistingAwsProfile
49+ - field : githubAccessToken
50+ label : " Github API Key to setup your repository and optionally CI/CD"
51+ envVarName : GITHUB_ACCESS_TOKEN
2252 - field : region
2353 label : Select AWS Region
2454 options :
25- - " us-west-2"
26- - " us-east-1"
27- - " us-east-2"
55+ " us-west-2 " : " us-west-2 (Oregon) "
56+ " us-east-1 " : " us-east-1 (N. Virginia) "
57+ " us-east-2 " : " us-east-2 (Ohio) "
2858 - field : productionHostRoot
2959 label : Production Root Host Name (e.g. mydomain.com) - this must be the root of the chosen domain, not a subdomain.
3060 fieldValidation :
@@ -72,14 +102,21 @@ parameters:
72102 label : Enable user management using Kratos and authentication using the Oathkeeper access proxy?
73103 default : yes
74104 options :
75- - " yes"
76- - " no"
105+ " yes " : " Yes "
106+ " no " : " No "
77107 - field : CIVendor
78108 label : Using either circleCI or github Actions to build / test your repository
79109 default : " circleci"
80110 options :
81- - " circleci"
82- - " github-actions"
111+ " circleci " : " CircleCi"
112+ " github-actions " : " Github Actions"
113+ - field : circleciApiKey
114+ label : " Circle CI API Key to setup your CI/CD for repositories"
115+ envVarName : CIRCLECI_API_KEY
116+ conditions :
117+ - action : KeyMatchCondition
118+ matchField : CIVendor
119+ whenValue : " circleci"
83120
84121conditions :
85122 - action : ignoreFile
0 commit comments