ML's Cloud Playground

Some of my Cloud demos

        
        billrain.net deployed on AWS -- 
      

Cloud Provider

  • AWS
  • GCP
  • Azure
            $ aws s3 mb s3://ec2-myapp --region ap-southeast-1 
aws deploy push --application-name myapp-ec2 --s3-location s3://ec2-myapp/myApp.zip --ignore-hidden-files --region ap-southeast-1
$ Happy New Year $ Happy too

Main Site

The main site is hosted with Apache/Nginx on AWS EC2(AZ+), fronted by ELB and built, tested, deployed by CodePipeline. Scheduled shutdown and restart with Lambda function in my sleep time, domain failover by Route 53.

CloudFormation

CloudFormation Template can be used to create the EC2 stack with ALB, target group, and security group which only accepts HTTP traffic from ALB, it also install CodeDeploy agent on EC2.

GCP

A Python web app (source hosted@Github) is built by GCP Cloud Build and run by Cloud Run, code change will trigger build-test-deploy.

SRE

CloudWatch agent is installed on EC2 to collect web server access/error logs and sent to OpenSearch(ELK) for Analysis. (Cognito is used for OpenSearch dashboard SSO with Google.)

Kubernetes

Build and deploy Python web app with Docker, ECR and EKS.

AWS S3 Static web housting

Host SG income tax app on AWS S3, routed by Route53 and CDN by CloudFront with SSL.

Rehost Main Site

Re-hosted main site from AWS ASG to S3 to save cost.

Todo6

Build Java Spring web application on AWS/GCP

Read my documentation for details.

Documentation

Changelog

v0.1

25/01/2022

v0.2

15/02/2022
  • Init build
  • Added rain js effect
  • Added doc