pub async fn setup_aws_object_store<'a, KV>(
url: &Url,
opts: KV,
) -> Result<AmazonS3, Box<dyn Error + Send + Sync + 'static>>Available on crate feature
cloud only.Expand description
Returns an AWS object store. Contrary to object_store::parse_url_opts, this one honors the AWS credential chain. It does only support s3:// URLs.
For opts, only the following keys are allowed:
- aws_access_key_id
- aws_secret_access_key
- aws_region
- aws_allow_http
- aws_endpoint_url
- aws_profile
- user_agent
These keys will take priority over anything discovered via the AWS default credential chain.