Skip to content

Commit 5074404

Browse files
committed
LSQL - modifications
1 parent 8edc41d commit 5074404

File tree

3 files changed

+28
-36
lines changed

3 files changed

+28
-36
lines changed

content/relational-migration/schema refactoring/index4.en.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ so that it could be included in a script and automated.
1414

1515
3. Run:
1616
```bash
17-
python3 mysql_desc_ddb.py Customers
17+
python mysql_desc_ddb.py Customers
1818
```
1919
The script should output a table definition in JSON format, like we saw within the web app.
2020

2121
3. Next, let's pipe the output to a new file so we can more easily review it:
2222
```bash
23-
python3 mysql_desc_ddb.py Customers > Customers.json
23+
python mysql_desc_ddb.py Customers > Customers.json
2424
```
2525

2626
4. Within the left nav, find ```Customers.json``` and double click to open it in the editor.

content/relational-migration/schema refactoring/index5.en.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Now, let's generate a DynamoDB table definition based on this view's output.
4848

4949
8. Run:
5050
```bash
51-
python3 mysql_desc_ddb.py vCustOrders
51+
python mysql_desc_ddb.py vCustOrders
5252
```
5353

5454
The script returns a new table definition based on the name of the view, with the first
@@ -59,7 +59,7 @@ first TWO column names as the Partition Key and Sort Key.
5959

6060
9. Run:
6161
```bash
62-
python3 mysql_desc_ddb.py vCustOrders 2
62+
python mysql_desc_ddb.py vCustOrders 2
6363
```
6464
Now we can see that the DynamoDB table's Key Schema includes both columns.
6565

content/relational-migration/setup/index1.en.md

Lines changed: 24 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2,65 +2,57 @@
22
title : "Dev Environment"
33
weight : 16
44
---
5+
### Login to AWS Workshop Studio Portal
56

6-
[AWS Cloud9](https://aws.amazon.com/cloud9/) is a cloud-based integrated development environment (IDE) that lets you write, run, and debug code with just a browser. AWS Cloud9 includes a code editor, debugger, and terminal. It also comes prepackaged with essential tools for popular programming languages and the AWS Command Line Interface (CLI) preinstalled so that you don’t have to install files or configure your laptop for this lab. Your AWS Cloud9 environment will have access to the same AWS resources as the user with which you signed in to the AWS Management Console.
7+
On the event dashboard, click on **Open AWS console** to federate into AWS Management Console in a new tab. On the same page, click **Get started** to open the workshop instructions.
8+
![Event dashboard](/static/images/common/workshop-studio-01.png)
79

8-
### To set up your AWS Cloud9 development environment:
10+
In addition to the AWS console you should open your Visual Studio code server, by clicking in the `VSCodeServerURL` parameter, available from the "Event Outputs" section. When prompted for a password use the value from `VSCodeServerPassword`.
911

10-
1. Choose **Services** at the top of the page, and then choose **Cloud9** under **Developer Tools**.
12+
![Event dashboard](/static/images/common/workshop-studio-02.png)
1113

12-
2. There would be an environment ready to use under **Your environments**.
14+
During the first 60 seconds, the environment will automatically update extensions and plugins. Any startup notification can be safely dismissed.
15+
16+
![VS Code Setup](/static/images/common/common-vs-code-01.png)
1317

14-
3. Click on **Open IDE**, your IDE should open with a welcome note.
18+
If a terminal is not available at the bottom left side of your screen, please open a new one like the following picture indicates.
1519

16-
You should now see your AWS Cloud9 environment. You need to be familiar with the three areas of the AWS Cloud9 console shown in the following screenshot:
20+
![VS Code Setup](/static/images/common/common-vs-code-02.png)
1721

18-
![Cloud9 Environment](/static/images/zetl-cloud9-environment.png)
22+
Then run the command `aws sts get-caller-identity` just to verify that your AWS credentials have been properly configured.
1923

20-
- **File explorer**: On the left side of the IDE, the file explorer shows a list of the files in your directory.
21-
22-
- **File editor**: On the upper right area of the IDE, the file editor is where you view and edit files that you’ve selected in the file explorer.
23-
24-
- **Terminal**: On the lower right area of the IDE, this is where you run commands to execute code samples.
24+
![VS Code Setup](/static/images/common/common-vs-code-03.png)
2525

2626

2727
From within the terminal:
2828

29-
2. Run the command ```aws sts get-caller-identity``` just to verify that your AWS credentials have been properly configured.
29+
To keep our python files and dependencies organized lets create a python virtual environment:
30+
31+
```bash
32+
python -m venv .venv
33+
source .venv/bin/activate
34+
```
3035

31-
3. Clone the repository containing the Chalice code and migration scripts. Run:
36+
Clone the repository containing the Chalice code and migration scripts. Run:
3237

3338
```bash
34-
cd ~/environment
39+
cd /home/participant/workshop/LSQL
3540
git clone https://github.com/aws-samples/aws-dynamodb-examples.git
3641
cd aws-dynamodb-examples
37-
git checkout :param{key="lsql_git_commit"}
38-
```
39-
40-
41-
*This checkout command ensures you are using a specific, tested version of the repository*
42-
43-
```bash
4442
cd workshops/relational-migration
4543
```
4644

47-
4. Next, run this to install three components: Boto3 (AWS SDK for Python), Chalice, and the MySQL connector for Python.
45+
Next, run this to install three components: Boto3 (AWS SDK for Python), Chalice, and the MySQL connector for Python.
4846

4947
```bash
5048
sudo pip3 install chalice mysql-connector-python
5149
```
5250

53-
5. From the left navigation panel, locate our project folder by
54-
clicking into ```aws-dynamodb-examples / workshops / relational-migration```
51+
From the left navigation panel, locate our project folder by clicking into ```LSQL / aws-dynamodb-examples / workshops / relational-migration```
5552

56-
6. Find the gear icon near the top of the left nav panel, and click "show hidden files" .
57-
You may now see a folder called ```.chalice``` under the main **relational-migration** folder.
58-
Within this folder is the ```config.json``` file that holds the MySQL connection details.
59-
A script will automatically update this file in the next step.
53+
Navigate to the `.chalice` folder under the main **relational-migration** folder. Within this folder is the ```config.json``` file that holds the MySQL connection details. A script will automatically update this file in the next step.
6054

61-
7. Return to the terminal prompt window. Run this file which
62-
uses AWS CLI commands to find the MySQL host's IP address and S3 bucket name, then sets them as
63-
environment variables, while also updating the Chalice config.json file:
55+
Return to the terminal prompt window. Run this file which, uses AWS CLI commands to find the MySQL host's IP address and S3 bucket name, then sets them as environment variables, while also updating the Chalice config.json file:
6456

6557
```bash
6658
source ./setenv.sh

0 commit comments

Comments
 (0)