11name : zero-deployable-node-backend
22description : ' zero module for a basic backend service running in kubernetes'
33author : ' Commit'
4+ zeroVersion : ' >= 0.1.0'
45
56dependsOn :
67- zero-aws-eks-stack
@@ -19,12 +20,42 @@ requiredCredentials:
1920 - github
2021
2122parameters :
23+ - field : useExistingAwsProfile
24+ label : " Use credentials from an existing AWS profile?"
25+ options :
26+ " yes " : " Yes"
27+ " no " : " No"
28+ omitFromProjectFile : yes
29+ - field : profilePicker
30+ omitFromProjectFile : yes
31+ type : AWSProfilePicker
32+ conditions :
33+ - action : KeyMatchCondition
34+ whenValue : " yes"
35+ matchField : useExistingAwsProfile
36+ - field : accessKeyId
37+ label : AWS AccessKeyId
38+ envVarName : " AWS_ACCESS_KEY_ID"
39+ conditions :
40+ - action : KeyMatchCondition
41+ whenValue : " no"
42+ matchField : useExistingAwsProfile
43+ - field : secretAccessKey
44+ envVarName : " AWS_SECRET_ACCESS_KEY"
45+ label : AWS SecretAccessKey
46+ conditions :
47+ - action : KeyMatchCondition
48+ whenValue : " no"
49+ matchField : useExistingAwsProfile
50+ - field : githubAccessToken
51+ label : " Github API Key to setup your repository and optionally CI/CD"
52+ envVarName : GITHUB_ACCESS_TOKEN
2253 - field : region
2354 label : Select AWS Region
2455 options :
25- - " us-west-2"
26- - " us-east-1"
27- - " us-east-2"
56+ " us-west-2 " : " us-west-2 (Oregon) "
57+ " us-east-1 " : " us-east-1 (N. Virginia) "
58+ " us-east-2 " : " us-east-2 (Ohio) "
2859 - field : productionHostRoot
2960 label : Production Root Host Name (e.g. mydomain.com) - this must be the root of the chosen domain, not a subdomain.
3061 fieldValidation :
@@ -68,8 +99,8 @@ parameters:
6899 - field : database
69100 label : Database engine to use (postgres)
70101 options :
71- - " postgres"
72- - " mysql"
102+ " postgres " : " PostgreSQL "
103+ " mysql " : " MySQL "
73104 - field : accountId
74105 label : AWS Account ID
75106 execute : aws sts get-caller-identity --query "Account" | tr -d '"'
@@ -82,26 +113,33 @@ parameters:
82113 label : Enable file uploads using S3 and Cloudfront signed URLs? (Will require manual creation of a Cloudfront keypair in AWS)
83114 default : yes
84115 options :
85- - " yes"
86- - " no"
116+ " yes " : " Yes "
117+ " no " : " No "
87118 - field : userAuth
88119 label : Enable user management using Kratos and authentication using the Oathkeeper access proxy?
89120 default : yes
90121 options :
91- - " yes"
92- - " no"
122+ " yes " : " Yes "
123+ " no " : " No "
93124 - field : apiType
94125 label : What type of API do you want to expose?
95126 default : rest
96127 options :
97- - " rest"
98- - " graphql"
128+ " rest " : " REST API "
129+ " graphql " : " GraphQL "
99130 - field : CIVendor
100131 label : Using either circleCI or github Actions to build / test your repository
101132 default : " circleci"
102133 options :
103- - " circleci"
104- - " github-actions"
134+ " circleci " : " CircleCi"
135+ " github-actions " : " Github Actions"
136+ - field : circleciApiKey
137+ label : " Circle CI API Key to setup your CI/CD for repositories"
138+ envVarName : CIRCLECI_API_KEY
139+ conditions :
140+ - action : KeyMatchCondition
141+ matchField : CIVendor
142+ whenValue : " circleci"
105143conditions :
106144 - action : ignoreFile
107145 matchField : fileUploads
@@ -131,7 +169,7 @@ conditions:
131169 whenValue : " graphql"
132170 data :
133171 - src/app
134- - src/app.js
172+ - src/app.js
135173 - action : ignoreFile
136174 matchField : CIVendor
137175 whenValue : " circleci"
0 commit comments