I have a lambda that runs every day to cycle the RDS master password. I create the password using the random provider, and save it to a secrets manager secret - the first time the environment is created, the secret is in plaintext in the state, but it will not be valid the next time the lambda runs (less than 24 hours).
You can do the same with ElastiCache auth tokens, and ensure your application reads the token from a value in secrets manager.