aws-sdk-cpp

How to override endpoint in AWS-SDK-CPP to connect to minio server at localhost:9000

狂风中的少年 提交于 2019-12-08 04:50:27
问题 I tried something like: Aws::Client::ClientConfiguration config; config.endpointOverride = Aws::String("localhost:9000"); It does not work. It seems that AWS-SDK-CPP by default uses virtual hosting: https://bucket-name/s3.amazonaws.com However, to access Minio, we need path style access: https://localhost:9000/minio/bucket-name In AWS-SDK-JAVA, there is: AmazonS3ClientBuilder.withPathStyleAccessEnabled(true) is there something similar in AWS-SDK-CPP? 回答1: The switch between path style and

aws-sdk-cpp: unresolved symbols

荒凉一梦 提交于 2019-12-08 04:07:33
问题 I am trying to build a simple example using aws sdk cpp. But I am stumbled on a building step. I am linking libaws-cpp-sdk-s3.so library, which is supposed to have all symbols from the source file. But the linker cannot even find a couple of them. The source file is: #include <aws/core/Aws.h> int main( int argc, char ** argv) { Aws::SDKOptions options; Aws::InitAPI(options); { // make your SDK calls here. } Aws::ShutdownAPI(options); return 0; } by using this Makefile: CC = g++ CFLAGS = -g -c

How to override endpoint in AWS-SDK-CPP to connect to minio server at localhost:9000

試著忘記壹切 提交于 2019-12-06 15:43:23
I tried something like: Aws::Client::ClientConfiguration config; config.endpointOverride = Aws::String("localhost:9000"); It does not work. It seems that AWS-SDK-CPP by default uses virtual hosting: https://bucket-name/s3.amazonaws.com However, to access Minio, we need path style access: https://localhost:9000/minio/bucket-name In AWS-SDK-JAVA, there is: AmazonS3ClientBuilder.withPathStyleAccessEnabled(true) is there something similar in AWS-SDK-CPP? The switch between path style and virtual hosting is in S3Client constructor: S3Client(const Aws::Client::ClientConfiguration&