Amazon has made the Virtual Private Cloud(VPC) as default for all the compute resources in all the regions across AWS. This brings a great opportunity for customers to take advantage of the VPC and design their networks and differ their workloads between public and private subnets. This will give the customers more control over their resources, networking, routing, and security.
Design and deploy a web application in VPC with all the architectural best practices is a challenge. Because we need to separate the workloads properly between the public and non-public zones, routing, and subnetting, high availability, scalability, etc.
Here I proposed an architectural diagram to deploy a CMS application in High Available, Scalable and Secure within AWS.
I will explain each component and how this architecture diagram will help you to deploy a great scalable and secure CMS application like Drupal and WordPress in AWS.
As per the above Diagram we have Infrastructure Tier, Web Tier, Database Tier, Cache Tier, and Deployment & Management Tiers
The Infrastructure Tier consists of NAT Instances, Load balancers, and Bastion/VPN instances. These instances are in Public Subnet because these should be reachable to the Internet via the Internet Gateway.
NAT Instances are deployed in NAT instances in HA in two public subnets in different zones to avoid the single point of failure.
Bastion/VPN Instance is to reach the rest of the private resources from the Internet. It would be a good idea to enable the MFA for this instance to get one more level of security. If you have any in-house VPN solution, you can use VPC Virtual Private Gateway to connect your network and we can remove the Bastion/VPN Instance.
Generally, a lot of people deploy the Web Servers in Public Subnet thinking that they are the first level resources to access the application. But, if you use an Elastic Load Balancer (ELB) you can put the ELB in public subnet spanning in multiple Availability Zones and move the Web Servers into Private Subnets completely. Make sure attached subnets for ELB should have at least 20 free IP Addresses in each zone to create an ELB.
Implement Auto Scaling for Web Tier spanning multiple availability zones, this brings the High Availability and Scalability to the application.
Deploy the Database Servers in separate private subnets. Use the Amazon RDS Database service to launch the database in Multi-AZ mode to bring the High Availability and use Amazon RDS Read-Replicas feature to separate the writes and read requests between the master database and read replicas. This brings the great scalability to the CMS applications in Database. This RDS service is hosted by AWS whereas we no need to manage the Multi-AZ and Read-Replicas.
Deploy the Cache Server in a separate private subnet. Use the Amazon Elastic Cache service, if you are using Memcache or Redis services for your CMS application. This cache service will be helpful for the sessions storing and page caching. It would be a good practice to move the session storing to the Cache Tier rather than storing on Database to avoid load on the Database servers. The Elastic Cache service is hosted by whereas we no need to manage the cache instances.
Deployment & Management Tier
Deploy the Deployment & Management servers in separate Private subnet.
The Deployment Server can be used to pull your version controlled code and static content hosted on either Git or SVN repositories and also can be used to deploy your code to Web Instances and copy/syncing the static content to the S3 bucket. You can use this instance to run some cron jobs or automation scripts.
The Monitoring Server will be used to monitor all resources which we have deployed for this CMS application using Nagios, Opsview monitoring tools, etc. Alone Cloud watch metrics and alarms cannot give you the complete insights of your VM and application-specific metrics. So third-party monitoring solution needs to be deployed to monitor both the VM and application specific metrics and enable the notifications via the Amazon SES, in case if any metric goes beyond the defined threshold level. And the monitoring portal can be accessed via the ELB.
Use CloudFront Distribution for Content Delivery Network (CDN) to deliver the static content from the nearest edge location based on your geographic location. This will help us to load the application swiftly in the browser.
Use AWS S3 as the source for the CloudFront to fetch the content. Copy/Sync static content from the deployment server to S3 bucket. S3 bucket is a hosted storage service by AWS, this brings greater scalability and high availability.
Use Amazon Route 53 for low-latency DNS service and Failover feature if you want to build a Disaster Recovery environment in another region for your application.
Use Amazon SES for your mail services which will be helpful to send the bulk emails to users like newsletters, breaking news, important updates, etc.
Use Amazon CloudWatch and Alarms to monitor and alert us on resources metrics and instance reachability checks based on defined threshold levels.
With the above deployment architecture, we have exposed only 3 kinds of resources NAT, Bastion/VPN and ELB to the public with restricted firewall rules and rest of all the resources are deployed and secured in private zone with high availability and scalability in place.
New Content: AWS Terraform, Java Programming Lab Challenges, Azure DP-900 & DP-300 Certification Exam Prep, Plus Plenty More Amazon, Google, Microsoft, and Big Data Courses
This month our Content Team continues building the catalog of courses for everyone learning about AWS, GCP, and Microsoft Azure. In addition, this month’s updates include several Java programming lab challenges and a couple of courses on big data. In total, we released five new learning...
Where Should You Be Focusing Your AWS Security Efforts?
Another day, another re:Invent session! This time I listened to Stephen Schmidt’s session, “AWS Security: Where we've been, where we're going.” Amongst covering the highlights of AWS security during 2020, a number of newly added AWS features/services were discussed, including: AWS Audit...
AWS re:Invent: 2020 Keynote Top Highlights and More
We’ve gotten through the first five days of the special all-virtual 2020 edition of AWS re:Invent. It’s always a really exciting time for practitioners in the field to see what features and services AWS has cooked up for the year ahead. This year’s conference is a marathon and not a...
WARNING: Great Cloud Content Ahead
At Cloud Academy, content is at the heart of what we do. We work with the world’s leading cloud and operations teams to develop video courses and learning paths that accelerate teams and drive digital transformation. First and foremost, we listen to our customers’ needs and we stay ahea...
Excelling in AWS, Azure, and Beyond – How Danut Prisacaru Prepares for the Future
Meet Danut Prisacaru. Danut has been a Software Architect for the past 10 years and has been involved in Software Engineering for 30 years. He’s passionate about software and learning, and jokes that coding is basically the only thing he can do well (!). We think his enthusiasm shines t...
New Content: AWS Data Analytics – Specialty Certification, Azure AI-900 Certification, Plus New Learning Paths, Courses, Labs, and More
This month our Content Team released two big certification Learning Paths: the AWS Certified Data Analytics - Speciality, and the Azure AI Fundamentals AI-900. In total, we released four new Learning Paths, 16 courses, 24 assessments, and 11 labs. New content on Cloud Academy At any ...
New Content: Azure DP-100 Certification, Alibaba Cloud Certified Associate Prep, 13 Security Labs, and Much More
This past month our Content Team served up a heaping spoonful of new and updated content. Not only did our experts release the brand new Azure DP-100 Certification Learning Path, but they also created 18 new hands-on labs — and so much more! New content on Cloud Academy At any time, y...
AWS Certification Practice Exam: What to Expect from Test Questions
If you’re building applications on the AWS cloud or looking to get started in cloud computing, certification is a way to build deep knowledge in key services unique to the AWS platform. AWS currently offers 12 certifications that cover major cloud roles including Solutions Architect, De...
Overcoming Unprecedented Business Challenges with AWS
From auto-scaling applications with high availability to video conferencing that’s used by everyone, every day — cloud technology has never been more popular or in-demand. But what does this mean for experienced cloud professionals and the challenges they face as they carve out a new p...
Constant Content: Cloud Academy’s Q3 2020 Roadmap
Hello — Andy Larkin here, VP of Content at Cloud Academy. I am pleased to release our roadmap for the next three months of 2020 — August through October. Let me walk you through the content we have planned for you and how this content can help you gain skills, get certified, and...
New Content: Alibaba, Azure AZ-303 and AZ-304, Site Reliability Engineering (SRE) Foundation, Python 3 Programming, 16 Hands-on Labs, and Much More
This month our Content Team did an amazing job at publishing and updating a ton of new content. Not only did our experts release the brand new AZ-303 and AZ-304 Certification Learning Paths, but they also created 16 new hands-on labs — and so much more! New content on Cloud Academy At...
Blog Digest: Which Certifications Should I Get?, The 12 Microsoft Azure Certifications, 6 Ways to Prevent a Data Breach, and More
This month, we were excited to announce that Cloud Academy was recognized in the G2 Summer 2020 reports! These reports highlight the top-rated solutions in the industry, as chosen by the source that matters most: customers. We're grateful to have been nominated as a High Performer in se...