aws-doc-sdk-examples icon indicating copy to clipboard operation
aws-doc-sdk-examples copied to clipboard

[Enhancement]: Java v2 IAM DB authentication example for RDS and Aurora

Open randyurbano opened this issue 3 years ago • 1 comments

Background story

The RDS and Aurora User Guides have a Java v1 example that demonstrates how to use IAM DB authentication. The RDS User Guide topic is here: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.Connecting.Java.html

Users have requested a Java v2 example. Users have also complained that the Java v1 example is complex and confusing.

We need a Java v2 example that generates an IAM DB authentication token and then connects to a MySQL database and a PostgreSQL database. We need a separate example for each engine.

Examples for Python are in this topic:

https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.Connecting.Python.html

What does this example accomplish?

Shows users how to use the Java v2 SDK to connect to DB instance or DB cluster using IAM DB authentication.

Which AWS service(s)?

Amazon RDS

Which AWS SDKs or tools?

  • [ ] All languages
  • [ ] .NET
  • [ ] Go (v2)
  • [ ] Java
  • [X] Java (v2)
  • [ ] JavaScript
  • [ ] JavaScript (v3)
  • [ ] Kotlin
  • [ ] PHP
  • [ ] Python
  • [ ] Ruby
  • [ ] Rust
  • [ ] Swift
  • [ ] Not applicable

Are there existing code examples to leverage?

No existing Java v2 examples.

Do you have any reference code?

https://github.com/awsdocs/aws-doc-sdk-examples/blob/main/javav2/example_code/rds/src/main/java/com/example/rds/GenerateRDSAuthToken.java

randyurbano avatar Sep 14 '22 21:09 randyurbano

Marked stale by the Shirriff. Notifying @aws-sdk-docs-code-maintainers.

github-actions[bot] avatar Nov 14 '22 01:11 github-actions[bot]