Create a RDS Database Server
- Open the Amazon RDS console athttps://console.aws.amazon.com/rds/.
- In the navigation bar, verify the selected region.
- In the navigation pane, clickSubnet Groups, and then click Create DB Subnet Group.
- Complete theCreate DB Subnet Group page as follows:
- Enter a name inName. For example, my-db-subnet-group.
- Enter a description inDescription.
- Select your VPC fromVPC ID.
- InAvailability Zone, select the first Availability Zone from the list. Select the private subnet from Subnet ID, and then click Add.
- InAvailability Zone, select the second Availability Zone from the list. Select the private subnet from Subnet ID, and then click Add.
- In the navigation pane, clickInstances, and then click Launch DB Instance.
- On theSelect Engine page, select the MySQL tab, and then click Select
Configure a Virtual Private Cloud (VPC)
Amazon Virtual Private Cloud (Amazon VPC) enables you to launch Amazon Web Services (AWS) resources into a virtual network that you’ve defined. This virtual network closely resembles a traditional network that you’d operate in your own data center, with the benefits of using the scalable infrastructure of AWS.
VPC with Public and Private Subnets (NAT)
Amazon VPC enables you to launch AWS resources into a virtual network that you’ve defined, called a virtual private cloud (VPC). The configuration for this scenario includes a virtual private cloud (VPC) with a public subnet and a private subnet.
Cloud computing is fast becoming the standard method of creating scalable, manageable web application services, and Amazon is leading the way. Master the complexities of AWS and understand all of your options with this comprehensive Learning Path. Learn to make your existence in the cloud trouble-free.
A web app is any software that users access through a web browser or specialized web client. Web apps are typically structured into logical tiers. For example, a common structure uses three tiers. The first tier is the web browser, which is responsible for presenting the user interface. The middle tier is an application server, which is responsible for the application’s functionality. The third tier is a database server or file system, which is responsible for data storage.
Create a source bundle, which includes the deployment scripts, and upload it to AWS CodeCommit repository
Now you can download the following sample bundle to your local repository and push the change to the central repository along with your application code hosted on AWS CodeCommit. The sample bundle includes everything you need to work AWS CodeDeploy: the Application Specification (AppSpec) file and deployment scripts.
Use AWS CodeDeploy to Deploy Amazon EC2 Instances Behind an Elastic Load Balancer and Auto Scaling
Let’s assume you have an application architecture designed for high availability that includes an Elastic Load Balancer in front of multiple application servers belonging to an Auto Scaling Group. Elastic Load Balancing enables you to distribute incoming traffic over multiple servers and Auto Scaling allows you to scale your EC2 capacity up or down automatically according to your needs In this blog post, we will show how you can use CodeDeploy to avoid downtime when updating the code running on your application servers in such an environment. We will use the CodeDeploy rolling updates feature so that there is a minimum capacity always available to serve traffic and use a simple script to take EC2 instances out of the load balancer as and when we deploy new code on it.