You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/acme/README.md
+31-2Lines changed: 31 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,34 @@
1
1
# How To Configure Bootstrap
2
2
3
-
For a working example see the [acme example](examples/acme/main.tf). One thing to note is the `source` setting needs to reference the Git URL rather than a path.
3
+
For a working example see the [acme example](examples/acme/main.tf).
4
+
5
+
You can run the follwing commands inside the docker container produced by the release of this repo. Run the image with the following command (which will mount your ~/.aws/credentials into the docker container):
6
+
7
+
docker run -it -v ~/.aws:/root/.aws ghcr.io/mojaloop/iac-aws-bootstrap:currentver
8
+
9
+
You need to create the backend.hcl file by using the iac-aws-backend repo and setting the appropriate variables when prompted.
10
+
11
+
Copy the backend.hcl file into the same dir as the primary main.tf file.
12
+
13
+
Edit the main.tf file to set the appropriate domain variable (base domain) and the tenancy variable. This will create a zone for tenancy.domain so you will have hosts with FQDNs such as gitlab.tenancy.domain and wireguard.tenancy.domain, etc.
14
+
15
+
You can also change the number of zones to use if you wish to have the switch create worker nodes in different zones and have the load balancers balance accross those different zones. Or leave it at 1 and everything will be in the same zone.
16
+
17
+
You need to create a group that has admin access and that group must be set here:
18
+
19
+
iac_group_name = ....
20
+
21
+
After you finish modifying the settings in main.tf you will need to run the following commands:
22
+
23
+
1. terraform init --backend-config=backend.hcl
24
+
2. terraform apply -var-file=backend.hcl
25
+
3. cd post-config
26
+
4. terraform init --backend-config=../backend.hcl
27
+
5. terraform apply -var-file=../backend.hcl
28
+
29
+
Now you can log in to gitlab.tenancy.domain using root and the result of running this command from the main directory:
30
+
31
+
terraform output gitlab_root_pw
32
+
33
+
Use google authenticator or other appropriate app to configure MFA on gitlab for the root user.
4
34
5
-
The Git URL to use is `git::[email protected]:mojaloop/iac-aws-bootstrap.git?ref=v0.1.0`
0 commit comments