blob: 5cdf3e2f7f60cf39bfd2cbef50faf0149df1dc1d [file] [log] [blame] [view] [edit]
# Prerequisites
Before configuring, setting up and deploying a gerrit stack on AWS, there are some one-off operations
that are required. These include key creations, certificates, docker registries etc.
The prerequisites to run this stack are:
* a registered and correctly configured domain in
[Route53](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/getting-started.html)
* Make sure ECR repositories exist
```bash
aws ecr create-repository --repository-name aws-gerrit/gerrit
aws ecr create-repository --repository-name aws-gerrit/git-ssh
aws ecr create-repository --repository-name aws-gerrit/git-daemon
aws ecr create-repository --repository-name aws-gerrit/prometheus
aws ecr create-repository --repository-name aws-gerrit/grafana
aws ecr create-repository --repository-name aws-gerrit/git-gc
```
* to upload required credentials to AWS Secret Manager execute the [secrets configuration documentation steps](Secrets.md).
* an SSL Certificate in AWS Certificate Manager (you can find more information on
how to create and handle certificates in AWS [here](https://aws.amazon.com/certificate-manager/getting-started/)
* An S3 bucket is required in order to store cloudformation templates that are used to build the stacks.
You must edit the `common.env` file and set the `TEMPLATE_BUCKET_NAME`. The bucket will then be created
the first time you run a deployment. Note that at the moment the bucket accessibility is public.