Create Infrastructure using Terraform

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.

Adopt Template

Trigger

Use this to initiate a workflow based on time, events or call.

Runs every 1 day

User Approval

Use this to get approval from stakeholder to continue the workflow.

Fulfils organizational obligation(if any) before taking any action on an AWS resource.

HTTP

Invoke external http(s) endpoint

Call http endpoint and get response
Adopt Template

Workflow Template

Trigger

Use this to initiate a workflow based on time, events or call.

Runs every 1 day

User Approval

Use this to get approval from stakeholder to continue the workflow.

Fulfils organizational obligation(if any) before taking any action on an AWS resource.

HTTP

Invoke external http(s) endpoint

Call http endpoint and get response

Create A Template

Thank you! Your submission has been received!
Oops! Something went wrong while submitting. Please Try Again.

Request for a template

You can publish templates created by you on this platform.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Similar Templates

CloudFront distributions

CloudFront
None

CloudFront distributions (Inventory)

AutoScaling Groups

None
AWS Auto Scaling

AutoScaling Groups (Inventory)

Route53 hosted zones

None

Route53 hosted zones (Inventory)

ElastiCache Clusters

None
ElastiCache

ElastiCache Clusters (Inventory)