Skip to content

Commit 1b9325a

Browse files
authored
LHOL Misc updates (#96)
* Fixing order of commands * Update create-tables.en.md * add :q to exit * Explore items * Fix JSON * Update schedule-backup.md * Update migration-chapter02-1.en.md * Update table
1 parent d87de47 commit 1b9325a

File tree

7 files changed

+24
-12
lines changed

7 files changed

+24
-12
lines changed

content/hands-on-labs/backups/schedule-backup.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Now, we need to create backup plan.
4141
**frequency** of every 12 hours, daily, weekly, or monthly. Choose a
4242
**backup window**. Backup window consists of the time that the
4343
backup window begins and the duration of the window in hours. Backup
44-
jobs are started within this window. I am configuring backup at 8 PM
44+
jobs are started within this window. I am configuring backup at 6 PM
4545
UTC start within 1 hour and completes within 4 hours.
4646

4747
Further, select **lifecycle**. The lifecycle defines when a backup is
@@ -80,7 +80,7 @@ backup plan.
8080
### Restore a Backup:
8181

8282
After a resource has been backed up at least once, it is considered
83-
protected and is available to be restored using AWS Backup.
83+
protected and is available to be restored using AWS Backup. In your account a backup may not yet be available. If this is the case, review the screenshots in lieu of doing this in your own account.
8484

8585
1. On the **Protected resources** page, you can explore details of the
8686
resources that are backed up in AWS Backup. Choose our DynamoDB

content/hands-on-labs/explore-cli/cli-read-data.en.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ DynamoDB provides the [Scan API](https://docs.aws.amazon.com/amazondynamodb/late
1111
```bash
1212
aws dynamodb scan --table-name ProductCatalog
1313
```
14+
Use the arrow keys to move up and down through the *Scan* response. **Type `:q` and hit enter to exit the viewer** once you're done reviewing the response.
1415

1516
Data input and output in the CLI utilizes the DynamoDB JSON format, which is described in the [DynamoDB Low-Level API](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.LowLevelAPI.html) section of the Developer Guide.
1617

content/hands-on-labs/explore-console/console-read-data.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ First, go to the [DynamoDB Console](https://console.aws.amazon.com/dynamodbv2/)
88

99
![Console Pick Tables](/images/hands-on-labs/explore-console/dynamodb_pick_tables.png)
1010

11-
Next, choose the `ProductCatalog` table and scroll down to see the Items preview pane.
11+
Next, choose the `ProductCatalog` table and click `Explore table items` on the top right to view the items.
1212

1313
![Console ProductCatalog Items Preview](/images/hands-on-labs/explore-console/console_productcatalog_preview.png)
1414

content/hands-on-labs/explore-console/console-writing-data.en.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,15 @@ Let's say we wanted to insert a new item into the *Reply* table from the console
1212

1313
![Console Create Item 1](/images/hands-on-labs/explore-console/console_create_item_1.png)
1414

15-
Click ` JSON view`, ensure `View DynamoDB JSON` is deselected, and paste the following attributes, and then click **Create Item** to insert the new item.
15+
Click `JSON view`, ensure `View DynamoDB JSON` is deselected, paste the following JSON, and then click **Create Item** to insert the new item.
1616

17-
```text
17+
```json
18+
{
1819
"Id" : "Amazon DynamoDB#DynamoDB Thread 2",
1920
"ReplyDateTime" : "2021-04-27T17:47:30Z",
2021
"Message" : "DynamoDB Thread 2 Reply 3 text",
2122
"PostedBy" : "User C"
23+
}
2224
```
2325

2426
![Console Create Item 2](/images/hands-on-labs/explore-console/console_create_item_2.png)

content/hands-on-labs/rdbms-migration/migration-chapter02-1.en.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ Let's create the DMS resources for the workshop.
1212
2. Under “Select trusted entity” select “AWS service” then under “Use case” select “DMS” from the pulldown list and click the “DMS” radio button. Then click “Next”
1313
3. Under “Add permissions” use the search box to find the “AmazonDMSVPCManagementRole” policy and select it, then click “Next”
1414
5. Under “Name, review, and create” add the role name as dms-vpc-role and click Create role
15+
16+
{{% notice note %}}
17+
_Do not continue unless you have made the IAM role.**
18+
{{% /notice %}}
19+
1520
1. Launch the CloudFormation template in US East 1 to deploy the resources in your account:
1621
<a href="https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/new?stackName=dynamodbmigration&templateURL={{% siteparam "lhol_migration_dms_setup_yaml" %}}" target="_blank"><img src="/images/cloudformation-launch-stack.png" alt="CloudFormation"/></a>
1722
*Optionally, download [the YAML template]({{% siteparam "lhol_migration_dms_setup_yaml" %}}) and launch it your own way in the [CloudFormation Console](https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/create/template)*
@@ -25,4 +30,4 @@ Let's create the DMS resources for the workshop.
2530

2631
{{% notice note %}}
2732
_Do not wait for the stack to complete creation._ **Please continue the lab and allow it to create in the background.**
28-
{{% /notice %}}
33+
{{% /notice %}}

content/hands-on-labs/rdbms-migration/migration-chapter05.en.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ _Make sure the DMS instance is Available before you continue. If it is not Avail
2828
| Endpoint type | Source endpoint |
2929
| Endpoint identifier | mysql-endpoint |
3030
| Source engine | MySQL |
31+
| Access to endpoint database | Select the "Provide access information manually" radio button |
3132
| Server name | From the [EC2 dashboard](https://console.aws.amazon.com/ec2/v2/home?region=us-east-1#Instances:instanceState=running), select MySQL-Instance and copy Public IPv4 DNS |
3233
| Port | 3306 |
3334
| SSL mode | none |
@@ -38,7 +39,7 @@ _Make sure the DMS instance is Available before you continue. If it is not Avail
3839
Open Test endpoint connection (optional) section, then in the VPC drop-down select DMS-VPC and click the Run test button to verify that your endpoint configuration is valid. The test will run for a minute and you should see a successful message in the Status column. Click on the Create endpoint button to create the endpoint. If you see a connection error, re-type the username and password to ensure no mistakes were made. Further, ensure you provided the IPv4 DNS name ending in amazonaws.com in the field **Server name**.
3940
![Final Deployment Architecture](/images/migration23.jpg)
4041

41-
3. Create the target endpoint. Repeat all steps to create the target endpoint with the following parameter values:
42+
4. Create the target endpoint. Repeat all steps to create the target endpoint with the following parameter values:
4243

4344
| Parameter | Value |
4445
| ----------------------- | :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |

content/hands-on-labs/setup/create-tables.en.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ weight = 14
66

77
We will now create tables (and in a subsequent step load data into them) based on [sample data from the DynamoDB Developer Guide](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/SampleData.html).
88

9-
Copy the four `create-table` commands below along with the `wait` commands and paste them in your AWS Cloud9 command prompt. Each command waits for the table to finish creating.
9+
Copy the `create-table` commands below along with their corresponding `wait` commands and paste them in your AWS Cloud9 command prompt. Each command waits for the table to finish creating. If you get an error from the wait command, you may have submitted it too fast; re-run the wait command in this case.
1010

1111
```bash
1212
aws dynamodb create-table \
@@ -18,6 +18,8 @@ aws dynamodb create-table \
1818
--provisioned-throughput \
1919
ReadCapacityUnits=10,WriteCapacityUnits=5
2020

21+
aws dynamodb wait table-exists --table-name ProductCatalog
22+
2123
aws dynamodb create-table \
2224
--table-name Forum \
2325
--attribute-definitions \
@@ -27,6 +29,8 @@ aws dynamodb create-table \
2729
--provisioned-throughput \
2830
ReadCapacityUnits=10,WriteCapacityUnits=5
2931

32+
aws dynamodb wait table-exists --table-name Forum
33+
3034
aws dynamodb create-table \
3135
--table-name Thread \
3236
--attribute-definitions \
@@ -38,6 +42,8 @@ aws dynamodb create-table \
3842
--provisioned-throughput \
3943
ReadCapacityUnits=10,WriteCapacityUnits=5
4044

45+
aws dynamodb wait table-exists --table-name Thread
46+
4147
aws dynamodb create-table \
4248
--table-name Reply \
4349
--attribute-definitions \
@@ -49,8 +55,5 @@ aws dynamodb create-table \
4955
--provisioned-throughput \
5056
ReadCapacityUnits=10,WriteCapacityUnits=5
5157

52-
aws dynamodb wait table-exists --table-name ProductCatalog && \
53-
aws dynamodb wait table-exists --table-name Reply && \
54-
aws dynamodb wait table-exists --table-name Forum && \
55-
aws dynamodb wait table-exists --table-name Thread
58+
aws dynamodb wait table-exists --table-name Reply
5659
```

0 commit comments

Comments
 (0)