In the last article, we looked at how to push Terraform code through GithHub to Terraform enterprise, setting up our infrastructure.
The first part of this article can be viewed here.
This article highlights how to use CLI to push Terraform codes to Terraform enterprise to set up needed infrastructure.
- Create a new workspace and select the run type as CLI-driven runs
Then set up variables such as your access key and secrets.
- Login to your enterprise
Copy the API token and paste it in your terminal when prompted
terraform init terraform plan terraform apply
It is good practice to delete all provisioned services, to avoid incurring costs when using cloud providers.
Thanks for your time.