- Clone this repo to a machine that has Terraform and Terragrunt installed.
- Set your Harness credentials. Run
export TF_VAR_harness_api_token=<your Harness access token>
.
NOTE Be sure not to add your PAT to .tfvars! - Set your Harness account info. Run
export TF_VAR_account_id=<your Harness account ID>
. Your account ID can be found in the web URL when accessing the Harness app. - Run
terragrunt run-all apply
and confirm when prompted. Terraform will provision the Harness GitOps agent, install the agent in the cluster, create other Harness resources, and deploy the guestbook application. - Run
kubectl get pods -n dev
and verify the podinfo application was deployed.
- Run
terragrunt run-all destroy
from the gitops-terraform-onboarding/ directory. Confirm when prompted.