aws / aws/amazon-sagemaker-examples

pretrained_model_labeling_tutorial.ipynb failed CI

Open
#2,321 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
11k
Forks
7k
Avg merge
8h 29m
Merged PRs (30d)
8

Description

Link to the notebook:
https://github.com/aws/amazon-sagemaker-examples/blob/master/ground_truth_labeling_jobs/pretrained_model/pretrained_model_labeling_tutorial.ipynb

Error:

---------------------------------------------------------------------------
Exception encountered at "In [2]":
---------------------------------------------------------------------------
ParamValidationError Traceback (most recent call last)
in
3 region = boto3.session.Session().region_name
4 s3 = boto3.client('s3')
----> 5 bucket_region = s3.head_bucket(Bucket=BUCKET)['ResponseMetadata']['HTTPHeaders']['x-amz-bucket-region']
6 assert bucket_region == region, "Your S3 bucket {} and this notebook need to be in the same region.".format(BUCKET)
7

/opt/conda/lib/python3.7/site-packages/boto

[...]

Invalid bucket name "<< YOUR S3 BUCKET NAME >>": Bucket name must match the regex "^[a-zA-Z0-9.\-_]{1,255}$" or be an ARN matching the regex "^arn:(aws).*:s3:[a-z\-0-9]+:[0-9]{12}:accesspoint[/:][a-zA-Z0-9\-]{1,63}$|^arn:(aws).*:s3-outposts:[a-z\-0-9]+:[0-9]{12}:outpost[/:][a-zA-Z0-9\-]{1,63}[/:]accesspoint[/:][a-zA-Z0-9\-]{1,63}$"

Contributor guide

Open the contributing guide

Research direction

Open ground_truth_labeling_jobs/pretrained_model/pretrained_model_labeling_tutorial.ipynb and inspect cell In [2], starting with the failing s3.head_bucket call and its bucket-region assertion. Reproduce the reported CI failure, then verify that the notebook reaches the next step without the invalid bucket-name error and that CI passes.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, jupyter-notebook, python
Domain
ci-cd, cloud, machine-learning
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.