AWS SageMaker notebook download fails

Hi,

I am working on week 1 AWS lab assignment
I followed the instructions but download fails

sagemaker-user@studio$ aws s3 cp --recursive s3://dlai-generative-ai/labs/w1-549876/ ./

Message

download failed: s3://dlai-generative-ai/labs/w1-549876/Lab_1_summarize_dialogue.ipynb to ./Lab_1_summarize_dialogue.ipynb An error occurred (AccessDenied) when calling the GetObject operation: Access Denied
download failed: s3://dlai-generative-ai/labs/w1-549876/images/kernel_set_up.png to images/kernel_set_up.png An error occurred (AccessDenied) when calling the GetObject operation: Access Denied
download failed: s3://dlai-generative-ai/labs/w1-549876/images/w1_kernel_and_instance_type.png to images/w1_kernel_and_instance_type.png An error occurred (AccessDenied) when calling the GetObject operation: Access Denied

Found solution

Needed to create a new user profile under existing domain with access to any S3 bucket for the command to work.

Feedback:

In the Coursera course it was not clear at all that it would necessary to create the resources: domain and user profile. I guess I bumped into this because I did it from the AWS console?

It might be useful to add those instructions.

@lgfunderburk , this is weird behavior. This command worked fine for me and no need to do any extra operation.