RightScale Support Wiki > Tutorials > Amazon Web Services (AWS) > Website Edition > Deployment Setup > Create Credentials to Access your Database

Create Credentials to Access your Database

When new servers are launched, the software running on those servers need credentials in order to access resources and perform tasks.   For example, an application server needs a password in order to access your database or backup scripts need the aws_secret_access_key in order to store the backup file in your S3 bucket.  Any type of sensitive information that need to be passed directly into a server should be stored as a credential.  Credentials saved in the Dashboard are encrypted and cannot be retrieved through the web interface. 

NOTE: These credentials are specific to running servers and are different from account credentials, which are used by RightScale to access Amazon Web Services on your behalf, such as launching new servers.

Objective

To create credentials to access your database.  You'll need to create the credentials for the database and for DNSMadeEasy.

Create Database Credentials

First you'll create credentials for your database.  You need to make sure that the DB users that you create are not root.  Our scripts expect there to be "no password" for the root.  If you set a password for the root, it will break our scripts.

  • DBADMIN_USER
  • DBADMIN_PASSWORD
  • DNSMADEEASY_USER
  • DNSMADEEASY_PASSWORD
  • DBAPPLICATION_USER
  • DBREPLICATION_USER

Go to Design -> Credentials.

Click New Credential

Name the first credential DBADMIN_USER.  Add a value of admin.

Click Save.

02-credentials_new_form.gif

Now create several more credentials with the following names and values.

NOTE: The user/password values can be any value that you define.

 DBADMIN_USER  Your admin username
 DBADMIN_PASSWORD  Your admin user password
 DBAPPLICATION_USER  Your application username
 DBAPPLICATION_PASSWORD  Your application user password
 DBREPLICATION_USER  Your replication username
 DBREPLICATION_PASSWORD  Your replication user password

 

 04-credentials_database.gif

 

Create DNSMadeEasy Credentials

Next you'll create the DNSMadeEasy credentials for the database.

Create the following credentials:

 

 DNSMADEEASY_USER  my_user
 DNSMADEEASY_PASSWORD  my_passwd

 

 05-credentials_all.gif

 Congratulations!  You've just added credentials to access your database.

 ----------------------

Did you find this document helpful?  Please feel free to leave us a comment below so that we'll know how we can improve our documentation.  Thanks!

Tag page
You must login to post a comment.