Serverless Framework integration for VS CodeThis extension enables an integration of Serverless projects with VSCode. It eliminates the need to start Serverless commands from a separate command line. InstallationIn order to install an extension you need to open the extension palette and search for serverless-vscode. You can then install it. Alpha versionThis is currently an alpha version, that integrates only a subset of possible commands. See the GitHub repository for remaining planned features for the final version. You're encouraged to test the version and create additional feature requests. Currently the extension only supports Serverless projects with Serverless installed locally! That means, that Serverless must be a development dependency of the project itself. A subsequent version of the extension will also support the globally installed Serverless framework and a configuration for that. ConfigurationThe extension supports user and workspace configuration. To access the configuration settings,
open The following configuration settings are available: serverless.aws.askForRegionWhen set to false (the default), the extension will not ask for the region to deploy to but use the
one, set as serverless.aws.defaultStageThe defult stage that is assumed, if you just press ENTER in the stage input field when executing a command. serverless.aws.defaultRegionThe defult region that is assumed, if you just press ENTER in the stage input field when executing a command. See also UsageThe Serverless outlineAs soon as you have added a Serverless project to your workspace, you can select the Top container objectsEach of the top hives has a context menu that lets you invoke service/project related functions. PackagePackage will ask for the stage and optionally region and packages the service with DeployPackage will ask for the stage and optionally region and deploys the service with Variable resolution (Resolve)Resolve allows you to show a generated FunctionsThe functions hive lets you analyze your service function-wise and contains a node for each function. Each function then contains a list of all defined HTTP endpoints in the function definition. All function related commands of the extension can be called via the context menu of the function. Deploy functionDeploys the selected function with Invoke localInvoke the selected function locally. The command lets you select an Show logsRetrieve and show the online logs of the deployed function in the output pane. Open handlerOpen the handler source file that is associated with the function. APIThe API hive shows the combined API that will eventually be deployed to API Gateway. ReleasesSee the CHANGELOG.md file. |