Changes

Jump to: navigation, search

OPS705 Assignment 2

567 bytes added, 17:14, 9 April 2022
no edit summary
In this assignment, you will install a WordPress blog in AWS using Elastic Beanstalk and RDS.'''You will construct this assignment in our ''AWS Academy Learner Lab - Foundation Services'' classroom.'''
Unlike labs, assignments have minimal instructions. You are given specifications on what the assignment needs, and you must rely on your previous work in the course. If the assignment doesn't have the command you need, you can find it in your labs. As with Assignment 1, don't be afraid to do a little research!
== Virtual Private Cloud ==
Create a new VPC with the following settings:
# '''VPC only'''# Name: '''Wordpress VPC'''# IPv4 CIDR: '''10.0.0.0/16'''
# Leave all other settings on default
 
Once created, modify this VPC with the following actions:
# Edit DNS hostnames: '''Enable'''
== Subnets ==
Create two private IPv4 subnets in this VPC:
# Private Subnet 1 – '''10.0.1.0/24 ''' '''us-east-1a'''# Private Subnet 2 – '''10.0.2.0/24 ''' '''us-east-1b'''
Create two public IPv4 subnets in this VPC:
# Public Subnet 1 – '''10.0.11.0/24 ''' '''us-east-1a'''# Public Subnet 2 – '''10.0.12.0/24 ''' '''us-east-1b'''
Edit your public subnets with the following settings:
# Enable auto-assign public IPv4 address
== Internet Gateway ==
Create a new Internet Gateway with the following:
# Name: '''Wordpress Gateway'''# Once created, attach it to your Wordpress VPC.
== Route Tables ==
Create a second route table:
# Name: '''Wordpress Website Route Table'''# VPC: '''Wordpress VPC'''
# Routes Entry 1:
## Destination: '''10.0.0.0/16'''## Target: '''local'''
# Routes Entry 2:
## Destination: '''0.0.0.0/0'''## Target: '''Internet Gateway – Wordpress Gateway'''
== Security Groups ==
Create a security group with the following settings:
# Name: '''Wordpress Website SG'''# Description: '''Allows HTTP traffic inbound'''# VPC: '''Wordpress VPC'''
# Inbound Rule:
## Type: '''HTTP'''## Source: '''Anywhere – IPv4 (0.0.0.0/0)'''
Create a security group with the following settings:
# Name: '''Wordpress Database SG'''# Description: '''Allows MySQL traffic locally'''# VPC: '''Wordpress VPC'''
# Inbound Rule:
## Type: '''MYSQL/Aurora'''## Source: '''Custom ''' (Select ''Wordpress Website SG '' in the search field)
Edit both public subnets’ route table associations to: '''Wordpress Website Route Table'''
= Task 2: Database =
Create a new RDS instance with the following settings:
# Engine options: '''MySQL'''# Templates: '''Free tier'''# DB instance identifier: '''wordpress-db'''# Master username: '''admin'''# '''Auto generate a password'''# DB instance class: '''db.t3.micro'''# Allocated storage: '''5'''# Enable storage autoscaling: '''Unchecked'''# Virtual private cloud (VPC): '''Wordpress VPC'''# Subnet group: '''Create new DB Subnet Group'''# Public access: '''Yes'''# VPC security group: Choose existing, remove default VPC, add '''Wordpress Database VPC'''# Availability Zone: '''us-east-1a'''# Additional configuration, Initial database name: '''wordpress'''# Enable automated backups: '''Unchecked'''# Enable encryption: '''Unchecked'''# Enable Enhanced monitoring: '''Unchecked'''
Once the database has finished creating, click on the ''View connection details '' button by the green success message at the top of the page. This gives you your database password.
Store the ''Master username'', ''Master password'', and ''Endpoint '' in a saved document. '''You’ll need it later.'''
= Task 3: Elastic Beanstalk =
Create a new Elastic Beanstalk application with the following settings:
== Main settings ==
# Application name: '''wordpress'''# Platform: '''PHP'''# Application code: '''Upload your code'''# Choose file: '''Downloaded wordpress source code zip file'''# Version label: ''wordpress-versionnumber '' (Example: wordpress-5.9.3)
== Configure more options ==
# Software > Document root: '''/wordpress'''# Security > Service role: '''LabRole'''# Security > EC2 key pair: '''vockey'''# Security > IAM instance profile: '''LabInstanceProfile'''# Monitoring > System: '''Basic'''# Managed updates > Enabled: '''Unchecked'''# Notifications: ''YourSenecaE-mailAddress''# Network > VPC: '''Wordpress VPC'''# Network > Public IP address: '''Checked'''# Network > Instance subnets: '''Public Subnet 1, Public Subnet 2 ''' (both checked)# Network > Database subnets: '''Private Subnet 1, Private Subnet 2 ''' (both checked)# Instances > '''Wordpress Website SG ''' (both checked)
# Create the application.
== Database Connector ==
Use the following database connector information:
# Database Name: '''wordpress'''# Username: '''admin'''# Password: ''yourRDSpassword''# Database Host: ''yourRDSendpoint''# Table Prefix: '''wp_'''
== Site Information ==
Set the following site information:
# Site Title: '''OPS705 Winter 2022 – Assignment 2'''# Username: ''yourSenecaUsername''# Password: ''Choose a strong password '' (do not reuse the DB password)# Your Email: ''yourSenecaEmailAddress''# Search engine visibility: '''Checked'''
= Task 5: Blog Posts =

Navigation menu