...
/Hands-On: Moving Configuration Parameters to the SSM Parameter Store
Hands-On: Moving Configuration Parameters to the SSM Parameter Store
Learn to move our configuration parameters to the SSM parameter store.
We'll cover the following...
Let’s move the configuration parameters from the EC2 user data into the SSM parameter store.
We learned the commands to do so already in the last lesson:
ssm put-parameter
to create a new parameterssm get-parameter
to read a SSM parameter
Now it’s your turn!
Extracting database credentials
The script below extracts the EC2 user data from the latest version of our launch template and stores the following configuration values in variables:
DB_HOST
: The hostname of our RDS databaseDB_PASSWORD
: The password for our RDS databaseDB_NAME
: The database name within RDS databaseDB_USER
: The username to