Skip to content

Commit

Permalink
updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dfry committed Jul 26, 2022
1 parent a587d47 commit b670d19
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions examples/acme/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ You need to create the backend.hcl file by using the iac-aws-backend repo and se

Copy the backend.hcl file into the same dir as the primary main.tf file.

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.
Edit the main.tf file to set the version of the bootstrap iac in the module call, 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.

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.

Expand All @@ -20,15 +20,19 @@ iac_group_name = ....

After you finish modifying the settings in main.tf you will need to run the following commands:

1. terraform init --backend-config=backend.hcl
2. terraform apply -var-file=backend.hcl
3. cd post-config
4. terraform init --backend-config=../backend.hcl
5. terraform apply -var-file=../backend.hcl
1. export AWS_PROFILE=profilename
2. terraform init --backend-config=backend.hcl
3. terraform apply -var-file=backend.hcl
4. cd post-config
5. terraform init --backend-config=../backend.hcl
6. terraform apply -var-file=../backend.hcl

Now you can log in to gitlab.tenancy.domain using root and the result of running this command from the main directory:

terraform output gitlab_root_pw

Use google authenticator or other appropriate app to configure MFA on gitlab for the root user.

To destroy, go to main dir and type:
1. terraform init --backend-config=backend.hcl
2. terraform destroy -var-file=backend.hcl

0 comments on commit b670d19

Please sign in to comment.