SUPPORT


How to get Python Django Flask Developer Suit on AWS




This section describes how to launch and connect to Python Django Flask Developer Suit in Amazon Web Services (AWS).


  1. Open Python Django and Flask Developer Suit VM listing on AWS marketplace

  2. /img/aws/python-django-flask/marketplace.png

  3. Click on Continue to subscribe.
    • Login with your credentials and follow the instruction.click on Continue to configuration
    • Select a Region where you want to launch the VM(such as US East (N.Virginia))

    • /img/aws/python-django-flask/region.png

    • Choose Action:you can launch it through EC2 or from Website.(Let's choose Launch from website)

    • /img/aws/python-django-flask/launch.png

    • Optionally change the EC2 instance type. (This defaults to t2.small instance type, 1 vCPUs and 2 GB RAM.)

    • Optionally change the network name and subnetwork names.

      /img/aws/python-django-flask/vpc.png

    • Select the Security Group.Be sure that whichever Security Group you specify have ports 22 (for ssh) , 3389 (for RDP) , 80 (for HTTP) and 443 (for HTTPS) exposed.
    • Be sure to download the key-pair which is available by default, or you can create the new key-pair and download it.
    • /img/aws/python-django-flask/SG.png

    • Click on Launch..
      Python Django and Flask Developer Suit will begin deploying.
  1. A summary page displays.To see this instance on EC2 Console click on EC2 Console link.

  2. /img/aws/python-django-flask/deployed.png

  3. On the EC2 Console page, instance is up and running. To connect to this instance through putty, copy the IPv4 Public IP Address

  4. /img/aws/python-django-flask/public-ip.png

  5. Open putty, paste the IP address and browse your private key you downloaded while deploying the VM, by going to SSH->Auth , click on Open. Enter ubuntu as userid

  6. /img/aws/python-django-flask/ssh-01.png

    /img/aws/desktop-linux/putty-02.png

  7. Once connected, change the password for ubuntu user using sudo passwd ubuntu command

  8. /img/aws/desktop-linux/ssh.png
  9. Now the password for ubuntu user is set, you can connect to the VM's desktop environment from any local windows machine using RDP protocol.

    From your local windows machine, goto "start" menu , in the search box type and select "Remote desktop connection". In the "Remote Desktop connection" wizard, copy the public IP address and click connect

  10. /img/aws/python-django-flask/rdp.png

  11. This will connect you to the VM's desktop environment. Provide the username (e.g "ubuntu") and the password set in the above "Reset password" step to authenticate. Click OK

  12. /img/aws/python-django-flask/rdp-login.png

  13. Now you are connected to the out of box Python Django and Flask Developer Suit environment.

  14. /img/aws/python-django-flask/rdp-desktop.png

  1. For connecting via Web Interface, SSH to the VM as shown in Step 4 and run below command-

    cat /home/ubuntu/vscode_pass.txt.

    Note down auto-generated password.

    Note: If the password is empty in the file, wait for 2 minutes and check again.

  2. /img/aws/python-django-flask/vscode_pass.png

  3. Once the vm is up and running, you can access Visual Studio Code by going to https://VM_Public_IP
    Make sure you type https and not http.
  4. You will see certificate warning, accept the warning to proceed for login

  5. /img/aws/python-django-flask/vscode-certificat-warning.png

  6. Use above auto-generated password from Step 13
    Note: If you happen to see a blank screen in the browser after login or page load error, wait for 1-2 minutes and open again in new browser window to see VSCode load.

  7. /img/aws/python-django-flask/vscode-web-interface.png

    /img/aws/python-django-flask/vscode-in-browser.png