Connection Interface Suggestions
In this section, you will find how to create Connection Interfaces suggestions.
A Stack does not define which Infrastructure Plugins need to deploy an application. Because there are several ways to deploy an Application, for example:
- ECS (Elastic Container Service);
- GCP from Google (Google Cloud Platform);
- Your own server.
Connection Interface defines the dependencies and each Connection Interface Type provides the resources that application needs.
For example:
- An App Plugin only depends on an Infra Plugin or App Plugin;
- An Infra Plugin only depends on another Infra Plugin and never on an App Plugin.
Connection Interfaces
StackSpot helps you manage applying Plugins through a Connection Interface and Connection Interface Type.
In your Studio, you can configure the Connection Interfaces Type suggestions. Check below:
Configure Connection Interface Types Suggestions
When you add a Plugin in a Stack or a Starter, it may have a Connection Interface dependency. In this case, the user doesn't know which Plugin they need to add to provide that Connection Interface.
You can suggest Plugins that install the required Connection Interface Type. Once you make this setting, the Stack suggests but it doesn’t need the user to apply the Plugin.
Follow the steps to configure the suggested Connection Interface Types:
Step 1. On your Studio Dashboard, click on the 'Infra Setup' section;
After configuring the Container Conn and RDS Conn, there aren’t any Plugins connected to them yet. You can generate a version without the association.
When you add all the necessary Plugins, by default, the Connection Interface does not have one:
- 'Child branches'.
- Suggest Plugins (Plugin's complete path to implementing something) that implement the Connection Interfaces Types.
Step 2. Click on the arrow (âžť) next to the Plugin you want to add;
Still, on this screen, click the (âžť) arrow again.
Step 3. On the Plugins screen, select which Plugins you want to add to your Connection Interface Type;
You will only view Plugins that generate the infrastructure you need. Besides that, you can filter Plugins by Studio and/or Plugins Account, for example:
- Plugins you published in your Studio and/or the Account you belong to.
Select the Plugins, and click on the 'Add' button;
Step 4. To save the Plugin you added to the Connection Interfaces, click on the 'Save' button.
You configured the Connection Interface suggestion.
- After executing the
stk create app
command, STK CLI asks if the user wants to use the Plugin suggestions. If there are any items without suggestions, the user can choose which Plugins they want to use.