DynamoDB operations with Python
In this section, we are going to read the DynamoDB table via Python. To execute a Python function, we will implement a Lambda function to read data from DynamoDB. Carry out the following steps:
- We will create the required permissions to allow Lambda to read from DynamoDB. Open IAM and click Policies on the left-hand side:
Figure 10.15 – IAM policies
- Click Create policy:
Figure 10.16 – Creating a policy
- Paste the following policy:
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ &...