blob: f389bd70675556383e0648df019634d3c293fc3f (
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
|
# Terraform
## TODO's
* Nextcloud and Bastion: Auto re-create in different AZ on failure.
* Backup EFS, don't let `terraform destroy` erease all my data!
* Input variables, for configuring different service hosts.
* Enable IPv6
* Use Basion host to connect to other EC2 instances (internal DNS?)
## Create base environment
First create VPC, subnets and EFS in `org-buetow-base`
## Use the helper to set up some EFS subdirs
Then, create subdirectories in EFS, using `org-buetow-helper`. E.g., have something like this created:
```shell
[paul@earth]~/git/terraform/org-buetow-helper% ssh ec2-user@helper.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
```
## Set up Application loadbalancer
In `org-buetow-elb`
## Now set up Fargate/ECS
In `org-buetow-ecs`
## Nextcloud
In `org-buetow-nextcloud`
|