This repository is an example of how to use the AWS REST API with C++. For more detailed information please refer to following post.
To use this project with your own AWS account, the only thing you'll need to add to the source code is your AWS credentials in the main.cpp file.
To compile this repository, execute following commands:
git clone https://github.com/cedricve/AWS-S3-Cpp-REST-API
cd AWS-S3-Cpp-REST-API
mkdir build && cd build
cmake .. && make
../bin/s3
A class S3 is included which contains three methods. For more background information of the actual REST API, please check the documentation page of AWS.
Get all your buckets.
Get all objects from a specific bucket.
Add a file to your bucket.