Tuesday, 20 October 2015

Deploying PlayFramework application on Amazon EC2

Friend of mine asking about deploying PlayFramework application on EC2(Elastic Compute Cloud).So I dicided to write all the steps required. Following are the steps for deploying play app on EC2.

  • Creating EC2 instance 
  1.  Create Amazon account and "Sign Into Console"
  2.  Select "Launch Instance".
  3. Choose Amezon machine image , select ubuntu Srever.
  4. Choose Available micro Instance. Select next setting upto to "Configure Security Group".
  5. Add Security Rule for SSH,HTTP,HTTPS, Basically these rule control traffic.
  6.  Launch Instance. 

  7. Please find following image for more info




  • Create key 
    •  Save generated key on your machine, we need it while connecting using SSH.
  • Create Elastic IP
    • Select your instance while creating Elastic IP. 
  • Connect EC2 instance using ssh  
  • Install JAVA 8 on EC2
  • Install Play framework on EC2.
  • Create and deploy distribution.
  • Port Forword (default 8080 to plays default 9000)
  • Register with Godaddy .




2 comments:

  1. Will write remaining part. How connect using ssh and all end point. If point is not clear please let Mr know

    ReplyDelete