AWS development lets build

Moving wordpress to Lightsail

Facilities

AWS can host on:

Lightsail

Lightsail instance is virtual private server.
Choose a region near your users, choose an AZ.
Lightsail has many click to launch operating stacks, e.g. ubuntu, linux, wordpress
Create snapsots - as backups.

Migrating

Content delivery netork (CDN): cache, saves images closer to end user

edit wp_config.php to change site_url to use SSL / cloudfront
disable banner

set up custom domain

Use SSL: have a static IP.
create SSL certificate
Need to prove ownership. create DNS transfer info from provider that proves you've valid owner
paste in name of cloudfront distribution

target architecture

blog posts on AWS compute blog

Host your full-stack app on Elastic Beanstalk with a RDS database

implement ML to recognise images.

Services used

target architecture

Database is inside VPC, outside of EB - because want to presist database when EB is torn down. That wipes the EB database.

RDS setup

Beanstalk setup

Keeping your application running under load

Services

Elastic beanstalk test scale with j-meter

cpu scaling

db scaling

choose scaling window - can do immediately but downtime.

Maintain your web application cost (while scaling)

Scaling target architecture

Developers have clone of environment: can save money by overlapping

Compute pricing

Best to combine different types:

Things to change

How to add a Serverless backend and path-based routing

Moves operating of servers to AWS
All scaling automatic
Serverless is the native architecture of the cloud that enables you to shift more of your operational responsibilities to AWS, increasing your agility and innovation

serverless

target architecture: