Functions service Plugin for Visual Studio CodeUse the Functions plugin to view, create, deploy and invoke functions directly from VS Code. Checkout the wiki for more information about the Functions service. InstallationThe plugin requires basic configuration information, like user credentials and tenancy OCID.
This information should be present in a configuration file located at There are two ways to get the config file
Inital ViewThe Functions plugin when loaded has a tree view in the side panel, the data is loaded based on the configuration information, like user credentials, region, tenancy OCID, etc in the configuration file Hierarchy of tree view: the tree view has tenancy at the top level followed by compartments, each compartment has appplications associated with the compartment. Each application lists the functions. Creating FunctionsThe plugin provides the abililty to create new functions. Below are the steps:
There are three options to create a function:
Deploy FunctionA newly created function can be easily deployed. Prerequisite: Please make sure you have docker & fn cli installed on your local machine. Below are the steps:
Edit Function SettingsThe plugin provides an option to update the
Edit Function ConfigurationA function can have user-defined config parameters / env variables. The plugin provides the ability to add/delete/update these parameters:
ContributingThis project welcomes contributions from the community. Before submitting a pull request, please review our contribution guide. LicenseCopyright (c) 2023, Oracle and/or its affiliates. All rights reserved. This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. See LICENSE for more details. |