Edit manual Connection Interface
In this section, you'll find out how to edit the parameters of a manually created Connection Interface.
You can edit the parameter values of Connection Interfaces after you have created them. For example: you have created a Connection Interface and only configured the parameter values for the development environment, but now you want to configure them for the production environment.
To do this, follow the instructions below:
Prerequisites
- Have a StackSpot account;
- Have permission to create Connection Interfaces manually within the Workspace;
- The Connection Interface you want to edit must have been created manually;
Steps
Step 1. Login to your Account on the StackSpot EDP Platform and click 'Workspaces';
Step 2. Look for the Workspace where the Connection Interface you want to edit is located and click it;
Step 3. Click the 'Connection Interfaces' option;
Step 4. Access the Connection Interface you want to edit;
Step 5. Under 'Parameters', click on one of the available environments to edit your Connection Interface: development, production or staging;
Step 6. Now click the 'Edit' button in the environment card you want to change the parameters for;
Step 7. In this moment, you can:
- Edit the parameter fields and click the 'Save' button;
- Click on the 'Cancel' button to pause editing.
Repeat the process for each environment you want to edit.
Done, you've edited a Connection Interface.
Synchronize Connection Interfaces in the Workspace
This Action creates or updates Connection Interface instances per environment. If the instance already exists in the specified environment, the Connection Interface will only be updated with the new attribute values. If it does not exist, the instance will be created with the provided attributes and values.
Prerequisites
- Python installed.
- Valid service credentials (Client ID and Client Secret) with permissions to edit Workspaces and Environments in StackSpot.
Steps
The Action can be executed via the StackSpot CLI.
Step 1. Run the command below in the STK CLI:
stk run action stackspot-core/stackspot-synchronize-connection-interface
Step 2. During the execution of the Action, provide the following inputs:
| name | type | help |
|---|---|---|
workspace_name | text | Enter the name of the Workspace where the synchronization will take place. |
environment_name | text | Enter the name of the environment related to the Connection Interfaces. |
connections_json | textarea | JSON with the attributes of the Connection Interfaces. |
Check below for an example of the connections_json input:
{
"aws-s3-conn": [
{
"stk_connection_name": "emb-dev-stackspot-files-raw",
"outputs": {
"arn": "arn:aws:s3:::emb-dev-stackspot-files-raw",
"bucket_name": "emb-dev-stackspot-files-raw"
}
}
]
}