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
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.