summaryrefslogtreecommitdiff
path: root/README.md
blob: 0ce31a7ab6f68ed75ddb70f2f2c70f0274e3aed0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Terraform

## TODO's

* Input variables which services (ECS) to start.
* Cloudwatch monitoring with E-Mail alert of the services.

## Manual steps

### Create `fluxdb_password` 

Go to AWS Secrets manager manually and create it!

### Domain Domain TLS certificate

Create DNS zone and TLS certificate in AWS manually. E.g. create `cool.buetow.org` zone and a TLS certificate for `cool.buetow.org,*.cool.buetow.org`. Add the Certificate ARN to the `org-buetow-base`'s output as `zone_certificate_arn`. 

## Create base environment

Then, create VPC, subnets and EFS in `org-buetow-base`.

## Use the bastion to set up some EFS subdirs

Then, create subdirectories in EFS, using `org-buetow-bastion`. E.g., have something like this created:

```shell
[paul@earth]~/git/terraform/org-buetow-bastion% ssh ec2-user@bastion.aws.buetow.org find /mnt
/mnt
/mnt/efs
/mnt/efs/ec2
/mnt/efs/ec2/nextcloud
/mnt/efs/ecs
/mnt/efs/ecs/anki-sync-server
/mnt/efs/ecs/vaultwarden
/mnt/efs/ecs/wallabag
/mnt/efs/ecs/wallabag/data/db
/mnt/efs/ecs/wallabag/data/assets
/mnt/efs/ecs/audiobookshelf
```

Also, manually activate daily EFS backup via AWS console.

## Set up Application loadbalancer

In `org-buetow-elb`

## Now set up Fargate/ECS

In `org-buetow-ecs`