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.

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ