Create and manage actions
This page describes how to create HCP Waypoint actions and attach them to HCP Waypoint templates and applications. Platform engineers often perform these tasks. Refer to Actions for additional information.
Prerequisites
- An HCP account with HCP Waypoint enabled. Refer to HCP Account for information about creating an account.
Create an action
To create an action, complete the following steps:
- From the HCP Waypoint overview, go to the Actions menu.
- Click Create an action.
- Enter an Action name and Description for the action.
- Add values to the Variables field to create any required local variables for the action.
- Optionally, enable the Enable this value to be defined when the action is triggered option for each variable you want to choose a value for when you run the action. Refer to HCP Waypoint variables reference for more information.
- Choose an Action type and enter the associated configuration parameters.
- Click Create action.
Run an action
To run an action, complete the following steps:
- From the HCP Waypoint overview, go to the Actions menu.
- Click on the name of the action you want to run.
- Click Run.
Delete an action
To delete an action, complete the following steps:
- From the HCP Waypoint overview, go to the Actions menu.
- Click on the 3 dots of the action under the Manage heading.
- Click Delete action.
- Enter DELETE in the form and click Delete.
Assign an action to a template
To assign or unassign an action to a template, complete the following steps:
- From the HCP Waypoint overview, go to the Templates menu.
- Click on the name of the template.
- Click Settings from the left menu.
- Click on Action assignments from the left menu.
- Check the checkboxes of the actions to assign them to the template and uncheck the ones you want unassign.
- Click Confirm.
Run an action assigned to an application
Applications inherit any actions assigned to the template they are created from. To run an action assigned to an application, complete the following steps:
- From the HCP Waypoint overview, go to the Applications menu.
- Click on the name of the application.
- Click on Actions and then click on the name of the action you want to run.
- Click on Run.
View action run history
To view an action's run history, complete the following steps:
- From the HCP Waypoint overview, go to the Actions menu.
- Click on the name of the action.
View action run history for an application
To view an action's run history for an application, complete the following steps:
- From the HCP Waypoint overview, go to the Applications menu.
- Click on the name of the application.
- Click on Action runs from the left menu.
Next steps
To learn more about what you can do with HCP Waypoint after you created an action, refer to the following topics: