Working with AWS Cloud9
Working with AWS Cloud9

This course has been replaced with a new course which you can access here:


In this course, we’ll provide you with an introduction to AWS Cloud9, a cloud-based IDE, used for writing and debugging code right within your browser. We’ll show you how AWS Cloud9 can be used to edit and debug your source code. This course will familiarize you with the AWS Cloud9 service and ensure you know when and where to use it within your own software projects. We'll then provide a demonstration where we use AWS Cloud9 to edit and update our web portal project source code, invoking our build and deploy pipeline. 


- [Lecturer] Welcome back. In this lecture, we'll provide you with an introduction to AWS Cloud9, a cloud-based IDE used for writing and debugging code right within your own browser. We will show you how AWS Cloud9 can be used to edit and debug your own source code. This lecture will familiarize yourself with the AWS Cloud9 series and ensure you know when and where to use it within your own software projects. Okay, let's begin. AWS Cloud9 is a cloud-based integrated development environment used to author and debug source code. Since Cloud9 is hosted in the AWS cloud, you are able to work from any location as long as you have access to a browser and have an internet connection available. Cloud9 not only includes a full-featured code editor supporting IntelliSense but also comes with other productivity features, such as a debugger, a built-in terminal interface, and real time peer programming capability. We'll dive deeper into each of these features in the coming slides. AWS Cloud9 provides all of the features you'd come to expect from a traditionally, locally desktop-installed IDE. The only point of difference is that the Cloud9 IDE is fully web-based, with the only requirement to access it being a modern JavaScript-enabled web browser, such as Google Chrome or Firefox. Some of the great features supported within the Cloud9 IDE are themes, debugging, an integrated terminal, collaboration, keyboard bindings, IntelliSense, lambda integration, multiple cursors, syntax highlighting. We will take a close look at a few of the most specialized features that can really empower your software development projects.

The AWS Cloud9 IDE incorporates an ability to perform collaboration and peer programming in real time. You can share your Cloud9 environment with other team members, controlling their access with either read or read/write permissions. The joining user, if given full read/write permissions into your Cloud9 project, will be able to edit and update the currently opened file at the same time that you or any other team members are also editing. All edits takes place in near real-time and are available to everyone in their own Cloud9 browser session, regardless of which user is making them. Additionally, a group chat capability is provided directly within the IDE to allow you and your team members to discuss edits and updates, et cetera. Membership into your Cloud9 environment is controlled through the use of IAM user accounts. That is each member you would like to share your environment with must have an associated IAM user account. They will need to log into their AWS console of their respective credentials and then access the shared Cloud9 URL that they will be given.

Within the Cloud9 IDE, you have direct access to a terminal session, embedded right within the IDE itself. The terminal gives you full sudo access, allowing you to perform any commands as if you were SSH'd into the underlying instance or server itself. Having the immediate terminal access from within the Cloud9 IDE makes it fast and productive, particularly so when the AWS CLI is already installed and has temporary credentials available to it, meaning you can perform queries and updates to any of the AWS services through the AWS CLI within the Cloud9 IDE.

AWS Cloud9 provides direct integration features with AWS Lambda. If you're building serverless applications using AWS Lambda, then Cloud9 can be used to code, debug, and deploy your functions right within the IDE itself. Additionally, Cloud9 allows you to edit your lambda functions and debug them locally, increasing productivity. This reduces the number of deployment cycles required and speeds up the development process.

The Cloud9 IDE maintains an internal file revision history, allowing me to playback the edits that have taken place over time for the currently opened source code file. This feature allows you to revert back to a particular revision, kind of like Control + Z or Undo on steroids. Creating a new Cloud9 IDE environment is quick and easy. The fastest approach is to give your new environment a name, choose the EC2 environment type, and then select the EC2 instance type. Nine out of 10 times, the selected default settings will be more than adequate for the development that you undertake. Okay, that completes this introduction lecture on the AWS Cloud9 series. Go ahead and close this lecture and we'll see you shortly in the next one.

About the Author
Learning Paths

Jeremy is a Content Lead Architect and DevOps SME here at Cloud Academy where he specializes in developing DevOps technical training documentation.

He has a strong background in software engineering, and has been coding with various languages, frameworks, and systems for the past 25+ years. In recent times, Jeremy has been focused on DevOps, Cloud (AWS, Azure, GCP), Security, Kubernetes, and Machine Learning.

Jeremy holds professional certifications for AWS, Azure, GCP, Terraform, Kubernetes (CKA, CKAD, CKS).