|
| 1 | +--- |
| 2 | +title: Module Parameters |
| 3 | +sidebar_label: Module Parameters |
| 4 | +sidebar_position: 2 |
| 5 | +--- |
| 6 | + |
| 7 | +## Parameters |
| 8 | + |
| 9 | +| Parameter | Label | Env-var(apply) | Default | |
| 10 | +|--|---|---|---| |
| 11 | +| useExistingAwsProfile | Use credentials from an existing AWS profile? | n/a | null | |
| 12 | +| profilePicker | n/a | n/a | null | |
| 13 | +| accessKeyId | AWS AccessKeyId | AWS_ACCESS_KEY_ID | null | |
| 14 | +| secretAccessKey | AWS SecretAccessKey | AWS_SECRET_ACCESS_KEY | null | |
| 15 | +| githubAccessToken | Github API Key to setup your repository and optionally CI/CD | GITHUB_ACCESS_TOKEN | null | |
| 16 | +| region | Select AWS Region | n/a | null | |
| 17 | +| productionHostRoot | Production Root Host Name (e.g. mydomain.com) - this must be the root of the chosen domain, not a subdomain. | n/a | null | |
| 18 | +| productionFrontendSubdomain | Production Frontend Host Name (e.g. app.) | n/a | app. | |
| 19 | +| productionBackendSubdomain | Production Backend Host Name (e.g. api.) | n/a | api. | |
| 20 | +| stagingHostRoot | Staging Root Host Name (e.g. mydomain-staging.com) - this must be the root of the chosen domain, not a subdomain. | n/a | null | |
| 21 | +| stagingFrontendSubdomain | Staging Frontend Host Name (e.g. app.) | n/a | app. | |
| 22 | +| stagingBackendSubdomain | Staging Backend Host Name (e.g. api.) | n/a | api. | |
| 23 | +| database | Database engine to use (postgres) | n/a | null | |
| 24 | +| cacheStore | Cache store to use (default: no cache) | n/a | null | |
| 25 | +| accountId | AWS Account ID | n/a | null | |
| 26 | +| randomSeed | Random seed that will be shared between projects to come up with deterministic resource names | n/a | null | |
| 27 | +| databaseName | n/a | n/a | null | |
| 28 | +| fileUploads | Enable file uploads using S3 and Cloudfront signed URLs? (Will require manual creation of a Cloudfront keypair in AWS) | n/a | true | |
| 29 | +| userAuth | Enable user management using Kratos and authentication using the Oathkeeper access proxy? | n/a | true | |
| 30 | +| CIVendor | Using either circleCI or github Actions to build / test your repository | n/a | circleci | |
| 31 | +| circleciApiKey | Circle CI API Key to setup your CI/CD for repositories | CIRCLECI_API_KEY | null | |
| 32 | +| billingEnabled | Provides a subscription example using stripe in backend and frontend repository, this includes the checkout feature so you must have a verified(with bank account setup) Stripe account to use these features | n/a | null | |
| 33 | +| stagingStripePublicApiKey | Staging Stripe public api key, used for frontend repository (Recommended: using sandbox key while setting up) | n/a | null | |
| 34 | +| stagingStripeSecretApiKey | Staging Stripe secret api key, used for backend repository (Recommended: using sandbox key while setting up) | n/a | null | |
| 35 | +| productionStripePublicApiKey | Production Stripe public api key, used for frontend repository (Recommended: using sandbox key while setting up) | n/a | null | |
| 36 | +| productionStripeSecretApiKey | Production Stripe secret api key, used for backend repository (Recommended: using sandbox key while setting up) | n/a | null | |
| 37 | + |
| 38 | +:::info |
| 39 | +Content generated by |
| 40 | +```shell |
| 41 | +## requires binary: `yq` |
| 42 | +which yqq >/dev/null || echo "Please install yq" |
| 43 | +cat <<EOF |
| 44 | +| Parameter | Label | Env-var(apply) | Default | |
| 45 | +|--|---|---|---| |
| 46 | +EOF |
| 47 | +cat zero-module.yml | yq -r '.parameters[] | "| " + .field + " | " + (.label//"n/a") + " | " + (.envVarName //"n/a") + " | " + ((.default)|tostring //"n/a") + " | "' |
| 48 | +``` |
| 49 | +::: |
0 commit comments