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

  • You cannot do a resize operation for Analytics Engine. Changing the number of nodes will result in destroying the instance and creating a new one.
  • Also it is not possible to provide the advanced configuration option in the analytics engine template. Resource Instance type accepts only key-value pairs of primitive types.

--

--

--

Senior Consultant, IBM Cloud. Sharing titbits of epiphanies...

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

“Fyers and Java”

Why I’m choosing Flutter in 2022

Flow’s Improved Handling of Generic Types

A dam with mountains in the background

How you can use Azure Key Vault to store your credentials and secret keys and use in Databricks

Macrostrat Server Failure Postmortem

OceanDAO Round 14 is Live

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
Mrudula Madiraju

Mrudula Madiraju

Senior Consultant, IBM Cloud. Sharing titbits of epiphanies...

More from Medium

Playing with EKS Fargate

Differences between Cluster.dev and Terraform

Reduce AWS cost with a Graviton EKS cluster

Upgrading Terraform Helm charts to Helm 3 with K8s v1.22