Amazon RDS is a database cloud service.
It is easy to set up and manage.
It is FREE to try!
Amazon Relational Database Service (RDS) is a cloud based database service.
Amazon RDS manages many of the challenges of running a database.
With Amazon RDS you can scale performance and storage as you need it.
Amazon RDS manages automated backups, patching, and recovery.
It supports popular database products like:
Before you can start using RDS, you need to sign up for Amazon Web Services, and set up a database user and security group.
When you sign up for Amazon Web Services (AWS), your AWS account is automatically signed up for all services in AWS, including Amazon RDS.
If you are a new AWS customer, you can get started with Amazon RDS for free.
The AWS Free Tier is allows you to try AWS for free for 12 months after you sign up. For more information, see AWS Free Usage Tier.
If you decide to continue with AWS after your free period (or if you need more storage or performance than the free usage tier offers), you only pay for the resources you use.
To create an AWS account go to: https://aws.amazon.com/, and then click Sign Up.
Follow the on-screen instructions. Note your AWS account number, because you'll need it later.
In this example we will set up a free Database instance running MySQL. (This is free because it is intended for testing).
Create a MySQL DB instance:
For this option: | Typical Input |
---|---|
License Model | general-public-license |
DB Engine Version | Select the default version of MySQL |
DB Instance Class | Select db.t2.micro to select a configuration that is eligible for free test usage |
Multi-AZ Deployment | Select No |
Storage Type | Magnetic (Standard) |
Allocated Storage | 5 |
DB Instance Identifier | Type the name of your database instance (this is not the name of your database) |
Master Username | Type the master username for your database |
Master Password | Type the password for your master user |
Confirm Password | Conform the password |
For this option: | Typical Input |
---|---|
VPC | Default VPC |
Subnet Group | default |
Publicly Accessible | Yes |
Availability Zone | No Preference |
VPC Security Group(s) | default |
Database Name | Type the name of your database (in this example, we will show you how to create the northwind database we use for examples in the AppML tutorial) |
Database Port | 3306 (unless you need it to run on a specific port) |
DB Parameter Group | Keep the default value |
Option Group | Keep the default value |
Enable Encryption | No |
Backup Retention Period | 7 |
Backup Window | No Preference |
Auto Minor Version Upgrade | Yes |
Maintenance Window | No Preference |
databasename.
aaabbbcccddd.
region.rds.amazonaws.com:3306
To configure the database connection, edit the appml_config file:
<?php echo("Access Forbidden");exit();?>
{
"dateformat" : "yyyy-mm-dd",
"databases" : [{
"connection" : "
mydatabase",
"host" : "
yourDatabaseURL",
"dbname" : "
yourDatabaseName",
"username" : "
yourUserName",
"password" : "
yourPassword"
}]
}
Edit the following:
AppML should now be configured to connect to your Amazon RDS database.
You can now fill your database with data:
Optional: Create an IAM User for increased security
Amazon RDS, require that you provide username and password when you access it.
You can access the account with your Amazon username, but for security purposes we recommend that you create an Identity and Access Management (IAM) user, for your database.
First, create the Administrators group:
Then create the IAM user, and add it to the Administrators group:
To sign in as this new IAM user, sign out of the AWS console, then use the following URL:
https://
your_aws_account_id.signin.aws.amazon.com/console/
Replace your_aws_account_id with your AWS account number without the hyphens (if your account number is 1234-5678-9012, your AWS account ID is 123456789012)