82397/anyone-please-connecting-redshift-database-authentication
I need a java code to connect to an AWS Redshift cluster programmatically with IAM Authentication rather than specifying the password and username for connecting.
Hi,
You can connect your Redshift database using Java connector or driver. Amazon has its own document to do this connection. I have attached the line below. You can go through once.
https://docs.aws.amazon.com/redshift/latest/mgmt/connecting-in-code.html
According to my knowledge, IAM authentication we generally use for AWS CLI to run any command. Here you are using Java code. So you can use aws cli command to your code. Like in Python code we use the boto module to connect with AWS.
Hey, Can you please share an example on how to use aws cli command in the code for that on how to do so?
Thanks in advance.
You can go through the below link. It will help you to configure AWS SDK for Java. I hope it will solve your requirement.
https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/java-dg-samples.html
refer this link https://aws.amazon.com/certificate-manager/faqs/ You can't install the certificates ...READ MORE
This can be done using the following ...READ MORE
A fresher with the certification and knowledge ...READ MORE
There are 2 methods in this class which should ...READ MORE
Hi, Here for the above mentioned IAM user ...READ MORE
It can work if you try to put ...READ MORE
AWS ElastiCache APIs don't expose any abstraction ...READ MORE
There is no solution to use IAM ...READ MORE
Hi, You can't say that AWS Solution Architect Associate ...READ MORE
Hi@akhtar, You can change the password of the IAM ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.