aws-samples / mlops-sagemaker-github-actions

MLOps example using Amazon SageMaker Pipeline and GitHub Actions
https://aws.amazon.com/blogs/machine-learning/build-an-end-to-end-mlops-pipeline-using-amazon-sagemaker-pipelines-github-and-github-actions/
MIT No Attribution
67 stars 41 forks source link

Getting error related to s3 access for lambda #9

Closed mtora-lightbox closed 1 year ago

mtora-lightbox commented 1 year ago

While trying to create a project using the custom template, I get the error

Resource handler returned message: "Your access has been denied by S3, please make sure your request credentials have permission to GetObject for my-bucket/lambda-github-workflow-trigger.zip. S3 Error Code: AccessDenied. S3 Error Message: Access Denied (Service: Lambda, Status Code: 403, Request ID: ##)" (RequestToken: ###, HandlerErrorCode: AccessDenied)

I am unable to figure out which role should I add the S3 GetObject policy to?

pooyavahidi commented 1 year ago

Hi @moumitaTora, The execution role by default is this AmazonSageMakerServiceCatalogProductsLaunchRole