top of page

AWS Cloud9 IDE

  • Writer: Parag
    Parag
  • Jun 4, 2021
  • 2 min read

Updated: Jul 29, 2021

Learn AWS Cloud9 and test an application


Objectives:

  1. Learn AWS Cloud9 console to create and then open an AWS Cloud9 development environment.

  2. Learn to use the AWS Cloud9 IDE to create and test an application.


Step 1: Cloud9 operates in some specific regions for now. So we have to switch to one of those operative Regions.

In AWS Console, top blue bar, from Region drop down, select US East (Ohio) us-east-2.

ree

Step 2: Go to Cloud9 Service. Click on Create Environment.

ree

Provide the following configuration:

  • Environment Name: MyCloud9

  • Description: Cloud9 IDE for CloudPlusPlus Tutorial

Go to Next Step. Confirm the following list of default selected choices:

  • Environment type: Create a new EC2 instance for environment (direct access)

  • Instance type: t2.micro (1 GiB RAM + 1 vCPU)

  • Platform: Amazon Linux 2 (recommended)

Proceed to Next Step. Review and click on Create environment.


Step 3: You will have the Cloud9 IDE ready in some time. A window as below is visible.

ree

In the bottom part of the screen, a Terminal Window is visible. If not go to the Window option in Menu Bar of Cloud9 IDE and click on New Terminal.

Type the following command to check if Python is installed.

python --version

It will give the python installed version.


Now go to File -> New File.

Type in the following code:

import sys

print('Hello World! CloudPlusPlus Welcomes You')

sum = int(sys.argv[1]) + int(sys.argv[2])

print('The total sum of {0} and {1} is {2}.'.format(sys.argv[1], sys.argv[2], sum))


Save this file (Ctrl+S) b name of cloudpp.py.


Step 4: In Menu Bar click on

Run -> Run Configuration -> New Run Configuration.

ree

In the [New] – Stopped window provide the following command:

cloudpp.py 10 12

Where 10 and 12 are parameters to arguments mentioned in the code.


The output will be visible in the window.

ree

Thus we have successfully created a basic Cloud9 IDE and used it to run a python code.


Step 5: If you no longer need the IDE, you may delete it.

In the top side of screen, click on the Cloud9 logo.

Further Click on Go To Your Dashboard.

ree

In the Cloud9 Dashboard, select your IDE and click on Delete. Type “Delete” in the next screen to confirm deletion.

ree

Note: Switch back to your usual operating Region.



Was this document helpful? How can we make this document better. Please provide your insights. You can download PDF version for reference.




33 commenti


Yogita Shinde
Yogita Shinde
04 mag 2024

useful blog

Mi piace

Piyush Patil
Piyush Patil
17 apr 2024

Easy to understand.

Modificato
Mi piace

Tanaya Yalrute
Tanaya Yalrute
05 mar 2024

very helpful

Mi piace

Shreya Patne
Shreya Patne
26 gen 2024

very helpful


Mi piace

Apurv Deshpande
Apurv Deshpande
25 gen 2024

Thank you for this!

Mi piace
bottom of page