Setup RDS Database
Now we're going to actually use RDS by setting up a quick facts
database.
Make sure you're logged into the RDS database instance as the admin user using any MySQL client. Use the admin password from Secrets Manager.
step 1:
step 2:
We have just created a new user that will be able to connect to the database, but only by using IAM credentials. That means we don't need to worry about managing and rotating passwords for the database.
In order to connect to the database using this user we use IAM to generate a temporary password. We can do this right now using the AWS CLI, but we'll usually write code to do this from our application.