An Interest In:
Web News this Week
- April 19, 2024
- April 18, 2024
- April 17, 2024
- April 16, 2024
- April 15, 2024
- April 14, 2024
- April 13, 2024
February 22, 2022 04:19 pm GMT
Original Link: https://dev.to/mbaoma/building-an-aws-auto-scaling-group-asg-using-terraform-enterprise-contd-20f7
Building an AWS Auto Scaling Group (ASG) using Terraform Enterprise (contd)
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.
Triggering the Run
- 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
terraform login
Copy the API token and paste it in your terminal when prompted
terraform initterraform planterraform apply
Head over to your AWS account, to view the created resources
It is good practice to delete all provisioned services, to avoid incurring costs when using cloud providers.
terraform destroy
Useful Resources
Thanks for your time.
Feel free to connect with me via: LinkedIn, Twitter
Yoroshko!
Original Link: https://dev.to/mbaoma/building-an-aws-auto-scaling-group-asg-using-terraform-enterprise-contd-20f7
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To