aws-samples / amazon-bedrock-workshop

This is a workshop designed for Amazon Bedrock a foundational model service.
https://catalog.us-east-1.prod.workshops.aws/workshops/a4bdb007-5600-4368-81c5-ff5b4154f518/en-US/20-intro
MIT No Attribution
1.27k stars 545 forks source link

Amazon Bedrock Workshop - [Module 3 Model Customization - ] fails to create model-customization-job for Titan or llama #233

Open zdarova opened 3 months ago

zdarova commented 3 months ago

Describe the bug In module 3 of the workshop in Workshop Studia as test event, when I try to run in SageMaker Studio Classic the titan or llama notebook for creating a model-customization-job, it returns the following error:

AccessDeniedException: An error occurred (AccessDeniedException) when calling the CreateModelCustomizationJob operation: User: arn:aws:sts::****:assumed-role/bedrock-workshop-studio-SageMakerExecutionRole-rVM4toc9ynQ4/SageMaker is not authorized to perform: bedrock:CreateModelCustomizationJob on resource: arn:aws:bedrock:us-west-2:****:model-customization-job/* with an explicit deny in a service control policy

To Reproduce Run the amazon-bedrock-workshop/03_Model_customization/02_fine-tuning_llama2.ipynb

Expected behavior No errors

Screenshots

Desktop (please complete the following information):

Smartphone (please complete the following information): ND

! Additional context ! Region: us-west-2