H B
H B

Reputation: 1

How to configure password in application.properties from SSM?

The problem I am facing is when I write password spring.datasource.postgres.password=here then the connection with database is fine and everything is wroking but when i write spring.datasource.postgres.password=${name of ssm parameter} the connection is not being established and it shows

org.postgresql.util.PSQLException: FATAL: password authentication failed for user

aws ssm get-parameter --name "name of password parameter" --with-decryption i get the actual password in terminal but application.properties is not able to fetch it when i write ${name of ssm parameter}

I tried writing access key and secret key in VM args

I tried writing access key and secret key in application.properties

Upvotes: -4

Views: 27

Answers (0)

Related Questions