Create a role with SageMaker and S3 access To execute this lambdas we are going to need a role SageMaker and S3 permissions.
Follow this link:
https://console.aws.amazon.com/iam/home?region=us-east-1#/roles$new?step=type
Go to the Trust relationships tab and click Edit trust relationship Delete the Policy Document and paste:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": [
"lambda.amazonaws.com",
"sagemaker.amazonaws.com"
]
},
"Action": "sts:AssumeRole"
}
]
}
Click on “Update Trust Policy”