Visual Studio Code Pulumi ToolsThe extension for developers building Pulumi applications. Note: This extension is in a public beta. If you have suggestions for features or find bugs, please open an issue. IAC Features include:
Getting StartedInstall the software
Using Pulumi IaCThis extension allows you to launch and debug Pulumi programs within VS Code. Install Pulumi CLIWhen The Open a ProjectOpen a new or existing Pulumi project as a VS Code workspace. This extension supports both single-folder workspaces and multi-root workspaces. Start DebuggingPulumi programs are run (with or without debugging) using a launch configuration. Select the Run and Debug icon in the Activity Bar on the side of VS Code, then use an automatic debug configuration or create a launch configuration file for your project. The extension automatically generates a debug configuration to run
Alternatively, you can select and launch a configuration through the Command Palette (⇧⌘P) by filtering on Debug: Select and Start Debugging. Create a Launch ConfigurationTo create a customized launch configuration, do one of the following:
The extension provides the following configuration templates:
The following properties are supported:
Debug your ProgramSet breakpoints in your program code and enjoy the full functionality of the VS Code debugger. See "Debugging" for more information. Pulumi CLI OutputAccess the CLI output via the Debug Console view. Run without DebuggingTo run without debugging, do one of the following:
Using Pulumi ESCThis extension allows you to manage ESC environments without leaving VS Code. Open the ESC ExplorerFrom the primary sidebar, open the "Pulumi ESC Explorer" view, and click "login" to authenticate to Pulumi Cloud. Once logged in, you should see a tree of your organizations and, within each organization, your ESC environments. Create or Edit an EnvironmentClick the plus sign on an organization or project node to create an environment. By clicking on an environment in the tree or creating a new environment, the extension will open an editor. Edit the environment definition and save to create a new revision. Open an EnvironmentOn the right side of the editor, click the Preview button to open the environment. You will be prompted for an output format. Delete an EnvironmentIf you hover over an environment, there is a icon that will delete the environment; you will be asked to enter the environment name to confirm. Decrypt an EnvironmentIf you hover over an environment, there is a icon that will decrypt the environment without opening it. This is useful in a clone/move scenario. Refresh EnvironmentsIf you get out of date, you can always refresh using the icon at the top right of the Pulumi ESC Explorer tree view. The extension auto refreshes only after a change. Search EnvironmentsClick the search icon in the top right, type in a search term, and see results in the pane that appears. Tag a RevisionClick the tag icon on a revision and give it a name. ESC Run in TerminalYou can quickly populate an ESC Run command for an environment in the terminal. Go to Definition/Find all ReferencesBoth Go to Definition and Find all References are supported across symbols, interpolations, and values. Diff/Compare Environments and RevisionsYou can compare anything, two revisions, or two environments, or any combination. Right or Control-click the first node to compare in the tree and click Select for compare. Then right or control-click on another node and select Compare with Selected LogoutGo to the Account icon at the bottom left, select your Pulumi Cloud account, and sign out. ReleasesSee the Releases section for latest release information. |