Closed dangor closed 1 year ago
Hey @dangor, I am trying to follow the described steps of your fix. As I am new to AWS I don't quiet understand where to modify the NotebookInstanceExecutionRole's IAM permissions. Could you describe that a little more detailed? Thanks in advance!
@phossen No worries, I'll try:
<prefix>-NotebookInstanceExecutionRole-<random id>
*
for the object name. Then click AddI want to note that I've abandoned this project because I found the learning curve for updating the machine learning too high for me for now. Even before that, there will be other challenges you'll run into, e.g. to deal with the APIv0 -> APIv1 migration that Battlesnake now requires.
Hi @dangor and @phossen,
I will push a new update to repository within the next week. In this new update, I will also update the API to v1.
Thanks!
After stack creation, the log for
BattlesnakeNotebook/LifecycleConfigOnStart
includes the following line:where
bonhomme-snake
was the value I chose for the parameterSolutionS3BucketName
.Looking in S3, I see that the bucket was named
sagemaker-solutions-bonhomme-snake
.Looking in the CloudFormation template yaml file, I see that the bucket is created with
BucketName: !Sub "sagemaker-solutions-${SolutionS3BucketName}"
: https://github.com/awslabs/sagemaker-battlesnake-ai/blob/master/CloudFormation/deploy-battlesnake-endpoint.yaml#L68while the sed command doesn't have the same sagemaker-solutions- prefix and only uses the bucket name: https://github.com/awslabs/sagemaker-battlesnake-ai/blob/master/CloudFormation/deploy-battlesnake-endpoint.yaml#L243-L245
I unstuck myself by manually creating an s3 bucket without the prefix, modifying the NotebookInstanceExecutionRole's IAM permissions to include the new bucket explicitly and objects underneath it, then restarting the notebook instance.
(I did not try updating the sed commands in the script.)