๐Ÿงช Lab 2: Cloud Deployment Strategies (AWS, RHEL) (OPTIONAL LAB)

Course: CompTIA Cloud+ CV0-004
Objective: Understand deployment models and implement a simple blue/green deployment strategy using AWS and RHEL.


๐ŸŽฏ Goals


๐Ÿ“š Part 1: Review Cloud Deployment Models

Model Description Example
Public Hosted by third-party cloud provider AWS, Azure, GCP
Private Exclusive cloud environment for one org On-prem OpenStack
Hybrid Combines public and private clouds AWS Direct Connect + VMware

โœ… Checkpoint: Know when to use each model depending on compliance, control, or scale.


๐Ÿš€ Part 2: Launch Blue & Green EC2 Environments with RHEL

1. Launch Blue Instance:

#!/bin/bash
sudo dnf update -y
sudo dnf install -y httpd
echo "<h1>Blue Version - RHEL</h1>" | sudo tee /var/www/html/index.html
sudo systemctl enable httpd
sudo systemctl start httpd

๐Ÿ” Part 3: Create Green Environment and Test Cutover

1. Launch Green Instance:

#!/bin/bash
sudo dnf update -y
sudo dnf install -y httpd
echo "<h1>Green Version - RHEL</h1>" | sudo tee /var/www/html/index.html
sudo systemctl enable httpd
sudo systemctl start httpd

๐ŸŒ Part 4: Use Route 53 to Cut Over Traffic

1. Create a Hosted Zone

๐Ÿ“Œ Note: If you do not own a domain, you can test using public IPs or consider using a free domain provider like duckdns for lab purposes.

2. Create an A Record for the Blue Environment

3. Test the DNS Routing

#!/bin/bash
dig cca-yourname-cloudlab.example.com

โœ… Lab Complete