Build error on『MLOps and integrations』

0

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/test.py) 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/test.py", line 20, in <module> test_file,

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

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

File "/usr/local/lib/python3.6/urllib/request.py", line 223, in urlopen return opener.open(url, data, timeout)

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

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

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

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

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

urllib.error.HTTPError: HTTP Error 403: Forbidden

1 回答
0

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 - https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token)

AWS
专家
已回答 2 年前
  • 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/test.py" 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.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容