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…


This content originally appeared on DEV Community and was authored by DEV Community

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 pic1

Then set up variables such as your access key and secrets.

image

  • Login to your enterprise
terraform login

Copy the API token and paste it in your terminal when prompted

image

  • Copy and add the given code block to your provider.tf file.
    image

  • Run the following Terraform commands:

terraform init
terraform plan
terraform apply

image

image

  • Head over to your AWS account, to view the created resources
    image

  • 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!


This content originally appeared on DEV Community and was authored by DEV Community


Print Share Comment Cite Upload Translate Updates
APA

DEV Community | Sciencx (2022-02-22T16:19:07+00:00) Building an AWS Auto Scaling Group (ASG) using Terraform Enterprise (contd). Retrieved from https://www.scien.cx/2022/02/22/building-an-aws-auto-scaling-group-asg-using-terraform-enterprise-contd/

MLA
" » Building an AWS Auto Scaling Group (ASG) using Terraform Enterprise (contd)." DEV Community | Sciencx - Tuesday February 22, 2022, https://www.scien.cx/2022/02/22/building-an-aws-auto-scaling-group-asg-using-terraform-enterprise-contd/
HARVARD
DEV Community | Sciencx Tuesday February 22, 2022 » Building an AWS Auto Scaling Group (ASG) using Terraform Enterprise (contd)., viewed ,<https://www.scien.cx/2022/02/22/building-an-aws-auto-scaling-group-asg-using-terraform-enterprise-contd/>
VANCOUVER
DEV Community | Sciencx - » Building an AWS Auto Scaling Group (ASG) using Terraform Enterprise (contd). [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/02/22/building-an-aws-auto-scaling-group-asg-using-terraform-enterprise-contd/
CHICAGO
" » Building an AWS Auto Scaling Group (ASG) using Terraform Enterprise (contd)." DEV Community | Sciencx - Accessed . https://www.scien.cx/2022/02/22/building-an-aws-auto-scaling-group-asg-using-terraform-enterprise-contd/
IEEE
" » Building an AWS Auto Scaling Group (ASG) using Terraform Enterprise (contd)." DEV Community | Sciencx [Online]. Available: https://www.scien.cx/2022/02/22/building-an-aws-auto-scaling-group-asg-using-terraform-enterprise-contd/. [Accessed: ]
rf:citation
» Building an AWS Auto Scaling Group (ASG) using Terraform Enterprise (contd) | DEV Community | Sciencx | https://www.scien.cx/2022/02/22/building-an-aws-auto-scaling-group-asg-using-terraform-enterprise-contd/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.