not able to generate Rds Iam Auth Token using aws cpp sdk

66 views Asked by At

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#UsingWithRDS.IAMDBAuth.Connecting.Java.AuthToken

Is there a way to do the above using the C++ SDK?

The following code just results in printing the connection string (replace parameters with actual values):

Aws::RDS::RDSClient* p = new  Aws::RDS::RDSClient();
std::cout << p->GenerateConnectAuthToken("host", "region", 3306, "user");

Not sure if these are related:

https://github.com/aws/aws-sdk-cpp/issues/868

https://github.com/aws/aws-sdk-cpp/issues/864

Any help will be appreciated.

0

There are 0 answers