7. Adding Execution Role to AWS Lambda Function
AWS Lambda function will not have access permissions to invoke Amazon SageMaker and Amazon S3 bucket by default. Therefore, we will use RBAC to assign execution role to AWS Lambda function. Then we will also give permission to invoke SageMaker and Access S3 bucket to the execution role.