Skip to content

Commit 0ce9c5e

Browse files
authored
Merge pull request #132 from tebanieo/cloud9-update
Cloud9 update - Remove the Cloud9 References - Part 1
2 parents 050ef63 + efe11da commit 0ce9c5e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+3743
-680
lines changed

content/authors.en.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,15 @@ weight: 100
1313
1. Sean Shriver ([switch180](https://github.com/switch180)) - Ported the whole lab to amazon-dynamodb-labs.com with a custom Hugo theme. Made the "bullet-proof" CloudFormation template for the lab. Updated the hands on lab to Python3
1414
1. Daniel Yoder ([danielsyoder](https://github.com/danielsyoder)) - The brains behind amazon-dynamodb-labs.com and the co-creator of the design scenarios
1515

16+
### 2025 additions
17+
Removing Cloud9 due to End of Life from all the workshops (October 2025):
18+
1. Esteban Serna ([@tebanieo](https://github.com/tebanieo)) - Primary author, and merger
19+
20+
Database modernizer workshop was released in August 2025:
21+
1. Esteban Serna ([@tebanieo](https://github.com/tebanieo)) - Primary author, and merger
22+
2. John Terhune - ([@terhunej](https://github.com/terhunej)) - Editor, tech reviewer.
23+
3. Sean Shriver - ([@switch180](https://github.com/switch180)) - Tech reviewer
24+
1625
### 2024 additions
1726
The Generative AI workshop LBED was released in early 2024:
1827
1. John Terhune - ([@terhunej](https://github.com/terhunej)) - Primary author

content/design-patterns/ex1capacity/Step2.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ weight: 3
77

88
Now that you have created the table, you can load some sample data into the table by running the following Python script.
99
```bash
10-
cd /home/ubuntu/workshop
10+
cd /home/participant/workshop/LADV
1111
python load_logfile.py logfile ./data/logfile_small1.csv
1212
```
1313
The parameters in the preceding command: 1) Table name = `logfile` 2) File name = `logfile_small1.csv`

content/design-patterns/setup/Step1.en.md

Lines changed: 27 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,30 @@ date: 2019-12-02T10:07:45-08:00
44
weight: 10
55
---
66

7-
1. Once you've gained access to the AWS Management Console for the lab, double check the region is correct and the role name **WSParticipantRole** appears on the top right of the console.
8-
1. In the services search bar, search for **Systems Manager** and click on it to open the AWS Systems Manager section of the AWS Management Console.
9-
1. In the AWS Systems Manager console, locate the menu in the left, identify the section **Node Management** and select **Session Manager** from the list.
10-
1. Choose **Start session** to launch a shell session.
11-
1. Click the radio button to select the EC2 instance for the lab. If you see no instance, wait a few minutes and then click refresh. Wait until an ec2 instance with name of `DynamoDBC9` is available before continuing. Select the instance.
12-
1. Click the **Start Session** button (This action will open a new tab in your browser with a new black shell).
13-
1. In the new black shell, switch to the ubuntu account by running `sudo su - ubuntu`
14-
```bash
15-
sudo su - ubuntu
16-
```
17-
1. run `shopt login_shell` and be sure it says `login_shell on` and then change into the workshop directory.
18-
```bash
19-
#Verify login_shell is 'on'
20-
shopt login_shell
21-
#Change into the workshop directory
22-
cd ~/workshop/
23-
```
24-
25-
26-
The output of your commands in the Session Manager session should look like the following:
27-
```bash
28-
$ sudo su - ubuntu
29-
:~ $ #Verify login_shell is 'on'
30-
shopt login_shell
31-
#Change into the workshop directory
32-
cd ~/workshop/
33-
login_shell on
34-
:~/workshop $
35-
```
7+
During the first 60 seconds, the environment will automatically update extensions and plugins. Any startup notification can be safely dismissed.
8+
9+
![VS Code Setup](/static/images/common/common-vs-code-01.png)
10+
11+
If a terminal is not available at the bottom left side of your screen, please open a new one like the following picture indicates.
12+
13+
![VS Code Setup](/static/images/common/common-vs-code-02.png)
14+
15+
Then run the command `aws sts get-caller-identity` just to verify that your AWS credentials have been properly configured.
16+
17+
![VS Code Setup](/static/images/common/common-vs-code-03.png)
18+
19+
Change your directory to use LADV and browse the content:
20+
21+
```shell
22+
cd LADV
23+
```
24+
25+
```shell
26+
participant:~/workshop/LADV$ ls
27+
data iam-trust-relationship.json load_logfile_parallel.py query_responsecode.py scan_logfile_simple.py
28+
ddbreplica_lambda.py lab_config.py query_city_dept.py requirements.txt
29+
gsi_city_dept.json load_employees.py query_employees.py scan_for_managers.py
30+
gsi_manager.json load_invoice.py query_index_invoiceandbilling.py scan_for_managers_gsi.py
31+
iam-role-policy.json load_logfile.py query_invoiceandbilling.py scan_logfile_parallel.py
32+
participant:~/workshop/LADV$
33+
```

content/design-patterns/setup/Step2.en.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ python --version
1414
Output:
1515

1616
```plain
17-
Python 3.10.12
17+
Python 3.13.9
1818
```
1919
**Note: The major and minor version of Python may vary from what you see above**
2020

@@ -29,7 +29,7 @@ Sample output:
2929

3030
```bash
3131
#Note that your linux kernel version may differ from the example.
32-
aws-cli/2.13.26 Python/3.11.6 Linux/6.2.0-1013-aws exe/x86_64.ubuntu.22 prompt/off
32+
aws-cli/2.31.24 Python/3.13.7 Linux/6.1.155-176.282.amzn2023.aarch64 exe/aarch64.amzn.2023
3333
```
3434

3535
::alert[_Make sure you have AWS CLI version 2.x or higher and python 3.10 or higher before proceeding. If you do not have these versions, you may have difficultly successfully completing the lab._]

content/design-patterns/setup/Step4.en.md

Lines changed: 26 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -7,43 +7,38 @@ weight: 40
77
On the EC2 instance, go to the workshop folder and run the ls command:
88

99
```bash
10-
cd /home/ubuntu/workshop
10+
participant:~/workshop/LADV$ cd /home/participant/workshop/LADV
1111
ls -l .
1212
```
1313

1414
The following list indicates the folder structure and the files that will be used during the workshop:
1515

1616
```bash
17-
.
18-
├── data
19-
│ ├── employees.csv
20-
│ ├── invoice-data2.csv
21-
│ ├── invoice-data.csv
22-
│ ├── logfile_medium1.csv
23-
│ ├── logfile_medium2.csv
24-
│ ├── logfile_small1.csv
25-
│ └── logfile_stream.csv
26-
├── ddbreplica_lambda.py
27-
├── ddb-replication-role-arn.txt
28-
├── gsi_city_dept.json
29-
├── gsi_manager.json
30-
├── iam-role-policy.json
31-
├── iam-trust-relationship.json
32-
├── lab_config.py
33-
├── load_employees.py
34-
├── load_invoice.py
35-
├── load_logfile_parallel.py
36-
├── load_logfile.py
37-
├── query_city_dept.py
38-
├── query_employees.py
39-
├── query_index_invoiceandbilling.py
40-
├── query_invoiceandbilling.py
41-
├── query_responsecode.py
42-
├── requirements.txt
43-
├── scan_for_managers_gsi.py
44-
├── scan_for_managers.py
45-
├── scan_logfile_parallel.py
46-
└── scan_logfile_simple.py
17+
18+
participant:~/workshop/LADV$ ls -l .
19+
total 80
20+
drwxr-xr-x. 2 participant participant 182 Oct 29 16:30 data
21+
-rw-r--r--. 1 participant participant 1275 Sep 10 22:37 ddbreplica_lambda.py
22+
-rw-r--r--. 1 participant participant 438 Sep 10 22:37 gsi_city_dept.json
23+
-rw-r--r--. 1 participant participant 438 Sep 10 22:37 gsi_manager.json
24+
-rw-r--r--. 1 participant participant 865 Sep 10 22:37 iam-role-policy.json
25+
-rw-r--r--. 1 participant participant 205 Sep 10 22:37 iam-trust-relationship.json
26+
-rw-r--r--. 1 participant participant 94 Sep 10 22:37 lab_config.py
27+
-rw-r--r--. 1 participant participant 3845 Sep 10 22:37 load_employees.py
28+
-rw-r--r--. 1 participant participant 2198 Sep 10 22:37 load_invoice.py
29+
-rw-r--r--. 1 participant participant 1763 Sep 10 22:37 load_logfile.py
30+
-rw-r--r--. 1 participant participant 3101 Sep 10 22:37 load_logfile_parallel.py
31+
-rw-r--r--. 1 participant participant 1466 Sep 10 22:37 query_city_dept.py
32+
-rw-r--r--. 1 participant participant 1071 Sep 10 22:37 query_employees.py
33+
-rw-r--r--. 1 participant participant 2547 Sep 10 22:37 query_index_invoiceandbilling.py
34+
-rw-r--r--. 1 participant participant 2341 Sep 10 22:37 query_invoiceandbilling.py
35+
-rw-r--r--. 1 participant participant 1887 Sep 10 22:37 query_responsecode.py
36+
-rw-r--r--. 1 participant participant 32 Sep 10 22:37 requirements.txt
37+
-rw-r--r--. 1 participant participant 1287 Sep 10 22:37 scan_for_managers.py
38+
-rw-r--r--. 1 participant participant 1157 Sep 10 22:37 scan_for_managers_gsi.py
39+
-rw-r--r--. 1 participant participant 2019 Sep 10 22:37 scan_logfile_parallel.py
40+
-rw-r--r--. 1 participant participant 1278 Sep 10 22:37 scan_logfile_simple.py
41+
participant:~/workshop/LADV$
4742
```
4843

4944
Python code:

content/design-patterns/setup/Step5.en.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@ The Server Logs file has the following structure:
2424
- bytessent (number)
2525
- useragent (string)
2626

27-
To view a sample record in the file, execute:
28-
```bash
29-
head -n1 ./data/logfile_small1.csv
30-
```
27+
To view a sample record in the file, just click on the files over the left side pannel:
28+
29+
![Small file](/static/images/ladv-small-file.png)
30+
31+
3132
Sample log record:
3233
```csv
3334
1,66.249.67.3,2017-07-20,20,GMT-0700,GET,"/gallery/main.php?g2_controller=exif.SwitchDetailMode&g2_mode=detailed&g2_return=%2Fgallery%2Fmain.php%3Fg2_itemId%3D15741&g2_returnName=photo",302,5,"Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
@@ -47,9 +48,7 @@ The Employees data file has the following structure:
4748
- is a manager (string), 1 for manager employees, non-existent for others
4849

4950
To view a sample record in the file, execute:
50-
```bash
51-
head -n1 ./data/employees.csv
52-
```
51+
5352
Sample employee record:
5453
```csv
5554
1,Onfroi Greeno,Systems Administrator,Operation,Portland,OR,1992-03-31,2014-10-24,Application Support Analyst,2014-04-12

content/design-patterns/setup/aws-ws-event.en.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Start: At an AWS Hosted Event"
33
date: 2019-12-02T07:05:12-08:00
4-
weight: 3
4+
weight: 4
55
chapter: true
66
---
77

@@ -26,6 +26,10 @@ chapter: true
2626
7. Select on **I agree with the Terms and Conditions** on the bottom of the next page and click **Join event** to continue to the event dashboard.
2727

2828
8. 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.
29-
![Event dashboard](/static/images/aws-ws-event5.png)
29+
![Event dashboard](/static/images/common/workshop-studio-01.png)
3030

31-
9. Now that you are connected continue on to: :link[Step 1]{href="/design-patterns/setup/Step1"}.
31+
9. 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`.
32+
33+
![Event dashboard](/static/images/common/workshop-studio-02.png)
34+
35+
10. Continue with the steps as listed in the section :link[Launch Visual Studio Code]{href="/design-patterns/setup/step1"}.

content/design-patterns/setup/user-account.en.md

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,30 @@ weight: 5
55
chapter: true
66
---
77

8-
::alert[These setup instructions are identitical for LADV, LHOL, LMR, LBED, and LGME - all of which use the same Cloud9 template. Only complete this section once, and only if you're running it on your own account.]{type="warning"}
98

10-
::alert[Only complete this section if you are running the workshop on your own. If you are at an AWS hosted event (such as re\:Invent, Immersion Day, etc), go to :link[At an AWS hosted Event]{href="/design-patterns/setup/aws-ws-event"}]
9+
::alert[These setup instructions are identitical for LADV, LHOL, LBED, LMR, and LGME - all of which use the same Visual Studio Code template. Only complete this section once, and only if you're running it on your own account.]{type="warning"}
10+
11+
::alert[Only complete this section if you are running the workshop on your own. If you are at an AWS hosted event (such as re\:Invent, Immersion Day, etc), go to :link[At an AWS hosted Event]{href="/hands-on-labs/setup/aws-ws-event"}]
1112

1213
## Launch the CloudFormation stack
1314
::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.]
1415

15-
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"})
16-
1. *Optionally, download [the YAML template](:param{key="design_patterns_s3_lab_yaml"}) and launch it your own way*
16+
1. **[Deprecated]** - 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"})
17+
18+
1. *Optionally, download [the YAML template](https://github.com/aws-samples/aws-dynamodb-examples/blob/master/workshops/modernizer/modernizer-db.yaml) from our GitHub repository and launch it your own way*
1719

1820
1. Click *Next* on the first dialog.
1921

20-
1. In the Parameters section, note the *Timeout* is set to zero. This means the Cloud9 instance will not sleep; you may want to change this manually to a value such as 60 to protect against unexpected charges if you forget to delete the stack at the end.
21-
Leave the *WorkshopZIP* parameter unchanged and click *Next*
22-
![CloudFormation parameters](/static/images/awsconsole1.png)
22+
1. Provide a CloudFormation stack name.
23+
24+
1. In the Parameters section, note the *AllowedIP** contains a default IP Address, if you want to access the instance via SSH obtain your own public IP address. Ensure to add the `/32` network mask at the end. Do not modify any other parameter and click *Next*.
25+
26+
![CloudFormation parameters](/static/images/common/on-your-own-cf-01.png)
2327

24-
1. Scroll to the bottom and click *Next*, and then review the *Template* and *Parameters*. When you are ready to create the stack, scroll to the bottom, check the box acknowledging the creation of IAM resources, and click *Create stack*.
25-
![CloudFormation parameters](/static/images/awsconsole2.png)
26-
The stack will create a Cloud9 lab instance, a role for the instance, and a role for the AWS Lambda function used later on in the lab. It will use Systems Manager to configure the Cloud9 instance.
28+
6. Scroll to the bottom and click *Next*, and then review the *Template* and *Parameters*. When you are ready to create the stack, scroll to the bottom, check the box acknowledging the creation of IAM resources, and click *Create stack*.
2729

30+
![CloudFormation parameters](/static/images/common/on-your-own-cf-02.png)
31+
32+
The stack will create a Visual Studio Code EC2 instance, a role for the instance, and a role for the AWS Lambda function used later on in the lab. The CloudFormation template will create a set of folders that can be used to execute individually the lab modules presented in this guide.
2833

29-
1. After the CloudFormation stack is `CREATE_COMPLETE`, :link[continue onto Step 1]{href="/design-patterns/setup/Step1"}.
34+
7. After the CloudFormation stack is `CREATE_COMPLETE`, :link[Launch Visual Studio Code]{href="/design-patterns/setup/step1"}.

content/event-driven-architecture/setup/aws-ws-event.en.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ chapter: true
77

88
### Login to AWS Workshop Studio Portal
99

10-
1. If you are provided a one-click join link, skip to step 3.
10+
### Login to AWS Workshop Studio Portal
11+
12+
1. If you are provided a one-click join link, use it and skip to step 3.
1113

1214
2. Visit [https://catalog.us-east-1.prod.workshops.aws](https://catalog.us-east-1.prod.workshops.aws). If you attended any other workshop earlier on this portal, please logout first. Click on **Get Started** on the right hand side of the window.
1315
![Workshop Studio Landing Page](/static/images/aws-ws-event1.png)
@@ -26,6 +28,10 @@ chapter: true
2628
7. Select on **I agree with the Terms and Conditions** on the bottom of the next page and click **Join event** to continue to the event dashboard.
2729

2830
8. 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.
29-
![Event dashboard](/static/images/aws-ws-event5.png)
31+
![Event dashboard](/static/images/common/workshop-studio-01.png)
32+
33+
9. 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`.
34+
35+
![Event dashboard](/static/images/common/workshop-studio-02.png)
3036

3137
Now that you are set up, continue on to: :link[Exercise 1: Overview]{href="/event-driven-architecture/ex1overview"}.

content/event-driven-architecture/setup/user-account.en.md

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,30 @@ weight: 5
55
chapter: true
66
---
77

8+
::alert[These setup instructions are identitical for LADV, LHOL, LBED, LMR, and LGME - all of which use the same Visual Studio Code template. Only complete this section once, and only if you're running it on your own account.]{type="warning"}
9+
10+
::alert[Only complete this section if you are running the workshop on your own. If you are at an AWS hosted event (such as re\:Invent, Immersion Day, etc), go to :link[At an AWS hosted Event]{href="/hands-on-labs/setup/aws-ws-event"}]
811

9-
::alert[Only complete this section if you are running the workshop on your own. If you are at an AWS hosted event (such as re\:Invent, Immersion Day, etc), go to :link[At an AWS hosted Event]{href="/event-driven-architecture/setup/start-here/aws-ws-event"}]
1012
## Launch the CloudFormation stack
11-
::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.]{type="warning"}
13+
::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.]
14+
15+
1. **[Deprecated]** - 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"})
1216

13-
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="event_driven_architecture_lab_yaml"})
14-
1. *Optionally, download [the YAML template](:param{key="event_driven_architecture_lab_yaml"}) and launch it your own way*
17+
1. *Optionally, download [the YAML template](https://github.com/aws-samples/aws-dynamodb-examples/blob/master/workshops/modernizer/modernizer-db.yaml) from our GitHub repository and launch it your own way*
1518

1619
1. Click *Next* on the first dialog.
1720

18-
1. Scroll to the bottom and click *Next*, and then review the *Template*. When you are ready to create the stack, scroll to the bottom, check the box acknowledging the creation of IAM resources, and click *Create stack*.
19-
![CloudFormation parameters](/static/images/awsconsole2.png)
20-
The stack will create DynamoDB tables, Lambda functions, Kinesis streams, and IAM roles and policies which will be used later on in the lab.
21+
1. Provide a CloudFormation stack name.
22+
23+
1. In the Parameters section, note the *AllowedIP** contains a default IP Address, if you want to access the instance via SSH obtain your own public IP address. Ensure to add the `/32` network mask at the end. Do not modify any other parameter and click *Next*.
24+
25+
![CloudFormation parameters](/static/images/common/on-your-own-cf-01.png)
26+
27+
6. Scroll to the bottom and click *Next*, and then review the *Template* and *Parameters*. When you are ready to create the stack, scroll to the bottom, check the box acknowledging the creation of IAM resources, and click *Create stack*.
28+
29+
![CloudFormation parameters](/static/images/common/on-your-own-cf-02.png)
30+
31+
The stack will create a Visual Studio Code EC2 instance, a role for the instance, and a role for the AWS Lambda function used later on in the lab. The CloudFormation template will create a set of folders that can be used to execute individually the lab modules presented in this guide.
2132

2233
1. After the CloudFormation stack is `CREATE_COMPLETE`, :link[continue onto the overview]{href="/event-driven-architecture/ex1overview"}.
2334

0 commit comments

Comments
 (0)