- Classic Load Balancer
- Launch two EC2 instances in different availability zones
- Use bootstrap scripts
- View web pages from the public internet
- Create Classic Load Balancer
- Advanced Details
- Response Timeout: 2 seconds
- Interval: 5 seconds
- Unhealthy Threshold: 2
- Healthy Threshold: 3
- Advanced Details
- View the DNS name
- Verify EC2 instances are InService
- Browse load balancer DNS name from web browser
- Refresh multiple times
- Power off web server 01
- Verify web server 01 is OutOfService
- Verify load balancer only distributing traffic to web server 02
- Power on web server 01
- Delete classic load balancer
- Launch two EC2 instances in different availability zones
- Target Group
- Create Target Group
- Health Check Path: /index.html
- Healthy Threshold: 2
- Unhealthy Threshold: 3
- Timeout: 5
- Interval: 2
- Add targets
- Create Target Group
- Application Load Balancer
- Create applicaiton load balancer
- Select all availability zones
- Verify targets are in healthy state
- Review load balancer listeners
- “Edit” load balancer listeners
- Test the application load balancer
- Refresh multiple times
- Create applicaiton load balancer
- Launch Configuration
- Create a launch configuration
- Associate with IAM role
- Use bootstrap script
- Create a launch configuration
- Auto Scaling Group
- Create Auto Scaling group
- Group Size: 3
- Subnet: select all available
- Use scaling policies to adjust the capacity of this group
- Scale between 3 and 6 instances
- Metric type: CPU Utilization
- Target value: 80
- Instances need: 60
- View activity history
- View instances
- Terminate two EC2 instances
- Verify two EC2 instances are launched
- View activity history
- Delete the auto scaling group
- Create Auto Scaling group
- High Availability Website
- Create two S3 buckets
- Create CloudFront Distribution (media)
- Create security group for RDS
- Provision RDS instance
- Engine Options: MySQL
- Templates: Dev/Test
- DB Instance Size: db.t2.micro
- Availability & Durability: Multi-AZ Deployment
- Monitoring: Disable Enhanced Monitoring
- Verify role for EC2 instance S3 access
- Provision EC2 Instance
- Assign role
- Use bootstrap script
- Verify .htaccess file is created
- Install WordPress
- Publish post with image
- View image on EC2 instance
- Verify EC2 Instance can view buckets
- Copy image to S3 bucket (aws s3 cp –recursive /var/www/html/wp-content/uploads s3://bucket)
- Copy website to bucket (aws s3 cp –recursive /var/www/html s3://bucket)
- View WordPress code in S3 bucket from CLI
- Update .htaccess with CloudFront URL
- Sync /var/www/html to S3 bucket (aws s3 sync /var/www/html s3://bucket)
- Configure Apache URL rewrites (/etc/httpd/conf/httpd.conf)
- Configure Bucket Policy for media bucket
- View WordPress site from internet
- Verify URL rewrite of image
- Create application load balancer
- Create new target group
- Register EC2 instance to target group
- Create new target group
- Verify application load balancer is in active state
- Register EC2 instance in target group
- Configure Route 53 Alias record
- View website using domain name
- Configure cronjob for syncing readers (*/1 * * * * root aws s3 sync –delete s3://bucket /var/www/html)
- Restart cron service
- Test the cronjob
- Create AMI for read node
- Configure write node (*/1 * * * * root aws s3 sync –delete /var/www/html s3://bucket & */1 * * * * root aws s3 sync –delete /var/www/html/wp-content/uploads s3://bucket)
- Test the write node
- Create auto scaling group
- Create new launch configuration
- Select WordPress read AMI
- Apply IAM S3 role
- Apply bootstrap script
- Create auto scaling group
- Start with two instances
- Select all availability zones
- Receive traffic from one or more load balancers
- Target group
- ELB health check
- Health Check Grace Period: 60
- Create new launch configuration
- Remove write node from target group
- Verify two instances are launching
- Verify target group targets are healthy
- View domain
- Login to WordPress dashboard
- Add new post
- Test loss of AZ
- Reboot RDS instance with failover
- Verify website is still accessible
- Delete all AWS resources
-
Recent Posts
Categories
- Amazon CloudWatch
- Amazon Elastic Compute Cloud
- Amazon Virtual Private Cloud
- Amazon Web Services
- Ansible
- Apache
- Architecture
- Automation
- AWS Command Line Interface
- AWS Identity and Access Management
- Backups
- Barracuda Networks
- BIND
- BIOS
- Brocade
- Certification
- Cisco
- Cisco Unified Computing System
- Dell
- Dell Compellent
- Dell Lifecycle Controller
- Dell OpenManage Essentials 2.1
- Dell PowerEdge R630
- Distributed File System
- Documentation
- Domain Name System
- Dynamic Host Configuration Protocol
- EIGRP
- Fibre Channel
- File Services
- GitHub
- IEEE 802.1q
- Integrated Dell Remote Access Controller 8
- Intel
- Internet Information Services
- iSCSI
- Linksys
- Linktree
- Linux
- Microsoft Active Directory
- Microsoft Deployment Toolkit 2013
- Microsoft Exchange Management Shell
- Microsoft Exchange Server 2013
- Microsoft Exchange Server 2016
- Microsoft Failover Clustering
- Microsoft Group Policy Object
- Microsoft Hyper-V
- Microsoft Office 365
- Microsoft Windows 10
- Microsoft Windows Command Prompt
- Microsoft Windows PowerShell
- Microsoft Windows Server 2016
- Microsoft Windows Storage Server 2012
- Migration
- Multipath I/O
- Network
- Network Time Protocol
- Notepad++
- OSPF
- Python
- Red Hat Enterprise Linux 7
- RIP
- Scripting
- Service Account
- Services
- Storage Area Network
- Symantec Backup Exec 2012
- Symantec Endpoint Protection
- Technical Utilities
- Telnet
- Terraform
- Ubuntu
- Uncategorized
- Virtualization
- VLANS and Trunking
- VMware
- VMware ESXi 5.5
- VMware ESXi 6.0
- VMware ESXi 6.5
- VMware ESXi 6.7
- VMware PowerCLI
- VMware vCenter Converter
- VMware vCenter Server 5.0
- VMware vCenter Server 6
- VMware vCenter Server 6.0
- VMware vCenter Server 6.5
- VMware vCenter Server 6.7
- VMware vSphere 5.0
- VMware vSphere 6.0
- VMware vSphere 6.5
- VMware vSphere Update Manager 6.0
- VMware Workstation 11
- Windows Server 2019
- Windows Server Update Services
- Wireless Networking
Archives
- April 2023
- June 2022
- March 2022
- February 2022
- November 2020
- September 2020
- July 2020
- May 2020
- April 2020
- March 2020
- January 2020
- November 2019
- October 2019
- September 2019
- June 2019
- May 2019
- April 2019
- December 2018
- November 2018
- October 2018
- September 2018
- August 2018
- July 2018
- June 2018
- May 2018
- April 2018
- November 2017
- September 2017
- July 2017
- March 2017
- February 2017
- January 2017
- December 2016
- November 2016
- October 2016
- August 2016
- July 2016
- June 2016
- May 2016
- April 2016
- March 2016
- February 2016
- December 2015
- November 2015
- October 2015
- July 2015
- June 2015
- May 2015
- April 2015
- March 2015
- January 2015
- December 2014
- November 2014
- October 2014
- August 2014
- July 2014
- March 2014
- February 2014
- January 2014
- December 2013
- November 2013
- October 2013
- September 2013
- August 2013
- July 2013
- June 2013
- May 2013
- December 2012
- November 2012
- June 2012
- May 2012
- April 2012
Meta