Skip to content

Commit 1cacb03

Browse files
authored
LHOL New AWS console theme, fixed guide, mentioned c9 instance (#88)
1 parent f4adb25 commit 1cacb03

23 files changed

+35
-27
lines changed

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ table performance or availability.
1818

1919
![OD Backup 1](/images/hands-on-labs/backup/od_backup_1.png)
2020

21-
2. Make sure that ProductCatalog is the source table name. Enter
22-
ProductCatalogBackup for the backup name. Choose **Create backup** to
23-
create the backup.
21+
2. Make sure that ProductCatalog is the source table name. Choose **Customize settings** and then select **Backup with DynamoDB**. Enter the name `ProductCatalogBackup`. Click **Create backup** to create the backup.
2422

2523
![OD Backup 2](/images/hands-on-labs/backup/od_backup_2.png)
2624

@@ -36,19 +34,19 @@ While the backup is being created, the backup status is set to
3634

3735
![OD Backup 3](/images/hands-on-labs/backup/od_backup_3.png)
3836

39-
2. Enter ProductCatalogODRestore as the new table name. Confirm the
37+
2. Enter `ProductCatalogODRestore` as the new table name. Confirm the
4038
backup name and other backup details. Choose **Restore**
4139
to start the restore process. The table that is being restored is
4240
shown with the status **Creating**. After the restore process is
43-
finished, the status of the ProductCatalogODRestore table changes to
41+
finished, the status of the `ProductCatalogODRestore` table changes to
4442
**Active**.
4543

4644
![OD Backup 4](/images/hands-on-labs/backup/od_backup_4.png)
4745

4846
### To delete a backup
4947

5048
The following procedure shows how to use the console to delete the
51-
ProductCatalogBackup
49+
ProductCatalogBackup. You can only delete the backup after the table `ProductCatalogODRestore` is done restoring.
5250

5351
1. Go to the [DynamoDB Console](https://console.aws.amazon.com/dynamodbv2/) and click on *Tables* from the side menu
5452
1. Choose ProductCatalog table.

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,11 @@ Now assign the resource to backup plan. When you assign a resource to a
6666
backup plan, that resource is backed up automatically according to the
6767
backup plan.
6868

69-
7. Click on **Assign resources** under **Backup plans**.
69+
7. Give Resource a assignment name. Choose the default role. Select **Include specific resource types** under "1. Define resource selection"
7070

7171
![Scheduled Backup 8](/images/hands-on-labs/backup/sched_backup_8.png)
7272

73-
8. Give Resource assignment name. Choose default IAM role. Choose our
74-
DynamoDB table in the assign resources section. Click on **Assign
75-
resources**.
73+
8. Under "2. Select specific resource types" select the resource type **DynamoDB** in the drop down. Click choose resources, uncheck All, and select the **ProductCatalog** table. Click **Assign resources**
7674

7775
![Scheduled Backup 9](/images/hands-on-labs/backup/sched_backup_9.png)
7876

@@ -93,11 +91,11 @@ protected and is available to be restored using AWS Backup.
9391

9492
![Scheduled Backup 11](/images/hands-on-labs/backup/sched_backup_11.png)
9593

96-
2. Choose the recovery point ID of the resource. Click on **Restore**.
94+
2. Choose the recovery point ID of the resource. Click on **Restore**. _Note: If you do not see a recovery point, you can click "Create an on-demand backup" and complete the backup. For the purposes of this lab, you need a completed backup to continue, and you may not want to wait for your backup plan's scheduled backup._
9795

9896
![Scheduled Backup 12](/images/hands-on-labs/backup/sched_backup_12.png)
9997

100-
3. Provide new DynamoDB table name. Choose default role and click on
98+
3. Provide new DynamoDB table name. Leave all the settings on the defaults and click
10199
**Restore backup**
102100

103101
![Scheduled Backup 13](/images/hands-on-labs/backup/sched_backup_13.png)

content/hands-on-labs/explore-cli/cli-gsi.en.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,13 @@ aws dynamodb update-table \
5555
It can take a little time while DynamoDB creates the GSI and backfills data from the table into the index. We can watch this from the command line and wait until the IndexStatus goes `ACTIVE`:
5656

5757
```bash
58-
aws dynamodb describe-table --table-name Reply | grep IndexStatus
58+
#Get initial status
59+
aws dynamodb describe-table --table-name Reply --query "Table.GlobalSecondaryIndexes[0].IndexStatus"
60+
#Watch the status with the wait command (use Ctrl+C to exit):
61+
watch -n 5 "aws dynamodb describe-table --table-name Reply --query "Table.GlobalSecondaryIndexes[0].IndexStatus""
5962
```
6063

61-
Once the GSI has become `ACTIVE`, continue on to the exercise below.
64+
Once the GSI has become `ACTIVE`, continue on to the exercise below. Use `Ctrl+C` to exit the watch command.
6265

6366
## Exercise
6467

content/hands-on-labs/explore-cli/cli-scan.en.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ aws dynamodb scan \
2222

2323
Note than in the response we see these lines:
2424

25-
```json
25+
```
2626
"Count": 3,
2727
"ScannedCount": 4,
2828
```
@@ -129,7 +129,7 @@ aws dynamodb scan \
129129

130130
When you run this command you receive the following error:
131131

132-
```
132+
```text
133133
An error occurred (ValidationException) when calling the Scan operation: Invalid FilterExpression: Attribute name is a reserved keyword; reserved keyword: Views
134134
```
135135

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 scroll down to see the Items preview pane.
1212

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ We can see that there are two Reply items in the `DynamoDB Thread 1` thread.
3333

3434
![Item Explorer Query Reply 1](/images/hands-on-labs/explore-console/console_item_explorer_query_reply_1.png)
3535

36-
Since the Sort Key in this table is a timestamp, we could specify a Key Condition Expression to return only the replies in a thread that were posted after a certain time by adding a sort key condition where ReplyDateTime is More than `2015-09-21` and clicking **Run**.
36+
Since the Sort Key in this table is a timestamp, we could specify a Key Condition Expression to return only the replies in a thread that were posted after a certain time by adding a sort key condition where `ReplyDateTime` is More than `2015-09-21` and clicking **Run**.
3737

3838
![Item Explorer Query Reply 2](/images/hands-on-labs/explore-console/console_item_explorer_query_reply_2.png)
3939

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ 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-
You will need to click **Add new attribute** a couple of times to make some new String attributes, and then fill in the following data, then click **Create Item**.
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.
1616

1717
```text
1818
"Id" : "Amazon DynamoDB#DynamoDB Thread 2",

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

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ _Make sure the DMS instance is Available before you continue. If it is not Avail
3535
| Password | Value of DbMasterPassword added as parameter during Configure MySQL Environment |
3636

3737
![Final Deployment Architecture](/images/migration22.jpg)
38-
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.
38+
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**.
3939
![Final Deployment Architecture](/images/migration23.jpg)
4040

4141
3. Create the target endpoint. Repeat all steps to create the target endpoint with the following parameter values:
@@ -45,7 +45,7 @@ _Make sure the DMS instance is Available before you continue. If it is not Avail
4545
| Endpoint type | Target endpoint |
4646
| Endpoint identifier | dynamodb-endpoint |
4747
| Target engine | Amazon DynamoDB |
48-
| Service access role ARN | CloudFormation template has created new role with full access to Amazon DynamoDB. Copy Role ARN from [dynamodb-access](https://console.aws.amazon.com/iam/home#/roles/dynamodb-access) role |
48+
| Service access role ARN | CloudFormation template has created new role with full access to Amazon DynamoDB. Copy Role ARN from [dynamodb-access](https://us-east-1.console.aws.amazon.com/iamv2/home#/roles/details/dynamodb-access?section=permissions) role |
4949

5050
![Final Deployment Architecture](/images/migration24.jpg)
5151
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.
@@ -65,7 +65,7 @@ Still in the AWS DMS console, go to Database migration tasks and click the Creat
6565
| Migration type | Migrate existing data |
6666
| Task settings: Editing mode | Wizard |
6767
| Task settings: Target table preparation mode | Do nothing |
68-
| Task settings: Enable CloudWatch logs | Checked |
68+
| Task settings: Turn on CloudWatch logs | Checked |
6969
| Table mappings: Editing mode | Select JSON editor option and follow the instructions after below screenshots |
7070

7171
![Final Deployment Architecture](/images/migration25.jpg)
@@ -369,14 +369,20 @@ Replace the string "REPLACE THIS STRING BY MOVIES LIST" with list of movies copi
369369
- [Third Task - historical-migration03](/files/hands-on-labs/Task_3.json)
370370
{{% /expand%}}
371371

372-
### Monitor the tasks
372+
### Monitor and the restart/resume the tasks
373373
The replication task for historical migration will start moving data from MySQL imdb.movies view, title_akas and title_ratings to DynamoDB table will start in a few minutes.
374-
If you are loading selective records based on the list above, it may take 5-10 minutes to complete all three tasks. For full loading below are the statistics.
374+
If you are loading selective records based on the list above, it may take 5-10 minutes to complete all three tasks.
375375

376+
If you were to run this exercise again but do a full load, the load times would be as follows:
376377
- historical-migration01 task will migrate 800K+ records and normally takes 2-3 Hrs.
377378
- historical-migration02 task will migrate 747K+ records and normally takes 2-3 Hrs.
378-
- historical-migration03 task will migrate 79K+ records and normally takes 10-15 Minutes.
379-
You can track the status of data loading under the Table statistics of the migration task. Once loading is in progress, feel free to move to the next section of the exercise.
379+
- historical-migration03 task will migrate 79K+ records and normally takes 10-15 Minutes.
380+
381+
382+
You can track the status of data loading under the Table statistics of the migration task. Once loading is in progress, feel free to move to the next section of the exercise.
380383
![Final Deployment Architecture](/images/migration27.jpg)
381384

385+
{{% notice warning %}}
386+
_Make sure all tasks are running or complete before you continue. If a task says **Ready**, check its box and choose "Restart/Resume" under the Actions button to start the task._
387+
{{% /notice %}}
382388

content/hands-on-labs/setup/prerequisites.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ You can use your own account, or an account provided through Event Engine as par
1515

1616
#### Using an account provided through Event Engine
1717

18-
If you are running this workshop as part of an Event Engine lab, please log into the console using [this link](https://dashboard.eventengine.run/) and enter the hash provided to you as part of the workshop.
18+
If you are running this workshop as part of an Event Engine lab, please log into the console using [this link](https://dashboard.eventengine.run/) and enter the hash provided to you as part of the workshop. In event engine, the Cloud9 instance should be made in your account. Please open the "AWS Cloud9" section of the AWS Management Console in the correct region and look for a lab instance called "DynamoDBC9".
1919

2020
#### Using your own AWS account
2121

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ date = 2021-04-21T07:39:31-05:00
55
weight = 12
66
+++
77

8+
{{% notice note %}}
9+
_These instructions are for users running the lab in their own AWS account. If you are part of a workshop, check the AWS Cloud9 console in the correct region for a running environment named "DynamoDBC9" before you follow these instructions. You may not need to launch the template._
10+
{{% /notice %}}
811

912
Download this [Cloud Formation Template](/files/hands-on-labs/dynamodb-labs-vpc.yaml) to your local machine.
1013

0 commit comments

Comments
 (0)