This repository houses a Terraform module required for setting up Otterize in your infrastructure using Terraform, on GCP IAM.
To use this Terraform module, see the Terraform Registry: https://registry.terraform.io/modules/otterize/config-connector-setup/gcp/latest
- Allow the terraform script to access gcloud credentials: Terraform Authentication
- Point the default kubeconfig to the cluster you want to manage:
gcloud container clusters get-credentials <cluster-name>
- Add the following code to your Terraform script:
module "otterize-gcp-iam" { source = "otterize/otterize-gcp-iam/gcp" version = "0.1.0" # insert the 5 required variables here }
- Clone the repository
- Run
terraform init
- On changing files run
terraform fmt
+terraform validate
- To test the changes run
terraform apply -var-file=terraform.tfvars
- To destroy the changes run
terraform destroy -var-file=terraform.tfvars