Skip to content

Latest commit

 

History

History
21 lines (19 loc) · 1.25 KB

BuildingAwsSdkCpp.md

File metadata and controls

21 lines (19 loc) · 1.25 KB

Building the AWS SDK for C++

The driver supports AWS IAM and AWS Secrets Manager authentication by using AWS SDK for C++. The driver requires aws-cpp-sdk-core, aws-cpp-sdk-rds, and aws-cpp-sdk-secretsmanager. You can either build the SDK yourself directly from the source using the script under scripts folder or download the libraries using a package manager. The script will install the SDK under aws_sdk/install folder. The driver will look for SDK dependencies through aws_sdk/install folder and CMAKE_PREFIX_PATH environment variable.

Note

On Windows, depending on the use case, you may build the SDK as a static library or dynamic library. On Linux and macOS, you should always build the SDK as a dynamic library.

Windows

For release version unit tests or driver

.\scripts\build_aws_sdk_win.ps1 x64 Release ON "Visual Studio 17 2022"

For debug version unit tests

.\scripts\build_aws_sdk_win.ps1 x64 Debug ON "Visual Studio 17 2022"

Linux/macOS

./scripts/build_aws_sdk_unix.sh Release

Troubleshoot

See https://docs.aws.amazon.com/sdk-for-cpp/v1/developer-guide/troubleshooting-cmake.html