diff --git a/content/design-patterns/ex1capacity/Step7.en.md b/content/design-patterns/ex1capacity/Step7.en.md index d90e7eb..8ed628a 100644 --- a/content/design-patterns/ex1capacity/Step7.en.md +++ b/content/design-patterns/ex1capacity/Step7.en.md @@ -47,7 +47,7 @@ Let's populate this table with a large dataset. You will use a multi-threaded ve python load_logfile_parallel.py logfile_gsi_low ``` -After a few minutes, the execution of this script will be throttled and show an error message similar to the following error. This indicates you should increase the provisioned capacity of the DynamoDB table, or enable DynamoDB auto scaling if you have not already (read more about [DynamoDB auto scaling in the AWS documentation](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.ReadWriteCapacityMode.html#HowItWorks.ProvisionedThroughput.AutoScaling)). +After a few minutes, the execution of this script will be throttled and show an error message similar to the following error. This indicates you should increase the provisioned capacity of the DynamoDB table, or enable DynamoDB auto scaling if you have not already (read more about [DynamoDB auto scaling in the AWS documentation](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/AutoScaling.html). ```txt ProvisionedThroughputExceededException: An error occurred (ProvisionedThroughputExceededException) when calling the BatchWriteItem operation (reached max retries: 9): The level of configured provisioned throughput for one or more global secondary indexes of the table was exceeded. Consider increasing your provisioning level for the under-provisioned global secondary indexes with the UpdateTable API diff --git a/content/design-patterns/setup/Step5.en.md b/content/design-patterns/setup/Step5.en.md index 61801cb..dd39994 100644 --- a/content/design-patterns/setup/Step5.en.md +++ b/content/design-patterns/setup/Step5.en.md @@ -49,6 +49,18 @@ The Employees data file has the following structure: To view a sample record in the file, execute: +```terminal +cd ~/workshop/LADV/data +python + +import csv + +with open('employees.csv', mode='r', newline='') as file: + reader = csv.reader(file) + first_row = next(reader) # Reads only the first row + print(first_row) +``` + Sample employee record: ```csv 1,Onfroi Greeno,Systems Administrator,Operation,Portland,OR,1992-03-31,2014-10-24,Application Support Analyst,2014-04-12 diff --git a/static/images/awsconsolescan.png b/static/images/awsconsolescan.png index a399ae1..53ba864 100644 Binary files a/static/images/awsconsolescan.png and b/static/images/awsconsolescan.png differ diff --git a/static/images/awsnewconsole3.png b/static/images/awsnewconsole3.png index 7a09470..bdad6ba 100644 Binary files a/static/images/awsnewconsole3.png and b/static/images/awsnewconsole3.png differ diff --git a/static/images/employees-GSI3.png b/static/images/employees-GSI3.png index c98dd4a..7422b61 100644 Binary files a/static/images/employees-GSI3.png and b/static/images/employees-GSI3.png differ diff --git a/static/images/employees-scan-GSI.png b/static/images/employees-scan-GSI.png index 7f3aa66..1e8be0d 100644 Binary files a/static/images/employees-scan-GSI.png and b/static/images/employees-scan-GSI.png differ diff --git a/static/images/employeestablenew.png b/static/images/employeestablenew.png index 72c3c8b..9b15ab4 100644 Binary files a/static/images/employeestablenew.png and b/static/images/employeestablenew.png differ diff --git a/static/images/invoice-bills-GSI1.png b/static/images/invoice-bills-GSI1.png index 8923aec..c4e7d76 100644 Binary files a/static/images/invoice-bills-GSI1.png and b/static/images/invoice-bills-GSI1.png differ