Skip to content

Commit 5829ee0

Browse files
authored
docs: minor updates (#6)
* docs: minor updates Signed-off-by: Adam Geiger <[email protected]> * doc: updates Signed-off-by: Adam Geiger <[email protected]> --------- Signed-off-by: Adam Geiger <[email protected]>
1 parent e191f1f commit 5829ee0

File tree

7 files changed

+72
-31
lines changed

7 files changed

+72
-31
lines changed

app-install/main.tf

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ resource "null_resource" "application-install" {
2626

2727
provisioner "remote-exec" {
2828
inline = [
29+
"apt-get update",
2930
"apt-get install apache2 -y"
3031
]
3132
}

docs/index.html

+2
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,7 @@
8787

8888
<!-- <script src="//unpkg.com/docsify-pagination/dist/docsify-pagination.min.js"></script> -->
8989
<script src="js/docsify-pagination.min.js"></script>
90+
91+
<script src="js/docsify-copy-code.min.js"></script>
9092
</body>
9193
</html>

docs/js/docsify-copy-code.min.js

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/part2/20-custom-module.md

+11-5
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ To run the Terraform module in your local environment, follow these steps.
4343
2. Change to the `custom-slz` folder
4444
4545
```sh
46-
cd infra-to-app-with-slz/custom-slz
46+
cd infra-to-app-with-landing-zone/custom-slz
4747
```
4848
4949
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.
6464
export TF_VAR_ibmcloud_api_key=<your API key>
6565
```
6666
67-
6. Generate a plan. The plan lists of resources that are going to be created.
67+
6. Initialize Terraform.
6868
6969
```sh
70-
terraform plan --var=region=eu-gb -var=ssh_key="$(cat ./lab2-key-tf.pub)" -var=prefix=lab-prefix
70+
terraform init
7171
```
7272
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.
7480
7581
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.
7682
7783
```sh
78-
terraform apply --var=region=eu-gb -var=ssh_key="$(cat ./lab2-key-tf.pub)" -var=prefix=lab-prefix
84+
terraform apply -var=region=eu-gb -var=ssh_key="$(cat ./lab2-key-tf.pub)" -var=prefix=lab-prefix
7985
```

docs/part2/30-add-apache.md

+12-26
Original file line numberDiff line numberDiff line change
@@ -43,46 +43,32 @@ You can find the code for this step in the [app-install](https://github.com/IBM/
4343
}
4444
```
4545
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)).
4747
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)):
48+
1. Change to the `app-install` folder
4949
5050
```sh
51-
git clone https://github.com/IBM/infra-to-app-with-landing-zone
51+
cd infra-to-app-with-landing-zone/app-install
5252
```
5353
54-
2. Change to the `app-install` folder
54+
2. Initialize Terraform.
5555
5656
```sh
57-
cd infra-to-app-with-slz/app-install
57+
terraform init
5858
```
5959
60-
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.
6161
6262
```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>
6464
```
6565
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.
8369
84-
7. (Optional) Apply the changes.
70+
4. (Optional) Apply the changes.
8571
8672
```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>
8874
```

docs/prereqs.md

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Lab Prerequisites :white_check_mark:
2+
3+
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.
26+
- [Terraform](https://developer.hashicorp.com/terraform/tutorials/aws-get-started/install-cli)
27+
- Text editor of your choice
28+
- Web browser
29+
- Tools to generate SSH key
30+
- Linux and Mac come with ssh-keygen.
31+
- Windows users can use [PuTTYgen](https://www.ssh.com/academy/ssh/putty/windows/puttygen)
32+
33+
For more information, see [Generating an external SSH key](https://cloud.ibm.com/docs/vpc?topic=vpc-ssh-keys&interface=ui#generating-ssh-keys).
34+
- Optional: [IBM Cloud CLI](https://cloud.ibm.com/docs/cli?topic=cli-getting-started)
35+
36+
:information_source: **Note**: Participants in the TechXchange classroom will be provided with a development VM with the prerequisite software installed.

docs/sidebar.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
- [🌍 VPC Landing Zone](./about/20-vpc-landing-zone.md)
44
- [🏗️ Deployable architectures](./about/30-deployable-arch)
55
- [📚 IBM Cloud projects](./about/40-projects.md)
6+
- [📂 Lab Prerequisites](./prereqs.md)
67
- [📂 Lab 1 - End-to-end deployment](./part1/00-objectives.md)
78
- [🚀 Deploy the landing zone VSI pattern](./part1/10-project.md)
89
- [👤 Operator Access](./part1/20-operator-access.md)

0 commit comments

Comments
 (0)