Skip to content

Commit f4adb25

Browse files
authored
LGME updates (#89)
Python3.8 upgrade
1 parent 6367db4 commit f4adb25

File tree

3 files changed

+16
-8
lines changed

3 files changed

+16
-8
lines changed

content/game-player-data/open-games/Step2.en.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ It will take a few minutes for the new GSI to get populated. You need to wait un
8888
```sh
8989
aws dynamodb describe-table --table-name battle-royale --query "Table.GlobalSecondaryIndexes[].IndexStatus"
9090
```
91-
You also can script the command to run every 2 seconds using `watch`.
91+
You also can script the command to run every 5 seconds using `watch`.
9292
```bash
93-
# Watch checks every 2 seconds by default
94-
watch -n 2 "aws dynamodb describe-table --table-name battle-royale --query \"Table.GlobalSecondaryIndexes[].IndexStatus\""
93+
# Watch checks every 5 seconds by default
94+
watch -n 5 "aws dynamodb describe-table --table-name battle-royale --query \"Table.GlobalSecondaryIndexes[].IndexStatus\""
9595
```
9696
Press **Ctrl + C** to end `watch` after the global secondary index has been created.

content/game-player-data/past-games/Step1.en.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ You can find out the current status of the table and its indexes by either way:
8989
```sh
9090
aws dynamodb describe-table --table-name battle-royale --query "Table.GlobalSecondaryIndexes[].IndexStatus"
9191
```
92-
You also can script the command to run every 2 seconds using `watch`.
92+
You also can script the command to run every 5 seconds using `watch`.
9393
```bash
94-
# Watch checks every 2 seconds by default
95-
watch -n 2 "aws dynamodb describe-table --table-name battle-royale --query \"Table.GlobalSecondaryIndexes[].IndexStatus\""
94+
# Watch checks every 5 seconds by default
95+
watch -n 5 "aws dynamodb describe-table --table-name battle-royale --query \"Table.GlobalSecondaryIndexes[].IndexStatus\""
9696
```
9797
Press **Ctrl + C** to end `watch` after the global secondary index has been created.

content/game-player-data/setup/Step1.en.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,24 @@ You should now see your AWS Cloud9 environment. You need to be familiar with the
3030
- **Terminal**: On the lower right area of the IDE, this is where you run commands to execute code samples.
3131

3232

33-
The [AWS SDK for Python (Boto3)](https://aws.amazon.com/sdk-for-python/) enables you to use Python code to interact with AWS services like Amazon DynamoDB. In the AWS Cloud9 Terminal, confirm whether pip is already installed for the active version of Python by running this command:
33+
The [AWS SDK for Python (Boto3)](https://aws.amazon.com/sdk-for-python/) enables you to use Python code to interact with AWS services like Amazon DynamoDB. In the AWS Cloud9 Terminal, install Python 3.8 and switch to that version:
3434

3535
```bash
36+
sudo yum install -y python38
37+
sudo alternatives --set python /usr/bin/python3.8
3638
python -m pip --version
3739
```
3840

41+
The output should look like this, showing Python3.8 is the default:
42+
```text
43+
$ python -m pip --version
44+
pip 9.0.3 from /usr/lib/python3.8/dist-packages (python 3.8)
45+
```
46+
3947
Now, install the AWS SDK for Python (Boto3) by running:
4048

4149
```bash
42-
pip install boto3
50+
pip install boto3 --user
4351
```
4452

4553
Next, we would be downloading & reviewing the supporting code.

0 commit comments

Comments
 (0)