Prerequisites
Before proceeding, ensure the following prerequisites are met:- Install MindsDB locally via Docker or use MindsDB Cloud.
- To connect Amazon S3 to MindsDB, install the required dependencies following this instruction.
- Install or ensure access to Amazon S3.
Implementation
This handler is implemented usingboto3, the AWS SDK for Python.
The required arguments to establish a connection are as follows:
aws_access_key_idis the AWS access key that identifies the user or IAM role.aws_secret_access_keyis the AWS secret access key that identifies the user or IAM role.region_nameis the AWS region.bucketis the name of the S3 bucket.keyis the key of the object to be queried.input_serializationis the format of the data in the object that is to be queried.