AWS Toolkit for JetBrains
User Guide

Creating an AWS Serverless Application by Using the AWS Toolkit for JetBrains

To complete this procedure, you must first install the AWS Toolkit and, if you haven't yet, connect to an AWS account for the first time. Then with IntelliJ IDEA, PyCharm, WebStorm, or JetBrains Rider already running, do the following.

  1. Do one of the following:

    • For IntelliJ IDEA or WebStorm, choose File, New, Project.

    • For PyCharm, choose File, New Project.

    • For JetBrains Rider, choose File, New for a new solution. Or right-click an existing solution in the Explorer tool window, and then choose Add, New Project.

  2. For IntelliJ IDEA, choose AWS, AWS Serverless Application, and then choose Next.

    Choosing to create an AWS serverless application in IntelliJ IDEA

    For PyCharm, choose AWS Serverless Application.

    Choosing to create an AWS serverless application in PyCharm

    For WebStorm, choose AWS Serverless Application.

    Choosing to create an AWS serverless application in WebStorm

    For JetBrains Rider, choose AWS Serverless Application.

    
        Choosing to create an AWS serverless application in JetBrains Rider
  3. Complete the New Project dialog box (or the New Solution dialog box for JetBrains Rider), and then choose Finish (for IntelliJ IDEA) or Create (for PyCharm, WebStorm, or JetBrains Rider). The AWS Toolkit for JetBrains creates the project and adds the serverless application's code files to the new project.

  4. If you're using IntelliJ IDEA, with the Project tool window already open and displaying the project that contains the serverless application's files, do one of the following:

    • For Maven-based projects, right-click the project's pom.xml file, and then choose Add as Maven Project.

      Choosing to add the POM file as a Maven project
    • For Gradle-based projects, right-click the project's build.gradle file, and then choose Import Gradle project.

      Choosing to import the Gradle project

      Complete the Import Module from Gradle dialog box, and then choose OK.

After you create the serverless application, you can run (invoke) or debug the local version of an AWS Lambda function that is contained in that application.

You can also deploy the serverless application. After you deploy it, you can run (invoke) the remote version of a Lambda function that is part of that deployed application.