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.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠