aws-samples / sagemaker-run-notebook

Tools to run Jupyter notebooks as jobs in Amazon SageMaker - ad hoc, on a schedule, or in response to events
Apache License 2.0
140 stars 68 forks source link

Getting Error Message while creating container #12

Closed rajmatiGM closed 3 years ago

rajmatiGM commented 3 years ago

Command :

!run-notebook create-container botocore.errorfactory.InvalidInputException: An error occurred (InvalidInputException) when calling the CreateProject operation: CodeBuild is not authorized to perform: sts:AssumeRole on arn:aws:iam:::role/ExecuteNotebookCodeBuildRole-

While trying to !run-notebook create-infrastructure ( without update even on a new sagemaker notebook instance) The infrastructure has already been created. Use update to update it.

When I do it with update

!run-notebook create-infrastructure --update it complains botocore.exceptions.ClientError: An error occurred (ValidationError) when calling the UpdateStack operation: Stack:arn:aws:cloudformation:us-east-1::stack/sagemaker-run-notebook/ is in ROLLBACK_COMPLETE state and can not be updated.

Please suggest what am I missing.

rajmatiGM commented 3 years ago

As suggested , deleted the stack , and used the right permissions to rerun the create-infrastructure and was able to successfully run it.

aks-0389 commented 2 years ago

@rajmatiGM -I am facing a similar issue. Please share the permissions you have used

rajmatiGM commented 2 years ago

@aks-0389 , just temporarily attach the admin permissions , run the commands for once and on success remove the admin privileges. That is how I could proceed finally.