Run Actions in Applications and Shared Infra
In this section, you will find a guide on how to run Actions.
Context
When you create an Application or an Infrastructure, you can run the Actions configured in the Context of your Account and Workspace.
You can run Actions during deployment or after it, when your application infrastructure has already been deployed and you have resources available, such as a DynamoDB.
Actions execute operations on resources provisioned by Infrastructure Plugins.
See an example:
- Run an Action to back up a DynamoDB that the Application created.
Run Actions
Follow the steps below.
The steps below are the same when you run Actions in Infrastructure.
The only difference is Step 1, where you must open the 'Infrastructure' section in the Workspace instead of 'Applications'.
You will follow the steps below on the StackSpot Platform.
Step 1. Go to your Workspace and click the 'Applications' section;
Step 2. From the list of Applications, select the one where you want to run Actions;
Step 3. Below the Workspace name, locate the 'Environments*' field; click the down-arrow button to see the list of Environments and select the Environment where you will run the Actions in your Application;
After that, you can choose between two options:
- Option 1. Run Actions from the 'Actions' section;
- Option 2. Run Actions from the 'Plugins' section.
Check both options below.
Option 1. Run Actions via the 'Actions' section
Step 1. Click 'Actions' in the Application side menu; the page shows the Application Infra Plugins and the list of Actions you can run;
Step 2. Choose an Action from the list and click the 'Run' button;
Inside each Action, you can view the Action name, description and the Connection Interfaces linked to the resources where you want to run the Action.
Step 3. Fill in the Action parameters list and click the 'Next' button to start the execution;
Parameters serve as the inputs for Actions. They may have been configured in the Workspace Context and can be mandatory or optional.
If a parameter is mandatory, you cannot change its value.
Step 4. On the Review screen, review the information and click 'Run';
Step 5. You will be redirected to the Action execution status page and its responses; check whether the execution failed or succeeded.
You have run an Action on your Application or Infrastructure.
Option 2. Run Actions via the 'Plugins' section
You will follow the steps below on the StackSpot Platform.
Step 1. Click 'Plugins' in the Application side menu;
Step 2. Click 'App Infra';
Step 3. Select the Infra Plugin where you want to run the Action, for example, 'RDS Postgres';
Step 4. In the Plugin page, select the 'Actions' tab;
Step 5. The list of Actions you can run is displayed; choose an Action and click the 'Run' button;
Inside each Action, you can view the Action name and description and the Connection Interfaces linked to the resources where you want to run the Action;
Step 6. Fill in the Action parameters list and click the 'Next' button to start the execution;
Parameters are the inputs for Actions. They may have been configured in the Workspace Context and can be mandatory or optional.
If a parameter is mandatory, you cannot change its value.
Step 7. On the Review screen, review the information and click 'Run';
Step 8. You will be redirected to the Action execution status page and its responses; check whether the execution failed or succeeded.