With vRealize Automation Cloud Assembly, you can create extensibility actions for use in extensibility subscriptions.
Extensibility actions are highly customizable, lightweight, and flexible ways to extend application life cycles by using user-defined script code and action templates. Action templates contain predefined parameters that help set up the foundation of your extensibility action.
There are two methods of creating an extensibility action:
- Writing user-defined code for an extensibility action script.
Note: Writing user-defined code in the extensibility action editor might require an active Internet connection.
- Importing a deployment package as a ZIP package for an extensibility action. For information on creating a ZIP package for extensibility actions, see Create a ZIP package for Python runtime extensibility actions or Create a ZIP package for Node.js runtime extensibility actions.
The following steps describe the procedure for creating an extensibility action that uses Amazon Web Services as a FaaS provider.
- Membership in an active and valid project.
- Configured Amazon Web Services role for Lambda functions. For example, AWSLambdaBasicExecutionRole.
- Cloud administrator role or iam:PassRole permissions enabled.
- Select .
- Click New Action.
- Enter a name for your action and select a project.
- Click Next.
- Search and select an action template.
Note: To create a custom action without using an action template, select Custom Script.New configurable parameters appear.
- Select Write script or Import package.
- Select an action Runtime.
- Enter an Main function name for the action's entry point.
Note: For actions imported from a ZIP package, the main function must also include the name of the script file that contains the entry point. For example, if your main script file is titled main.py and your entry point is
handler (context, inputs), the name of the main function must be main.handler.
- Define the Input and Output parameters of the action.
- (Optional) Add application dependencies to the action.
Note: For actions imported from a ZIP package, application dependencies are added automatically.
- To define timeout and memory limits, enable the Set custom timeout and limits option.
- To test your action, click Save and then Test.