You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/part2/20-custom-module.md
+11-5
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ To run the Terraform module in your local environment, follow these steps.
43
43
2. Change to the `custom-slz` folder
44
44
45
45
```sh
46
-
cd infra-to-app-with-slz/custom-slz
46
+
cd infra-to-app-with-landing-zone/custom-slz
47
47
```
48
48
49
49
3. Create a Terraform workspace. Replace `lab` with your own name in the following command.
@@ -64,16 +64,22 @@ To run the Terraform module in your local environment, follow these steps.
64
64
export TF_VAR_ibmcloud_api_key=<your API key>
65
65
```
66
66
67
-
6. Generate a plan. The plan lists of resources that are going to be created.
67
+
6. Initialize Terraform.
68
68
69
69
```sh
70
-
terraform plan --var=region=eu-gb -var=ssh_key="$(cat ./lab2-key-tf.pub)" -var=prefix=lab-prefix
70
+
terraform init
71
71
```
72
72
73
-
7. (Optional) Apply the changes.
73
+
7. Generate a plan. The plan lists of resources that are going to be created.
74
+
75
+
```sh
76
+
terraform plan -var=region=eu-gb -var=ssh_key="$(cat ./lab2-key-tf.pub)" -var=prefix=lab-prefix
77
+
```
78
+
79
+
8. (Optional) Apply the changes.
74
80
75
81
This step might take up to 15 minutes to complete. You can skip it if you're short on time. The automation is run through the catalog onboarding in a later step of this lab.
Copy file name to clipboardExpand all lines: docs/part2/30-add-apache.md
+12-26
Original file line number
Diff line number
Diff line change
@@ -43,46 +43,32 @@ You can find the code for this step in the [app-install](https://github.com/IBM/
43
43
}
44
44
```
45
45
46
-
To run the Terraform module in your local environment, follow these steps.
46
+
To run the Terraform module in your local environment, follow these steps. These steps assume you ran the steps in ([Executing the landing zone with a JSON definition](./part2/20-custom-module)).
47
47
48
-
1. Clone the repository locally with the following Git command, unless you cloned it in the previous step ([Executing the landing zone with a JSON definition](#/./part2/20-custom-module?id=executing-the-landing-zone-with-a-json-definition)):
3. Create a Terraform workspace. Replace `lab` with your own name in the following command.
60
+
3. Generate a plan. The plan lists of resources that are going to be created.
61
61
62
62
```sh
63
-
terraform workspace new lab
63
+
terraform plan -var=region=eu-gb -var=ssh_private_key="$(cat ../custom-slz/lab2-key-tf)" -var=floating_ip_address=<The floating point IP address of the jump box> -var=vpc_id=<ID of the workload VPC>
64
64
```
65
65
66
-
Note: If you receive the error `Workspace "..." already exists`, issue the command:
67
-
68
-
```sh
69
-
terraform workspace select lab
70
-
```
71
-
72
-
4. Export the IBM Cloud API key that the Terraform will use for the execution. For instructions, see [Managing user API keys](https://cloud.ibm.com/docs/account?topic=account-userapikey&interface=ui).
73
-
74
-
```sh
75
-
export TF_VAR_ibmcloud_api_key=<your API key>
76
-
```
77
-
78
-
6. Generate a plan. The plan lists of resources that are going to be created.
79
-
80
-
```sh
81
-
terraform plan --var=region=eu-gb -var=ssh_private_key="$(cat ./lab2-key-tf)" -var=floating_ip_address=<The floating point IP address of the jump box> -var=vpc_id=<ID of the workload VPC>
82
-
```
66
+
:information_source: **Note**:
67
+
- `The floating point IP address of the jump box` value can be retrieved by accessing the [virtual server instances for VPC](https://cloud.ibm.com/vpc-ext/compute/vs) in the console. Please make sure the corresponding region that you provisioned your resources is selected in the dropdown.
68
+
- `ID of the workload VPC` value can be retrieved by accessing the workload VPC in the [Virtual private clouds](https://cloud.ibm.com/vpc-ext/network/vpcs) list in the console. Please make sure the corresponding region that you provisioned your resources is selected in the dropdown.
83
69
84
-
7. (Optional) Apply the changes.
70
+
4. (Optional) Apply the changes.
85
71
86
72
```sh
87
-
terraform apply --var=region=eu-gb -var=ssh_private_key="$(cat ./lab2-key-tf)" -var=floating_ip_address=<The floating point IP address of the jump box> -var=vpc_id=<ID of the workload VPC>
73
+
terraform apply -var=region=eu-gb -var=ssh_private_key="$(cat ./lab2-key-tf)" -var=floating_ip_address=<The floating point IP address of the jump box> -var=vpc_id=<ID of the workload VPC>
Make sure that you meet the following prerequisites before you begin the lab.
4
+
5
+
- IBM Cloud
6
+
- An IBM Cloud Pay-Go or Subscription account
7
+
- An IBMid
8
+
9
+
:information_source:**Note**: Participants in the TechXchange classroom will be provided with credentials to access an IBM Cloud account during the lab.
10
+
-[API key with the following permissions](https://cloud.ibm.com/docs/account?topic=account-userapikey&interface=ui#create_user_key)
11
+
12
+
| Service | Resources | Role |
13
+
| -------- | ------- | ------- |
14
+
| IBM Cloud Projects | Aldministrator |
15
+
| Activity Tracker event routing | All | Editor |
16
+
| Transit Gateway | All | Editor, Manager |
17
+
| Schematics | All | Editor, Manager |
18
+
| Key Protect | All | Editor, KeyPurge, Manager |
19
+
| Cloud Object Storage | All | Editor, Manager |
20
+
| VPC Infrastructure Services | All | Editor, Manager |
21
+
| Resource group only | All resource group in the account | Viewer, Editor, Administrator|
22
+
23
+
:exclamation:**Important**: Participants in the TechXchange classroom will need to create an API key for their provided credentials. Please save the generated API key for later use.
24
+
25
+
- A development computer with the following software.
:information_source:**Note**: Participants in the TechXchange classroom will be provided with a development VM with the prerequisite software installed.
0 commit comments