2. Why we did it *
Our team was asked to reduce expenses at the cloud.
3. Analysis !
Single EC2 (m3.large) with 200GB EBS in Singapore Region
was being used to host the Wordpress driven site
(www.ivldsp.com) the billing was around 230 USD per
month.
4. Draft Suggestion
• Migrate application into smaller instance (t2 small)
• Use S3 for file storage (Wordpress Media Manager)
• Build static version and publish to S3
• Use CloudFront (and https) for full site delivery
5. Challenges
• Feed Back Forms (Need post processors)
• Demo Request submit to Zoho CRM
• Lead Generation into Zoho CRM
• Product Demo Video transcoding and Updates
6. Full Solution
• Jenkins CI for Start/Stop EC2 & Publish WP
• Ubuntu + wget + bash + php - WP to Static
• S3 Bucket for Media Storage
• AWS Lambda + API Gateway for forms post process
• Cloud Front to deliver everything from same domain
7. Demo Video Updates
• Demo Video upload to scratch bucket on S3
• Lambda Triggers and validates file
• Less than 300 MB - ffmpeg in lambda will process
• More than 300 MB - EC2 Spot instance will process
• Final output to demo repository in S3
8.
9. Originally we were
spending around 230 USD
per month for the sole web
site
Last month the billing for
the particular website was
35 USD.
Conclusion