I'm trying to fetch all items from dynamoDB table, But issue is administrator has not added permission of Scan in roles assigned to me, is there any alternative to scan method,
I looked into aws wrangler library but aws wrangler does not have any method for get items.
Error I got when I run table.scan()
:
An error occurred (AccessDeniedException) when calling the scan operation: User: arn:aws:sts::xxxxx:assumed-role. xxxxxxxx/xxxxx-lambdafunction is not authorized to perform: dynamodb:Scan
As table contain 1000s of data so I need to use pagination, so is there any alternate of scan or any way around using aws wrangelr to fetch all tables data