Skip to content

aws-samples/aws-sdk-cpp-list-s3-buckets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

What's this?

A "hello world" sample that lists your S3 buckets using the AWS C++ SDK.

Building

AWS C++ SDK

Build and install the AWS C++ SDK. This project was last tested with 1.7.278 on Mac OSX Mojave.

git clone git@github.com:aws/aws-sdk-cpp.git
cd aws-sdk-cpp
git checkout 1.7.278
mkdir build & cd build
cmake ../ -D CMAKE_BUILD_TYPE=Debug
make
make install

S3 Sample

git clone git@github.com:aws-samples/aws-sdk-cpp-list-s3-buckets.git
cd aws-sdk-cpp-list-s3-buckets
mkdir build
cd build
cmake ..
make

This creates a list-s3-buckets binary.

Running

export AWS_ACCESS_KEY_ID=...
export AWS_SECRET_ACCESS_KEY=...
export AWS_SESSION_TOKEN=...

./list-s3-buckets 

Your Amazon S3 buckets:
  * foo-bucket
  * bar-bucket

Links

See aws-sdk-cpp#1334 for a discussion around building this project, and please do help us keep this sample working as the tooling evolves by submitting pull requests.

About

A "hello world" sample that lists your S3 buckets using the AWS C++ SDK.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published