Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid LocationConstraint error in lab 03_QuestionAnswering/knowledge-bases /0_create_ingest_documents_test_kb.ipynb #190

Open
GAcharyaOS opened this issue Feb 7, 2024 · 2 comments

Comments

@GAcharyaOS
Copy link

The jupyter notebook provided in the lab does not work for deployment in us-east-1 region. Remove the item in the bold from the below code in the notebook cell to create S3 bucket for knowledgebase :

Create S3 bucket for knowledge base data source

s3bucket = s3_client.create_bucket(
Bucket=bucket_name**,
CreateBucketConfiguration={ 'LocationConstraint': region_name }**
)

@GAcharyaOS
Copy link
Author

NOTE : Above suggested change only apply to deployment in us-east-1 region. For all other regions, existing code works fine.

Another option to make it for all the regions could be to set the region_name at the time of creating s3_client object.
for e.g. s3_client = boto3.client('s3', region_name=region_name)

@w601sxs
Copy link
Contributor

w601sxs commented Apr 9, 2024

can you check @mani-aiml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants