Open GAcharyaOS opened 6 months ago
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)
can you check @mani-aiml
can you check if our recent commits fix this @mani-aiml
I am also seeing this on another KB module.
There is a suggested resolution in this thread. https://github.com/aws/aws-sdk-js/issues/3647#issuecomment-1926614058
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 } )