Estoy escribiendo una aplicación que habla con un tercer almacenamiento (sin aws) compatible con s3 (servicio de cubo y objeto) mediante el uso de AWS SDK CPP.
Traté de usar el siguiente código para anular el punto final, por ejemplo, http://192.168.10.10:8800 , pero no funciona y devuelve "InternalError". ¿Alguien podría por favor dar una mano? gracias de antemano.
{ Aws::SDKOptions options; Aws::SDKOptions options; Aws::SDKOptions options;` Aws::InitAPI(options); ClientConfiguration config; config.scheme = Scheme::HTTP; config.connectTimeoutMs = 30000; config.requestTimeoutMs = 30000; config.endpointOverride = "192.168.10.10:8800" //customized address Aws::S3::S3Client *s3client = new Aws::S3::S3Client(Aws::Auth::AWSCredentials("key", "secret"), config); auto list_buckets_outcome = s3client->ListBuckets(); if( list_buckets_outcome.IsSuccess()) std::cout << "List OK" << std::endl; else std::cout << "List Error" << list_buckets_outcome.GetError().GetExceptionName() << list_buckets_outcome.GetError().GetMessage() << std::endl; Aws::ShutdownAPI(options); }