Skip to content
Get Started for Free

LocalStack Toolkit for VS Code

The LocalStack Toolkit for VS Code enables you to install, configure, and run LocalStack without leaving VS Code. The extension bundles the lstk CLI, so there is nothing else to install.

The setup wizard ensures LocalStack is installed and configured for a seamless integration with AWS tools, like the AWS CLI, SDKs, AWS SAM or the AWS CDK.

LocalStack can be installed either locally for the current user or globally for all users.

You can start using LocalStack for free by signing up for a free account or signing into an existing one. The setup wizard facilitates this process and configures your authentication token required to start LocalStack.

The LocalStack Toolkit integrates seamlessly with AWS tools like the AWS CLI. It automatically configures a dedicated localstack AWS profile in your .aws/config and .aws/credentials files, if one is not already present.

Installing LocalStack Toolkit

Use the LocalStack: Login and LocalStack: Logout commands from the Command Palette to manage your session without leaving VS Code.

The Instances view in the LocalStack activity bar also shows a Login or Logout button in its title bar, whichever applies to your current session.

The LocalStack button in the VS Code status bar provides an instant view of LocalStack’s runtime status, such as stopped or running.

LocalStack Toolkit Running

The status bar button provides access to Start and Stop LocalStack commands. The status button turns red if LocalStack is not found or misconfigured. You can also open the LocalStack log view from here.

Stop LocalStack Toolkit

You can also start, stop, and refresh instances from the Instances view: use the refresh button in its title bar to update the list, and the Start or Stop action on an instance row to control it directly.

Run LocalStack: Edit Configuration from the Command Palette, or use the button in the Instances view title bar, to open the lstk CLI’s config.toml file directly in the editor.

You can see LocalStack logs in the VS Code Output panel. Simply select LocalStack from the drop-down menu.

LocalStack Toolkit Logs

Once the profile is configured you can use it from your favorite AWS tools like AWS CLI, SDKs, CDK to deploy to and interact with LocalStack.

For example, to list SQS queues using the AWS CLI and your localstack profile:

Terminal window
aws --profile localstack sqs list-queues
ID Title Menu Contexts
localstack.configureAwsProfiles Configure AWS Profile “localstack” commandPalette
localstack.login Login commandPalette
localstack.logout Logout commandPalette
localstack.openCliConfig Edit Configuration commandPalette
localstack.refreshInstances Refresh Instances commandPalette
localstack.setup Run Setup Wizard commandPalette
localstack.start Start LocalStack commandPalette
localstack.stop Stop LocalStack commandPalette
localstack.viewLogs View Logs commandPalette

Read our contributing guidelines to learn how you can help.

LocalStack Toolkit for VS Code extension support

Section titled “LocalStack Toolkit for VS Code extension support”

Please provide feedback or report an issue on the LocalStack Toolkit for VS Code by using our GitHub Discussions board page.

For LocalStack-related questions, feedback, and contributions, you can visit our help & support page to learn about the different support channels and report issues on our GitHub Discussions board.

Was this page helpful?