Chances are that at least one of your applications will need a database. This article shows you how to create a new database.
The following databases are currently supported on AWS:
- SQL Server
The databases you create through Caylent are deployed to Amazon's Relational Database Service (RDS) and are attached to your Stack. Once deployed, the attached databases are available to your applications.
Please note: Only AWS stacks currently support databases.
Before you begin, be sure that you've completed the steps in Connect Amazon Web Services. We also recommend you read Deploy your first Stack. This article assumes you already know the basics of Stack creation.
Step 1 - Create a database
Databases can be added to any un-deployed Stack.
If you add a database to a deployed Stack, the database will not be created until the Stack is re-launched.
From the Stacks dashboard, click on the Stack you'd like to create a database for. This brings up the Stack console.
Navigate to the 'Services' tab and click 'Add' beneath Databases.
Next, specify the properties your database needs. Click 'Save' once finished.
Step 2 - Deploy the Stack
Databases are automatically created when the Stack they are attached to is deployed.
Click 'Deploy Stack' from any tab of the Stack console.
Please note: It can take up to 30 minutes for AWS to create the entire Stack, including the database.
You may refresh the page periodically until you get confirmation the Stack has been successfully deployed.
Step 3 - Find Database Endpoint
Navigate to the 'Resources' tab of the Stack console.
This screen gives you a list of all Stack endpoints and IP addresses, including databases.
Scroll to the bottom of the list and click 'Show Properties' next to DatabaseGroup. You will be able to see the database endpoint here.
Now that we've covered how to create and deploy a database, we suggest you explore how to setup environment variables.
Other things you can do:
- Deploy an Application
- Setup Continuous Delivery