How To Create Database In Aws Rds
Create a DB instance
In this step, you create an Amazon RDS for MySQL DB instance that maintains the data used by a web application.
To create a MySQL DB instance
-
Sign in to the AWS Management Console and open the Amazon RDS console at https://console.aws.amazon.com/rds/
. -
In the upper-right corner of the AWS Management Console, choose the AWS Region where you want to create the DB instance. This example uses the US West (Oregon) Region.
-
In the navigation pane, choose Databases.
-
Choose Create database.
-
On the Create database page, shown following, make sure that the Standard create option is chosen, and then choose MySQL.
-
In the Templates section, choose Free tier.
-
In the Settings section, set these values:
-
DB instance identifier –
tutorial-db-instance
-
Master username –
tutorial_user
-
Auto generate a password – Clear the check box.
-
Master password – Choose a password.
-
Confirm password – Retype the password.
-
-
In the DB instance class section, enable Include previous generation classes, and set these values:
-
Burstable classes (includes t classes)
-
db.t2.micro
-
-
In the Storage and Availability & durability sections, use the default values.
-
In the Connectivity section, set these values:
-
Virtual private cloud (VPC) – Choose an existing VPC with both public and private subnets, such as the
tutorial-vpc
(vpc-identifier
) created in Create a VPC with private and public subnetsThe VPC must have subnets in different Availability Zones.
-
Subnet group – The DB subnet group for the VPC, such as the
tutorial-db-subnet-group
created in Create a DB subnet group -
Public access – No
-
VPC security group – Choose existing
-
Existing VPC security groups – Choose an existing VPC security group that is configured for private access, such as the
tutorial-db-securitygroup
created in Create a VPC security group for a private DB instance.Remove other security groups, such as the default security group, by choosing the X associated with each.
-
Availability Zone – No preference
-
Open Additional configuration, and make sure Database port uses the default value
3306
.
-
-
In the Database authentication section, make sure Password authentication is selected.
-
Open the Additional configuration section, and enter
sample
for Initial database name. Keep the default settings for the other options. -
To create your MySQL DB instance, choose Create database.
Your new DB instance appears in the Databases list with the status Creating.
-
Wait for the Status of your new DB instance to show as Available. Then choose the DB instance name to show its details.
-
In the Connectivity & security section, view the Endpoint and Port of the DB instance.
Note the endpoint and port for your DB instance. You use this information to connect your web server to your DB instance.
-
Complete Create an EC2 instance and install a web server.
How To Create Database In Aws Rds
Source: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Tutorials.WebServerDB.CreateDBInstance.html
Posted by: kellyanowbod1944.blogspot.com
0 Response to "How To Create Database In Aws Rds"
Post a Comment