In this step, you will create a dedicated IAM Role so that Lambda functions in the Serverless Invoice Scanner system can access AWS services such as Amazon Textract, Amazon Bedrock, Amazon DynamoDB, Amazon S3, and CloudWatch Logs.
Open the AWS Management Console in Incognito mode to avoid session conflicts if you’re logged in with multiple accounts.
Search for and select IAM in the search bar.




In the Add permissions step, search for and check the following policies:
AmazonS3FullAccessAmazonDynamoDBFullAccessAmazonTextractFullAccessAmazonBedrockFullAccessAWSLambdaBasicExecutionRole




LambdaExecutionRole-AIInvoiceScannerRole for Lambda to access S3, Textract, Bedrock, DynamoDB, and CloudWatch

LambdaExecutionRole-AIInvoiceScanner listed.