top of page

Cloud9 IDE Introduction to Python Programming

Updated: Sep 13, 2021

Learn to develop python program using AWS Cloud9 IDE


Objectives:

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

2. Learn to develop a python program using AWS Cloud9 environment.

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) useast-2.


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

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.


In the bottom part of the screen, a Terminal window is visible. If not go to the Window option in the 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:

string = ("Hello World! CloudPlusPlus Welcomes You")

string = string[::-1]

print(string)

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


Step 4: In Menu Bar click on

Run


The output will be visible in the window.


Thus, we have successfully created a basic Cloud9 environment and used it to run the python program.

For more practice, refer to our Python program blog here.


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

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


Further Click on Go To Your Dashboard.


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


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


Learn to develop python program using AWS Cloud9 IDE
.pdf
Download PDF • 400KB

We provide best AWS trainings from Pune, India.

For aws certification contact us now.

239 views31 comments

31 Comments


Easy and simple to understand.

Like

Very helpful

Like

nicely explain

Like

able to run python using Cloud9. Thanks!

Like

Very good explanation sir

Like
bottom of page