AWS Lambda - Grant Access

Go to AWS IAM Console Find your Lambda’s role Click on the role name Click “Add permissions” → “Create inline policy” In the JSON editor, paste this policy: { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "dynamodb:Scan", "dynamodb:GetItem", "dynamodb:Query" ], "Resource": "arn:aws:dynamodb:ap-southeast-2:6850********:table/user_list" } ] } Click “Review policy” Name it something like “DynamoDBScanPolicy” Click “Create policy” After adding this policy, wait a few seconds and try your Lambda function again. The error should be resolved. ...

June 15, 2025

sysprep in AWS

Delete all the items controlled by Group Policy (e.g., Certificates, Firewall Settings) Open “Amazon EC2Launch Settings” and click ”Shutdown with Sysprep”

March 27, 2025