Skip to content

Commit

Permalink
WS - Misc updates (#100)
Browse files Browse the repository at this point in the history
* Misc updates

* links and gh ref
  • Loading branch information
switch180 authored Nov 28, 2023
1 parent ad0b070 commit e57d9f2
Show file tree
Hide file tree
Showing 13 changed files with 27 additions and 28 deletions.
2 changes: 1 addition & 1 deletion content/authors.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: "Our editors and hall of fame."
weight: 100
---


:button[Fork these docs on GitHub]{href="https://github.com/aws-samples/amazon-dynamodb-labs"}

### Launch team

Expand Down
2 changes: 1 addition & 1 deletion content/design-patterns/setup/user-account.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ chapter: true
## Launch the CloudFormation stack
::alert[During the course of the lab, you will make DynamoDB tables that will incur a cost that could approach tens or hundreds of dollars per day. Ensure you delete the DynamoDB tables using the DynamoDB console, and make sure you delete the CloudFormation stack as soon as the lab is complete.]

1. Launch the CloudFormation template in US West 2 to deploy the resources in your account: [![CloudFormation](/static/images/cloudformation-launch-stack.png)](https://console.aws.amazon.com/cloudformation/home?region=us-west-2#/stacks/new?stackName=amazon-dynamodb-labs&templateURL=:param{key="design_patterns_s3_lab_yaml"})
1. Launch the CloudFormation template in US West 2 to deploy the resources in your account: [![CloudFormation](/static/images/cloudformation-launch-stack.png)](https://console.aws.amazon.com/cloudformation/home?region=us-west-2#/stacks/new?stackName=DynamoDBID&templateURL=:param{key="design_patterns_s3_lab_yaml"})
1. *Optionally, download [the YAML template](:param{key="design_patterns_s3_lab_yaml"}) and launch it your own way*

1. Click *Next* on the first dialog.
Expand Down
2 changes: 1 addition & 1 deletion content/game-player-data/setup/on-your-own.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ chapter: true
## Launch the CloudFormation stack
::alert[During the course of the lab, you will make DynamoDB tables that will incur a cost that could approach tens or hundreds of dollars per day. Ensure you delete the DynamoDB tables using the DynamoDB console, and make sure you delete the CloudFormation stack as soon as the lab is complete.]

1. Launch the CloudFormation template in US West 2 to deploy the resources in your account: [![CloudFormation](/static/images/cloudformation-launch-stack.png)](https://console.aws.amazon.com/cloudformation/home?region=us-west-2#/stacks/new?stackName=amazon-dynamodb-labs&templateURL=:param{key="design_patterns_s3_lab_yaml"})
1. Launch the CloudFormation template in US West 2 to deploy the resources in your account: [![CloudFormation](/static/images/cloudformation-launch-stack.png)](https://console.aws.amazon.com/cloudformation/home?region=us-west-2#/stacks/new?stackName=DynamoDBID&templateURL=:param{key="design_patterns_s3_lab_yaml"})
1. *Optionally, download [the YAML template](:param{key="design_patterns_s3_lab_yaml"}) and launch it your own way*

1. Click *Next* on the first dialog.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ Let's create the DMS resources for the workshop.
1. Go to IAM console > Roles > Create Role
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”
3. Under “Add permissions” use the search box to find the “AmazonDMSVPCManagementRole” policy and select it, then click “Next”
5. Under “Name, review, and create” add the role name as dms-vpc-role and click Create role
5. Under “Name, review, and create” add the role name as exactly `dms-vpc-role` and click Create role

::alert[_Do not continue unless you have made the IAM role._]

1. Launch the CloudFormation template in US West 2 to deploy the resources in your account: [![CloudFormation](/static/images/cloudformation-launch-stack.png)](https://console.aws.amazon.com/cloudformation/home?region=us-west-2#/stacks/new?stackName=amazon-dynamodb-labs&templateURL=:param{key="lhol_migration_dms_setup_yaml"})
1. Launch the CloudFormation template in US West 2 to deploy the resources in your account: [![CloudFormation](/static/images/cloudformation-launch-stack.png)](https://console.aws.amazon.com/cloudformation/home?region=us-west-2#/stacks/new?stackName=dynamodbmigration&templateURL=:param{key="lhol_migration_dms_setup_yaml"})
1. *Optionally, download [the YAML template](:param{key="lhol_migration_dms_setup_yaml"}) and launch it your own way*
9. Click Next
10. Confirm the Stack Name *dynamodbmigration* and keep the default parameters (modify if necessary)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ weight: 20
This chapter will create source environment on AWS as discussed during Exercise Overview.
The CloudFormation template used below will create Source VPC, EC2 hosting MySQL server, IMDb database and load IMDb public dataset into 6 tables.

1. Launch the CloudFormation template in US West 2 to deploy the resources in your account: [![CloudFormation](/static/images/cloudformation-launch-stack.png)](https://console.aws.amazon.com/cloudformation/home?region=us-west-2#/stacks/new?stackName=amazon-dynamodb-labs&templateURL=:param{key="lhol_migration_setup_yaml"})
1. Launch the CloudFormation template in US West 2 to deploy the resources in your account: [![CloudFormation](/static/images/cloudformation-launch-stack.png)](https://console.aws.amazon.com/cloudformation/home?region=us-west-2#/stacks/new?stackName=rdbmsmigration&templateURL=:param{key="lhol_migration_setup_yaml"})
1. *Optionally, download [the YAML template](:param{key="lhol_migration_setup_yaml"}) and launch it your own way*
4. Click Next
5. Confirm the Stack Name *rdbmsmigration* and update parameters if necessary (leave the default options if at all possible)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,5 @@ A new GSI is created on the movies table with new partion key: `nconst` (unique

![Final Deployment Architecture](/static/images/migration34.png)

Below small video demonstrates how all of these access pattern are evaluated against target DynamoDB model.
[Click here to view a video that demonstrates how all of these access pattern are evaluated against target DynamoDB model](https://www.amazondynamodblabs.com/static/rdbms-migration/migration36.mp4)

<video width=100% controls autoplay>
<source src="https://www.amazondynamodblabs.com/static/rdbms-migration/migration36.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
File renamed without changes.
31 changes: 16 additions & 15 deletions content/hands-on-labs/setup/create-tables.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ weight: 14

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).

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.
Copy the `create-table` commands below and paste them into your AWS Cloud9 command prompt, hitting enter on the last command to execute it. Then use the corresponding `wait` commands by pasting them into the same terminal and running them.

```bash
aws dynamodb create-table \
Expand All @@ -16,21 +16,17 @@ aws dynamodb create-table \
--key-schema \
AttributeName=Id,KeyType=HASH \
--provisioned-throughput \
ReadCapacityUnits=10,WriteCapacityUnits=5

aws dynamodb wait table-exists --table-name ProductCatalog

ReadCapacityUnits=10,WriteCapacityUnits=5 \
--query "TableDescription.TableStatus"
aws dynamodb create-table \
--table-name Forum \
--attribute-definitions \
AttributeName=Name,AttributeType=S \
--key-schema \
AttributeName=Name,KeyType=HASH \
--provisioned-throughput \
ReadCapacityUnits=10,WriteCapacityUnits=5

aws dynamodb wait table-exists --table-name Forum

ReadCapacityUnits=10,WriteCapacityUnits=5 \
--query "TableDescription.TableStatus"
aws dynamodb create-table \
--table-name Thread \
--attribute-definitions \
Expand All @@ -40,10 +36,8 @@ aws dynamodb create-table \
AttributeName=ForumName,KeyType=HASH \
AttributeName=Subject,KeyType=RANGE \
--provisioned-throughput \
ReadCapacityUnits=10,WriteCapacityUnits=5

aws dynamodb wait table-exists --table-name Thread

ReadCapacityUnits=10,WriteCapacityUnits=5 \
--query "TableDescription.TableStatus"
aws dynamodb create-table \
--table-name Reply \
--attribute-definitions \
Expand All @@ -53,7 +47,14 @@ aws dynamodb create-table \
AttributeName=Id,KeyType=HASH \
AttributeName=ReplyDateTime,KeyType=RANGE \
--provisioned-throughput \
ReadCapacityUnits=10,WriteCapacityUnits=5
ReadCapacityUnits=10,WriteCapacityUnits=5 \
--query "TableDescription.TableStatus"
```

Run the wait commands. When they all run and end, you can move on:
```bash
aws dynamodb wait table-exists --table-name ProductCatalog
aws dynamodb wait table-exists --table-name Forum
aws dynamodb wait table-exists --table-name Thread
aws dynamodb wait table-exists --table-name Reply
```
```
2 changes: 1 addition & 1 deletion content/hands-on-labs/setup/load-sample-data.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ weight: 15
Download and unzip the sample data:

```bash
wget https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/samples/sampledata.zip
curl -O https://amazon-dynamodb-labs.com/static/hands-on-labs/sampledata.zip

unzip sampledata.zip
```
Expand Down
2 changes: 1 addition & 1 deletion content/hands-on-labs/setup/setup.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ chapter: true
## Launch the CloudFormation stack
::alert[During the course of the lab, you will make DynamoDB tables that will incur a cost that could approach tens or hundreds of dollars per day. Ensure you delete the DynamoDB tables using the DynamoDB console, and make sure you delete the CloudFormation stack as soon as the lab is complete.]

1. Launch the CloudFormation template in US West 2 to deploy the resources in your account: [![CloudFormation](/static/images/cloudformation-launch-stack.png)](https://console.aws.amazon.com/cloudformation/home?region=us-west-2#/stacks/new?stackName=amazon-dynamodb-labs&templateURL=:param{key="design_patterns_s3_lab_yaml"})
1. Launch the CloudFormation template in US West 2 to deploy the resources in your account: [![CloudFormation](/static/images/cloudformation-launch-stack.png)](https://console.aws.amazon.com/cloudformation/home?region=us-west-2#/stacks/new?stackName=DynamoDBID&templateURL=:param{key="design_patterns_s3_lab_yaml"})
1. *Optionally, download [the YAML template](:param{key="design_patterns_s3_lab_yaml"}) and launch it your own way*

1. Click *Next* on the first dialog.
Expand Down
2 changes: 2 additions & 0 deletions content/index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ If you're brand new to DynamoDB with no experience, you may want to begin with *

Dive into the content:
::children{depth=1}

:button[Fork these docs on GitHub]{href="https://github.com/aws-samples/amazon-dynamodb-labs"}
Binary file modified static/images/hands-on-labs/setup/cloud9_setup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/images/hands-on-labs/setup/load_data.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e57d9f2

Please sign in to comment.