Build error on『MLOps and integrations』


Hello, I have a question about one of the Workshops published in the AWS Workshop studio.

I am going through the "MLOps and integrations" hands-on, but it is not working well during the process.

Here is the URL for the hands-on.

Specifically, the build process performed when deploying the provided CloudFormation template will generate an error occurs. I think that the URL for S3 listed in the distributed source(source/ in the workshop is probably not valid.

Do any of you know how to solve this problem?

----Excerpts from the CodeBuild error log-----

Traceback (most recent call last): File "source/", line 20, in <module> test_file,

File "/usr/local/lib/python3.6/site-packages/", line 526, in download (tmpfile, headers) = ulib.urlretrieve(binurl, tmpfile, callback)

File "/usr/local/lib/python3.6/urllib/", line 248, in urlretrieve with contextlib.closing(urlopen(url, data)) as fp:

File "/usr/local/lib/python3.6/urllib/", line 223, in urlopen return, data, timeout)

File "/usr/local/lib/python3.6/urllib/", line 532, in open response = meth(req, response)

File "/usr/local/lib/python3.6/urllib/", line 642, in http_response 'http', request, response, code, msg, hdrs)

File "/usr/local/lib/python3.6/urllib/", line 570, in error return self._call_chain(*args)

File "/usr/local/lib/python3.6/urllib/", line 504, in _call_chain result = func(*args)

File "/usr/local/lib/python3.6/urllib/", line 650, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp)

urllib.error.HTTPError: HTTP Error 403: Forbidden

1 Answer

Hi , Have you created your user token from github, as indicated in the 'Set up your environment' part of the workshop and then input the token on the "Create the Cloud Formation stack" config? - (Create Github token -

answered 4 months ago
  • Thank you for your comment! I had issued and set up the Github token as per the instructions. However, I would like to check the 'Set up your environment' section again.

  • 'Set up your environment' was checked again and implemented, but without success. However, when I rewrote the S3 URL in "source/" to my own URL where I uploaded the MNIST test image, it worked and the build completed. For some reason, the distributed resource did not seem to be valid.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions