@@ -15,29 +15,12 @@ Terraform is an open-source infrastructure as a code software tool created by Ha
1515
1616We need to [ install the terraform] ( https://learn.hashicorp.com/tutorials/terraform/install-cli ) and the IBM's module.
1717
18- ## IBM Module
19-
20- To install IBM's module paste the following code into your terraform script then run ``` terraform init ``` .
21-
22- ```
23- terraform {
24- required_providers {
25- ibm = {
26- source = "IBM-Cloud/ibm"
27- version = "1.24.0"
28- }
29- }
30- }
31-
32- provider "ibm" {
33- # Configuration options
34- }
35- ```
3618
3719## Terraform Script
3820
3921```
40- #### MODULE
22+ # IBM's module.
23+ # It will download the module when run "terraform init"
4124
4225 terraform {
4326 required_providers {
@@ -51,13 +34,17 @@ We need to [install the terraform](https://learn.hashicorp.com/tutorials/terrafo
5134
5235 provider "ibm" {}
5336
54- #### RESOURCE GROUP
37+
38+ # This will create a resource group
39+ # It separates the resources used inside IBM's cloud
5540
5641 data "ibm_resource_group" "group" {
5742 name = "GROUP_NAME"
5843 }
5944
60- #### Watson machine learning resource
45+
46+ # This part will deploy a Watson machine learning resource
47+
6148 resource "ibm_resource_instance" "wml" {
6249 name = "WML_NAME"
6350 service = "pm-20"
@@ -68,8 +55,9 @@ We need to [install the terraform](https://learn.hashicorp.com/tutorials/terrafo
6855
6956 }
7057
71- #### IBM Cloud Object Storage
72-
58+
59+ # This deploys a IBM Cloud Object Storage resource
60+
7361 resource "ibm_resource_instance" "cos" {
7462 name = "COS_NAME"
7563 service = "cloud-object-storage"
@@ -88,6 +76,8 @@ This script will create:
8876- Watson Machine Learning resource
8977- IBM COS instance
9078
79+ To install IBM's module run ``` terraform init ``` .
80+
9181## Authentication
9282
9383 Before you continue, you will need to create an ** API Key** and assign it to an environment variable called ** IBMCLOUD_API_KEY** .
0 commit comments