Provision Cloud Infra using Terraform

Terraform — Overview

Three simple steps to get started

Step 1: Install the Terraform plugin

Step 2: Install the IBM Cloud Provider plug-in for Terraform

Step 3: Configure the IBM provider plugin

Start provisioning!

data "ibm_resource_group" "group" {
name = "test"
}
resource "ibm_resource_instance" "resource_instance" {
name = "my-demo-terraform-test"
service = "ibmanalyticsengine"
plan = "standard-hourly"
location = "us-south"
resource_group_id = data.ibm_resource_group.group.id
tags = ["test"]
parameters = {
"hardware_config"= "default"
"num_compute_nodes"= "1"
"software_package"= "ae-1.2-hive-spark"
}
}

Step1 — terraform init

Step 2 — terraform plan

Step 3 — terraform apply

Step 4 — terraform show

Limitations

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store