Upload a Terraform Module

Getting Started guide to import a Terraform module and install it. In this example, we will use the existing Cloudify GitHub repo with several Terraform modules. Import public_vm Terraoform module. The module provisions EC2 with EIP on AWS.

Prerequisites

Overview

In this guide we are going through following steps to upload a Terraform module and test it.

Step 1: Open the upload the Terraform module dialog

Go to the Blueprints page and from the Upload dropdown select the Upload from Terraform module. You should see the Create blueprint from the Terraform dialog.

Step 2: Provide a URL to the GitHub Terraform modules repository

Provide a URL to the GitHub repository containing the Terraform module.

For this example, we will be using Cloudify repository https://github.com/cloudify-community/tf-source.git

Define Terraform Module Path

Step 3: Select a module and autoupload variables

Terraform Module Variables autodetect

Step 4: Define the varialbes

Define Terraform Module Outputs

Step 5: Define the outputs and capabilities of the blueprint

The outputs of the Terraform module can be made available in the outputs and capabilities in Cloudify.

Step 6: Create the blueprint

Submit the dialog, errors discovered will appear in the dialog. After successful submission you will be forwarded to the create deployment modal.

Step 7: Create a Deployment and Test the blueprint

Step 8: Explote the deployment