130 questions
1
vote
1
answer
106
views
Aws::ShutdownAPI crashes when called by shared_ptr
I am designing a library where I need AWS SDK for S3 and Kinesis as wrapped sub-components. In an executable, Aws::InitAPI() and Aws::ShutdownAPI() can be called once, so I am trying to design a ...
1
vote
0
answers
59
views
AWS SDK S3 GetObjectAsync crashes with ResponseStream in Unreal Engine - how to fix?
I'm using AWS SDK for C++ (v1.9+) in Unreal Engine to download files from S3, but I keep getting crashes in aws_cpp_sdk_core!Aws::Utils::Stream::ResponseStream::ReleaseStream()
Here's my exact code:
...
0
votes
0
answers
41
views
Presigned URL with filename using AWS SDK CPP
I managed to generate a presigned url to download a S3 file with AWS SDK CPP:
std::string presigned_url = s3_client.GeneratePresignedUrl(bucket, key, Aws::Http::HttpMethod::HTTP_GET, EXPIRATION_TIME);
...
0
votes
0
answers
17
views
Facing this error while building a component name data storage backup redis
i tried building aws-sdk-cpp multiple times but still facing issue.
I am using openssl 3.0.2 and curl 7.88 along with ubuntu 20.04.
the errors are related to aws-sdk-cpp and openssl. i need the ...
0
votes
1
answer
155
views
IncompleteSignature exception with CloudWatchClient::PutMetricData
Sending a request with CloudWatchClient::PutMetricData in the AWS C++ SDK results in an IncompleteSignature exception with the following details: Authorization header requires 'Signature' parameter. ...
0
votes
1
answer
60
views
error: no type named 'IOStreamFactory' in namespace 'Aws' GCC
Issues setting up AWS CPP SDK. Following the hello_s3 example. compiler throws the error;
...include/aws/core/http/HttpClientFactory.h:60:123: error: no type named 'IOStreamFactory' in namespace 'Aws'
...
0
votes
0
answers
662
views
C++ Linking Problem with CURL, OpenSSL and AWS SDK S3 using conan, cmake
I am having trouble in linking two libraries, CURL, OpenSSL and AWS SDK S3, simultaneously. But the thing is I need to manage another libraries with conan 2.0.
I shrinked CMakeLists.txt and Example ...
1
vote
1
answer
168
views
AWS C++ SDK unresolved external "W" version of method [duplicate]
I'm using the AWS C++ SDK from a Visual Studio project. The SDK was installed using vcpkg. Building the project gives the following linker error:
LNK2001 unresolved external symbol "public: ...
0
votes
1
answer
141
views
Correct use of variable argument functions C API with C++ implementation
I want to use a C++ logging library in a mixed C/C++ application. The legacy application is full of printf style logging. The new library also supports that.
The C files are compiled with C compiler, ...
0
votes
1
answer
270
views
How do I change the format of logs in the AWS C++ SDK
I'm currently using the Aws::Utils::Logging::ConsoleLogSystem to log to stdout. This is great as my application logs to stdout too.
However, the AWS C++ SDK is a different format than my current ...
0
votes
1
answer
366
views
no matching function for call to ‘Aws::S3::S3Client::S3Client(Aws::Auth::AWSCredentials, Aws::Client::ClientConfiguration&)’
main.cpp: In function ‘void downloadFile(const string&, const string&, std::ostream&)’:
main.cpp:23:95: error: no matching function for call to ‘Aws::S3::S3Client::S3Client(Aws::Auth::...
0
votes
1
answer
395
views
AWS: How to assume role and set credentials to all consecutive client calls
The case: Multitenant C++ application using AWS C++ SDK, it processes jobs that may belong to multiple tennats account and each time I should assume another role and make somehow our infra to work ...
2
votes
0
answers
111
views
I wrote go code on macos(m2) using aws-sdk-cpp and libtorch(cpp) through cgo but got an errormessage: [ld: symbol(s) not found for architecture arm64]
my cgo args:
/*
#cgo LDFLAGS: -L/usr/local/libtorch/lib -ltorch -lc10 -lkineto -ltorch_cpu -laws-cpp-sdk-s3 -laws-cpp-sdk-sts -laws-cpp-sdk-iam -laws-cpp-sdk-core
#cgo CXXFLAGS: -std=c++14 -I/usr/...
0
votes
2
answers
701
views
Creating AWS VPC Gateway Endpoint for DynamoDB Breaks ECS Task
When I create a DynamoDB VPC Gateway Endpoint it breaks an ECS task that connects to DynamoDB. The ECS task/service/cluster is in the same VPC in the same region as the gateway endpoint on a private ...
0
votes
1
answer
384
views
aws-sdk-cpp + Localstack basic S3 queries don't working
I'm trying to make some S3 queries to Localstack by using the AWS C++ SDK. I've followed the examples provided by AWS in C++ in order to, for instance, list my buckets, but without any luck.
I share ...
0
votes
0
answers
384
views
How to use the SDK access AWS govcloud S3 bucket?
Using aws-sdk-cpp, I created AWS client to access S3 bucket. It works with Standard AWS Regions, but not AWS GovCloud (US).
Note that we only pass bucket name and region (us-gov-west-1) to SDK, ...
0
votes
0
answers
108
views
not able to generate Rds Iam Auth Token using aws cpp sdk
We need to generate an aws rds iam auth token using the c++ sdk.
Java sdk equivalent is here: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.Connecting.Java.html#...
1
vote
1
answer
485
views
AWS-SDK-CPP: How to use multiple configurations of aws-sdk-cpp in one project?
I need to use AWS SDK in a project that has four configurations "Debug, RelWithDebInfo, MinSizeRel, and Release"
If I follow the instructions to build and install the SDK from source, it ...
0
votes
0
answers
36
views
C++ code is not compiling with g++ -o object test.cpp for AWS SDK [duplicate]
I have followed the steps to install the AWS SDK for C++ on a linux machiine. Now I am struggling to figure out how to compile and run my code. I have a file called test.cpp and I am compiling it by ...
1
vote
0
answers
191
views
Compilation error while trying to compile AWS-SDK-CPP s3 example code
I am trying to use AWS C++ SDK to upload file to s3. However it seems that the existing example does not work. Following is my sample code:
invocation_response putFileObject(S3::S3Client &client, ...
2
votes
2
answers
1k
views
Fatal error condition occurred in c:209: allocator != ((void *)0) - aws-sdk-cpp
I'm having an issue after updating: Upload an object to an Amazon S3 bucket using an AWS SDK:(https://docs.aws.amazon.com/AmazonS3/latest/userguide/example_s3_PutObject_section.html)
int main(int, ...
-1
votes
1
answer
304
views
terminate called after throwing an instance of 'std::bad_alloc' Linux with AWS-SDK
I am using aws sdk for linux to transfer file to s3. I have compiled the shared library of aws sdk.
Transfer of file fails with bad alloc error so thought to explore the example given by aws-sdk.
I am ...
1
vote
3
answers
1k
views
AWS C++ Lambda - segmentation fault
I have successfully installed an AWS CLI on WSL. In addition I did follow these instructions:
https://aws.amazon.com/blogs/compute/introducing-the-c-lambda-runtime/
Now, the first example works and ...
0
votes
1
answer
868
views
Seeking an example of using AWS C++ SDK to implement get-credentials-for-identity and it's required get-id input for temporary AWS credentials
I am currently building a C++ client which is successfully authenticating to AWS Cognito User Pools. I wish to obtain temporary AWS credentials via exchanging the received ID token from Cognito.
...
1
vote
0
answers
137
views
Enable AWS SDK Service client metrics in C++
I want to enable aws service client metrics in aws sdk c++ , In java v2 we have the option to enable aws sdk service clients metrics like (Pending connection, Max connection) details please refer this ...
1
vote
1
answer
604
views
Why is Aws::String not extending std::string
We previously built aws-sdk-cpp locally and designed a library around it. Now I'm upgrading to use Conan provided aws-sdk-cpp instead of a locally built one, but I'm getting errors from our library.
I ...
0
votes
1
answer
601
views
compile error on building full aws-sdk-cpp for linux
I use CMake 3.21.2 and got this error:
$ cmake ../aws-sdk-cpp-1.9.89 -DCMAKE_BUILD_TYPE=Release
...
-- The C compiler identification is GNU 7.3.1
-- Detecting C compiler ABI info
-- Detecting C ...
0
votes
2
answers
704
views
Using AWS Lex v2 streaming with C++: Signature does not match
I am trying to make the C++ application on my PC talk to AWS Lex v2 using streaming APIs. But there is absolutely no sample code anywhere, forcing me to guess the flow all the way. I managed to stitch ...
5
votes
2
answers
1k
views
Using Rules Foreign CC to Build AWS C++ SDK with Bazel
Is there a way to do this? I'm trying to build parts of the AWS SDK (s3 and rds) to use in my Bazel project. I've heard that rules_foreign_cc can be used to integrate CMake projects with Bazel.
0
votes
1
answer
549
views
aws c++ sdk s3 ListObjects in oldest to newest order
With AWS SDK for C++ ListObjectsRequest, is there a way to have the SDK return the newest objects in the bucket based on the value of Set Marker? In the below code, the problem is that the objects in ...
-1
votes
1
answer
484
views
AWSSDKCPP S3Client.GetObject
Having issues with GetObject. Intellisense in Visual Studio keeps evaluating the method as GetObjectW
...
unresolved external symbol "__declspec(dllimport) public: virtual class Aws::Utils::...
2
votes
1
answer
539
views
Undefined symbols compiling against AWS SDK for CPP
I'm trying to use the AWS C++ SDK from an Unreal Engine plugin, but I'm getting errors for various symbols that the code seems to expect to be externally defined; here are some of the ones it's ...
1
vote
1
answer
811
views
Downloading only specific AWS C++ SDKs using CMake's FetchContent
I'm trying to link-in the AWS C++ SDK for my CMake C++ Project. However, I'm only going to be using a subset of the SDK modules (lambda) and I don't want FetchContent_Declare to clone the entire ...
0
votes
1
answer
421
views
Put an item in Amazon DynamoDB with AWS SDK CPP using as input the item in JSON format
Is there any easy way to put an item in Amazon DynamoDB with AWS SDK CPP using as input the item in JSON format? Something like
Aws::DynamoDB::Model::PutItemRequest request;
request.SetTableName(table)...
2
votes
0
answers
203
views
Will The Aws sdk for C++ refresh the assumed role once the time for assumed role is expired using STS?
I have a use case where i have to assume a role using ARN to access S3 resource but my concern is that will the STS automatically refresh the credentials once the time for assumed role is expired. The ...
0
votes
1
answer
363
views
asw-sdk-cpp initAPI and ShutDownAPI
There is a function that tries to upload or download.
Should we keep calling initAPI and ShutdownAPI every time we call these functions?
Or can I just call it once?
1
vote
0
answers
290
views
Unable to connect to AWS S3 bucket through my DLL Project (written in C++)
I’m trying to integrate AWS S3 bucket into my project (a DLL written in C++). I was successful in creating an independent console application based on the AWS SDK provided for C++ that connects to the ...
1
vote
0
answers
521
views
How to perform the "make install" step after building aws-sdk-cpp using Qt Creator and CMake
I am trying to add aws-sdk-cpp as a submodule in my Qt application using Qt Creator and CMake. I want it to build for any platform without doing the building and installing on the command line as ...
2
votes
1
answer
786
views
AWS CPP SDK JsonValue add array of double or Integer to JSON
i wanted to create a JSON using Aws-sdk for C++. this is what i am doing so far.
void convertStructToAwsJSON()
{
Aws::Utils::Json::JsonValue jsonValue = Aws::Utils::Json::JsonValue();
...
0
votes
1
answer
957
views
Uploading list of files using aws-sdk-cpp
I am trying to upload a list of files on aws s3 using cpp sdk. But only few files are uploading and it is getting terminated before uploading all the files. I am using upload api of aws s3 cpp sdk.
...
3
votes
2
answers
1k
views
aws-cpp-sdk fails during Windows build due to install(EXPORT "foo-targets" ...) includes target "foo" more than once in the export set
Asking so I can answer this myself, lost a day to it and want to save other folks the trouble.
Setup:
Windows (seen on both Windows 10 and Server 2019)
Visual Studio (seen on both Visual Studio 2017 ...
1
vote
1
answer
717
views
How to Mock AWS::Transfer::TransferManager class using gmock?
I am using AWS C++ SDK to download/upload files on AWS using AWS::Transfer::TransferManager. I want to unit test client class which makes uses of TransferManager and It requires to mock ...
1
vote
0
answers
486
views
Curl timeouts when using AWS cpp sdk for Google cloud
I have a Debian 9 client with aws cpp sdk installed. I am using this sdk for Google Cloud Storage. The sdk uses curl to issue requests to the cloud. I have a test program which does a bunch of PUTs to ...
1
vote
2
answers
1k
views
Aws::S3::S3Client constructor very slow
I'm trying to use the AWS C++ SDK to generate a signed URL for S3, however the Aws::S3::S3Client constructor seems very slow. In the following example:
#include <aws/core/Aws.h>
#include <aws/...
2
votes
1
answer
3k
views
Can't build AWS SDK CPP examples. Cmake can't find AWSSDKConfig.cmake, but the file is present on my disk
I installed the AWS SDK for C++ on my Ubuntu box using the instructions given in the Amazon doc:
https://docs.aws.amazon.com/sdk-for-cpp/v1/developer-guide/setup.html
I was able to compile the SDK ...
0
votes
1
answer
981
views
How to fix aws lambda timeouts on synchronous invokes with C++ SDK?
When I invoke my lambda function it takes between 1 and 15 seconds to execute. If I invoke the function via the C++ SKD, I get timeouts. These timeouts seem to occur after a few seconds (this is human-...
1
vote
1
answer
421
views
Process for creating an installer in QT for MacOs and windows
I am in the process of creating an installer for my C++ QT QML program. I am trying to make an installer for the program to test, but am having trouble understanding what exactly I need to do. I only ...
1
vote
2
answers
2k
views
Unresolved symbol linking with libaws-cpp-sdk-core.so on linux
I am building a Java app on Linux and calling CPP code via JNI. When I link my CPP objects with with libaws-cpp-sdk-core.so I get unresolved symbol:
Aws::Utils::Json::JsonValue::JsonValue(std::...
1
vote
1
answer
1k
views
With c++ S3 SDK, ListObjecsV2 with Minio returning no results
Below is some code which puts an object into an s3 bucket, fetches it back, and then tries to list the bucket. The put and get both work fine, but listing the bucket returns no keys (but doesn't ...
3
votes
0
answers
1k
views
AWS SDK static linking: libcrypto.so.1.0.0: cannot open shared object file
I am trying to build AWS SDK for c++ with static linking, so I can use it as a binary inside AWS Lambda function.
Steps which I took are as follows:
git clone https://github.com/aws/aws-sdk-cpp.git.
...