Skip to content

Commit

Permalink
improved the configuration steps
Browse files Browse the repository at this point in the history
  • Loading branch information
codinja1188 committed Mar 27, 2024
1 parent faae3cd commit f9059c7
Show file tree
Hide file tree
Showing 2 changed files with 117 additions and 87 deletions.
183 changes: 96 additions & 87 deletions .terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,27 @@ terraform init

This should download seven modules into a hidden directory `.terraform`.

In case of any failures with Apple M1 chips, here are the steps to fix them.

```sh
brew install kreuzwerker/taps/m1-terraform-provider-helper
m1-terraform-provider-helper activate # (In case you have not activated the helper)
m1-terraform-provider-helper install hashicorp/template -v v2.2.0 # Compile and Install
export TF_HELPER_LOG=debug # To enable more debugs
export TF_HELPER_REQUEST_TIMEOUT=20
m1-terraform-provider-helper install hashicorp/google -v v3.53.0 --custom-build-command="gofmt -s -w ./tools.go && make fmt && make build"
m1-terraform-provider-helper install hashicorp/google -v v3.53.0
```

Run Terraform initialization again

```sh
rm -rf .terraform
rm -f .terraform.lock.hcl
terraform init -upgrade
terraform providers lock -platform=linux_amd64 # Anycase want to update for different platforms.
```

## Modify your variables

There are many variables which can be set to customize your install within `variables.tf`. The default variables to bring up a 6 node Anthos cluster with an HA Control Plane and three worker nodes using Equinix Metal's [c3.small.x86](https://metal.equinix.com/product/servers/). Change each default variable at your own risk.
Expand Down

0 comments on commit f9059c7

Please sign in to comment.