AWS Cloud9
User Guide

Step 1: Create and Open the Environment

(First step of AWS Lambda Tutorial for AWS Cloud9)

In this step, you use the AWS Cloud9 console to create and then open an AWS Cloud9 development environment.

If you already have an environment, open it, and then skip ahead to Step 2: Create the Lambda Function and API.

In AWS Cloud9, a development environment (or just environment) is a place where you store your development project's files and where you run the tools to develop your applications. In this tutorial, you create a special kind of environment called an EC2 environment. For this kind of environment, AWS Cloud9 launches and manages a new Amazon EC2 instance running Amazon Linux or Ubuntu Server, creates the environment, and then connects the environment to the newly-launched instance. When you open the environment, AWS Cloud9 displays the AWS Cloud9 IDE that enables you to work with the files and tools in that environment.

  1. Sign in to the AWS Cloud9 console as follows:

    • If you're the only individual using your AWS account or you are an IAM user in a single AWS account, go to

    • If your organization uses AWS Single Sign-On (AWS SSO), see your AWS account administrator for sign-in instructions.

    • If you're using an AWS Educate Starter Account, see Step 2: Sign In to the AWS Cloud9 Console in Individual Student Signup.

    • If you're a student in a classroom, see your instructor for sign-in instructions.

  2. After you sign in to the AWS Cloud9 console, in the top navigation bar, choose an AWS Region to create the environment in. For a list of available AWS Regions, see AWS Cloud9 in the AWS General Reference.

                AWS Region selector in the AWS Cloud9 console
  3. Choose the large Create environment button in one of the locations shown below.

    If you have no AWS Cloud9 environments yet, the button is shown on a welcome page.

                Welcome page in the AWS Cloud9 console

    If you already have AWS Cloud9 environments, the button is shown as follows.

                Create environment button in the AWS Cloud9 console
  4. On the Name environment page, for Name, enter a name for your environment. For this tutorial, use my-lambda-environment.

  5. For Description, enter something about your environment. For this tutorial, use This environment is for the AWS Cloud9 tutorial for Lambda.

  6. Choose Next step.

  7. On the Configure settings page, for Environment type, choose Create a new instance for environment (EC2).


    Choosing Create a new instance for environment (EC2) might result in possible charges to your AWS account for Amazon EC2.

  8. For Instance type, leave the default choice. This choice has relatively low RAM and vCPUs, which is sufficient for this tutorial.


    Choosing instance types with more RAM and vCPUs might result in additional charges to your AWS account for Amazon EC2.

  9. For Platform, choose the type of Amazon EC2 instance that you want: Amazon Linux or Ubuntu. AWS Cloud9 creates the instance and then connects the environment to it.

  10. Choose a value for Cost-saving setting. When all web browser instances that are connected to the IDE for the environment are closed, AWS Cloud9 waits this amount of time and then shuts down the Amazon EC2 instance for the environment.


    Choosing a longer time period might result in more charges to your AWS account.

  11. Choose Next step.

  12. On the Review page, choose Create environment. Wait while AWS Cloud9 creates your environment. This can take several minutes.

After AWS Cloud9 creates your environment, it displays the AWS Cloud9 IDE for the environment.

If AWS Cloud9 doesn't display the IDE after at least five minutes, there might be a problem with your web browser, your AWS access permissions, the instance, or the associated virtual private cloud (VPC). For possible fixes, see Cannot Open an Environment in Troubleshooting.

Next Step

Step 2: Create the Lambda Function and API

On this page: