blob: e9173d0420e6e535d5f1c84fc8cffd3110a4ab6c (
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
|
# Terraform
## TODO's
* Collect uprecords for my EC2 instances
* Contact and Calendar sync via ECS (migrate from Nextcloud)
* Input variables, for configuring different service hosts.
* Backup EFS, don't let `terraform destroy` erease all my data! Or create Backup
## Create base environment
First 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
```
## Set up Application loadbalancer
In `org-buetow-elb`
## Now set up Fargate/ECS
In `org-buetow-ecs`
## Nextcloud
In `org-buetow-nextcloud`
|