The easiest way to install an integration from the the Layer Integrations Catalog or to deploy one of these or one of your own integrations is to use our command line tool,
layer-integrations. You can install it using NPM package manager by running:
npm -g install layer-integrations
In order to list all available integrations from the Layer Integrations Catalog, run:
This command will output integration names and a short description.
Each integration has a unique name that can be passed to CLI tool for installation.
Once you pick an integration from the list, use its name as an input to install it by running:
layer-integrations install <integration-name>
There is an optional flag
--provider <provider-name>that lets you specify the Serverless Cloud Provider. We currently support
azureand will be adding more soon.
After successfully installing an integration, a folder will be created that matches the integration name.
To deploy an integration, you need to navigate into its folder
cd <integration-name> and run:
This process is the same for integrations pulled from the Catalog or integrations you create using the specified guidelines.
Deployment takes you through the provisioning process. It asks you to login with your Layer Dashboard credentials, pick your organization, application and its environment. Depending on the integration type and Cloud Provider it will require some additonal input.
The deployment can take some time to finish. Once it’s done you should have a working integration running in your Cloud Provider for your application.
Keep in mind that you only need to run deploy command the first time you deploy. If you are making changes to the code and need to re-deploy use standard Serverless command