Questions tagged [aws-sdk-cpp]
123 questions
19
votes
0 answers
How to use AWS SDK C++ XRay in a AWS Lambda Layer implemented in C++ called by a Lambda function in Python?
My team implemented a pipeline with Computer Vision (OpenCV) and a DNN in Tensorflow and Keras using C++. This pipeline is an AWS Layer used by an AWS Lambda Function implemented in Python and this Layer is invoked through Boost library.
As needed,…
10
votes
1 answer
What is the purpose of the "allocationTag" parameter in the AWS SDK for C++?
The AWS memory allocation functions, Aws::MakeShared, Aws::MakeUnique, Aws::MakeUniqueArray, Aws::Malloc, Aws::New, and Aws::NewArray all require a const char * allocationTag argument to be provided, however, it's unclear exactly what this string is…

Andrew Wasielewski
- 356
- 2
- 10
9
votes
1 answer
Uploading file to AWS using C++ SDK
Whenever I run my program I get the error "Unable to connect to endpoint". But I know that I can connect to that bucket because I can successfully download files that are in that bucket using the same configurations and s3Client. It gets stuck on…

karllawson
- 155
- 1
- 5
6
votes
1 answer
Why can I not override container variables for multi-node parallel jobs in AWS Batch C++ SDK?
I am working with AWS Batch. My goal is to create a multi-node parallel job through the AWS SDK for C++. For this, I have created a job definition as per the instructions here.
I am working with the AWS C++ SDK, and I noticed that when I try to…

Paolo
- 21,270
- 6
- 38
- 69
5
votes
0 answers
How to debug an AWS Lambda locally when you use a provided runtime?
I would like to debug an AWS Lambda function written in C++ locally. Ideally, I want to be able to step through my code (like you do with GDB or any decent IDE). The way to do this with AWS Lambdas would usually include AWS SAM.
Idea 1, debug using…

User12547645
- 6,955
- 3
- 38
- 69
5
votes
0 answers
How to resume multipart uploads after application restart using TransferManager?
I am trying write an application to continuously upload large data (multipart uploads) to Amazon's S3 Storage. However, my application needs to be able to shut down mid-transfer and pick up from where it left off the next time it's restarted.
From…

SD94
- 71
- 3
4
votes
2 answers
How can I use the AWS C++ SDK to parse an S3 URI for region, bucket and object key?
I have an S3 URI, and I need to extract the region, bucket and object key so that I can use the Aws::S3::Model::PutObjectRequest to upload an object.
Does the AWS C++ SDK provide a utility function for doing purpose? Should I use a regular…

Boinst
- 3,365
- 2
- 38
- 60
4
votes
1 answer
Set payload on Lambda Invoke request for AWS C++ SDK
Is it possible to set a payload on a Lambda Invoke request for the AWS C++ SDK? When looking at the docs it appears as though this may not be possible.

johnnyodonnell
- 1,838
- 3
- 16
- 34
4
votes
1 answer
aws-sdk-cpp exception handling disabled, use -fexceptions to enable
I have problem with integration of aws-sdk-cpp with boost and any exception handling.
As soon I linked in cmakelists aws-cpp-sdk-s3 compiler became very strict: errors per unused param, exception handling disabled. I have no idea how I can configure…

Piotr Pęczek
- 410
- 7
- 14
3
votes
2 answers
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.

user15507541
- 43
- 1
- 3
3
votes
2 answers
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 and Visual Studio 2019)
cmake 3.19.0-rc1 (latest…

jdowdell
- 1,578
- 12
- 24
3
votes
0 answers
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.
mkdir build && cd build
cmake ..…

ashutosh sharma
- 192
- 2
- 8
3
votes
2 answers
Multipart Upload S3 using AWS C++ SDK
I am trying to upload a file to S3 using multipart upload feature in AWS C++ SDK. I could find examples for JAVA, .NET, PHP, RUBY and Rest API, but didnt find any lead on how to do it in C++. Can you please provide me a direction to achieve the…

Sudheer Kumar
- 77
- 1
- 7
3
votes
1 answer
authenticate a user using cognito aws-sdk-cpp
I have been trying to create a user login using the aws-sdk-cpp. I essentially would like a user to register using my app as a user (which will add them to the cognito user pool - I have this working), and then log-in. This login will then provide…

manishpin
- 33
- 4
3
votes
0 answers
Aws::Transfer::TransferManager::UploadDirectory and content-type
I'm attempting to use Aws::Transfer::TransferManager::UploadDirectory to upload a directory of files to s3. These files will later be hosted via CloudFront to web clients. For this reason, I need to set several headers such as Content-Type,…

Matthew Amato
- 1,992
- 17
- 21