|
| 1 | +--- |
| 2 | +title: Module Parameters |
| 3 | +sidebar_label: Module Parameters |
| 4 | +sidebar_position: 4 |
| 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 | +| awsProfile | Profile to use with terraform AWS provider | AWS_PROFILE | null | |
| 14 | +| accessKeyId | AWS AccessKeyId | AWS_ACCESS_KEY_ID | null | |
| 15 | +| secretAccessKey | AWS SecretAccessKey | AWS_SECRET_ACCESS_KEY | null | |
| 16 | +| githubAccessToken | Github API Key to setup your repository and optionally CI/CD | GITHUB_ACCESS_TOKEN | null | |
| 17 | +| region | Select AWS Region | n/a | null | |
| 18 | +| productionHostRoot | Production Root Host Name (e.g. mydomain.com) - this must be the root of the chosen domain, not a subdomain. | n/a | null | |
| 19 | +| productionFrontendSubdomain | Production Frontend Host Name (e.g. app.) | n/a | app. | |
| 20 | +| productionBackendSubdomain | Production Backend Host Name (e.g. api.) | n/a | api. | |
| 21 | +| 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 | |
| 22 | +| stagingFrontendSubdomain | Staging Frontend Host Name (e.g. app.) | n/a | app. | |
| 23 | +| stagingBackendSubdomain | Staging Backend Host Name (e.g. api.) | n/a | api. | |
| 24 | +| CIVendor | Using either circleCI or github Actions to build / test your repository | n/a | circleci | |
| 25 | +| circleciApiKey | Circle CI API Key to setup your CI/CD for repositories | CIRCLECI_API_KEY | null | |
| 26 | +| database | Database engine to use (postgres) | n/a | null | |
| 27 | +| cacheStore | Cache store to use (default: no cache) | n/a | null | |
| 28 | +| loggingType | Application logging to configure. Cloudwatch is cheaper with a more limited feature set. Elasticsearch + Kibana will set up more infrastructure but enable a much richer logging search and visualization experience. | n/a | null | |
| 29 | +| metricsType | Additional application metrics method to configure. Metrics are available through CloudWatch, but choosing prometheus will install Prometheus and Grafana, for a richer metrics experience. No additional infrastructure is required, but a number of prometheus pods will need to exist in the cluster, utilizing some resources. | n/a | null | |
| 30 | +| notificationServiceEnabled | Install the Zero Notification Service in your cluster? | n/a | true | |
| 31 | +| sendgridApiKey | API key to setup email integration (optional: leave blank to opt-out of Sendgrid setup) | n/a | null | |
| 32 | +| notificationServiceSlackApiKey | API key of your Slack bot if you want to use Slack with the Zero Notification Service. Leave blank if not applicable. | n/a | null | |
| 33 | +| accountId | AWS Account ID | n/a | null | |
| 34 | +| randomSeed | Random seed that will be shared between projects to come up with deterministic resource names | n/a | null | |
| 35 | +| fileUploads | Enable file uploads using S3 and Cloudfront signed URLs? (Will require manual creation of a Cloudfront keypair in AWS) | n/a | true | |
| 36 | +| userAuth | Enable user management using Kratos and authentication using the Oathkeeper access proxy? | n/a | true | |
| 37 | + |
| 38 | + |
| 39 | +:::info |
| 40 | +Content generated by |
| 41 | +```shell |
| 42 | +## requires binary: `yq` |
| 43 | +which yqq >/dev/null || echo "Please install yq" |
| 44 | +cat <<EOF |
| 45 | +| Parameter | Label | Env-var(apply) | Default | |
| 46 | +|--|---|---|---| |
| 47 | +EOF |
| 48 | +cat zero-module.yml | yq -r '.parameters[] | "| " + .field + " | " + (.label//"n/a") + " | " + (.envVarName //"n/a") + " | " + ((.default)|tostring //"n/a") + " | "' |
| 49 | +``` |
| 50 | +::: |
0 commit comments