Cloud9 IDE Setup

Creating A Cloud9 IDE Environment

First, navigate to the Cloud9 IDE console: https://us-east-2.console.aws.amazon.com/cloud9/ and click the Create environment button.

5. How to set up Cloud9 IDE for Python for cloud automation - Launch Cloud9 IDE - Step 1

Provide the environment Name (Description is optional) and click the Next step button.

6. How to set up Cloud9 IDE for Python for cloud automation - Launch Cloud9 IDE - Step 2

At the next step, you may change the environment type, EC2 instance type, hibernation, networking, and other settings.

7. How to set up Cloud9 IDE for Python for cloud automation - Launch Cloud9 IDE - Step 3

If you’re experienced using it, feel free to adjust the settings according to your needs.

For beginners, I recommend proceeding with default settings.

Click the “Next step” button as soon as you’re ready.

8. How to set up Cloud9 IDE for Python for cloud automation - Launch Cloud9 IDE - Step 4

Finally, review your settings and click Create environment button.

The launching process will take a couple of minutes, and finally, you’ll see your IDE up and running.

9. How to set up Cloud9 IDE for Python for cloud automation - Cloud9 IDE up and running

Adding Cloud9 IDE Required permissions

The default behaviour of the Cloud9 IDE inherits your AWS account permissions but restricts certain API calls to the AWS cloud. To prevent this from happening and have the best course experience, you need to assign Cloud9 IDE an administrator IAM role. Let's create it.

Create administrator IAM role

In AWS Management Console, go to the IAM service -> Roles view and hit the "Create role" button:

Identity and Access Management (IAM) - Roles view

Select the following options for the role:

  • Trusted entity type - AWS Service
  • Use case - EC2

Hit the "Next" button.

Identity and Access Management (IAM) - Cloud9 IDE EC2 administrator role - Select trusted entity

Filter and select the "AdministratorAccess" role and click the "Next" button.

Identity and Access Management (IAM) - Cloud9 IDE EC2 administrator role - Add permissions

Specify new IAM Role name:

  • My-Cloud9-IDE-EC2-Admin-Role

Leave other options unchanged and hit the "Create role" button.

Identity and Access Management (IAM) - Cloud9 IDE EC2 administrator role - Role details

Assign IAM role to Cloud9 IDE EC2 instance

In AWS Management Console, go to the EC2 service view, right-click on the Cloud9 IDE EC2 instance (the instance name will start from "aws-cloud9-My-Python-Environment"), select Security -> Modify IAM role:

Cloud9 IDE EC2 instance - Security - Modify IAM role

Select the "My-Cloud9-IDE-EC2-Admin-role" as an IAM role and hit the "Update IAM role" button.

Cloud9 IDE EC2 instance - Security - Update IAM role

Come back to the Cloud9 IDE and go to the Preferences:

Cloud9 IDE Preferences

In the preferences menu go to the AWS Settings -> AWS Resources and disable the "AWS managed temporary credentials" option.

Cloud9 IDE Preferences - AWS Settings - AWS Resources - AWS managed temporary credentials

Now, you’re ready to start your cloud automation journey.

Resources

AWS Cloud9 - Landing page

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}
>