Usecase Universe

A collective of use cases for DevOps teams

Browse a variety of 300+ predefined templates to automate all your AWS actions

Create Template
Solutions
All Categories

Other

24 Times Used
22 MAY 2019
Create Infrastructure using Terraform
Other
Other

This use case automates the deployment of infrastructure through your Terraform scripts. Terraform is an Infrastructure-as-code service that lets you deploy multiple servers with various configurations through reusable code, so you don’t have to deal with the cloud CLI. TotalCloud workflows can integrate with Terraform to automate this deployment through & through, with additional customizations in the middle. The resources being created depends on the code you have in your Terraform account. For this workflow, EC2 servers are being deployed. 


Benefits

 

  • Automate deployment of templates
  • Customize the resources being used for the deployment
  • Add Parameters to your deployment


Workflow Brief


This workflow is integrated with Terraform. It triggers the Terraform Run API to create resources in your AWS account. The instructions on resources to be created will be pulled from the code that is present in your Terraform workspace. Read the detailed workflow docs here.


Process


There are only three nodes to this workflow. The trigger for this workflow will be scheduled for every day, which depends on your needs. The second node is a user approval node that’s set up to alert you on the EC2 server being deployed. The workflow will proceed only if you approve it. The third node is the HTTP node where you connect your Terraform endpoint URL with the workflow and authorize yourself. Once you add the API, you can run the workflow and the code associated with it.