Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Panel

Table of Contents

Disclaimer

Your use of this download is governed by Stonebranch’s Terms of Use, which are available at https://www.stonebranch.com/integration-hub/Terms-and-Privacy/Terms-of-Use/

Overview

This integration allows customers to execute AWS Step Functions from Universal Controller.

Version Information

Template NameExtension NameExtension Version
AWS Step Functionsue-aws-stepfunctions1.0.0

Refer to Changelog for version history information.

...

The input fields for this Universal Extension are described below.

FieldInput typeDefault valueTypeDescription
ActionRequiredStart Asynchronous ExecutionChoiceAction performed upon the task execution. Available actions are as follows.
  • Start Asynchronous Execution
AWS RegionOptional-TextRegion for the Amazon Web Service.

When AWS Region is not populated as part of the task definition, during task execution the integration will look for the region as configured on the task execution environment. Refer to configuration options for more information.
AWS CredentialsOptional-CredentialsThe Credentials definition should be as follows.
  • AWS Access Key ID as "Runtime User".
  • AWS Secret Access Key as "Runtime Password".
When AWS Credentials are not populated as part of the task definition, during task execution the integration will look for AWS Credentials on the task execution environment. Refer to configuration options for more information.
Role Based AccessOptionalFalseBooleanSpecial type of authorization is provided by Role Assumption where the client sends his own credentials and the role he wants to assume from another user.
If allowed, the client receives temporary credentials with limited time access to some resources.
Role ARNOptional-TextRole Amazon Resource Name (ARN) that will be used to access and execute the Step Function.Role ARN format: arn:aws:iam::<AWS Account ID>:instance-profile/<Role name>.

Required when Role Based Access has been checked.
State Machine ArnRequired-TextThe Amazon Resource Name (ARN) of the state function to execute.
Execution NameOptional-TextThe name of the execution. For more information and restrictions refer to Limits Related to State Machine Executions in the AWS Step Functions Developer Guide.
If empty when execution, the Universal Task will generate a unique value for each instance.

Visible only when Action = “Start Asynchronous Execution”.
InputOptional-ScriptThe string that contains the JSON input data for the execution.
Wait for Success or FailureOptionalFalseBooleanIf selected, the task will continue running until the task reaches the "SUCCEEDED", "FAILED", "ABORTED" or "TIMEOUT" state.

Required when Action is "Start Asynchronous Execution".
Polling IntervalOptional10IntegerThe polling interval in seconds between checking for the Step Function status.

Required when Wait for Success or Failure ="True".
Use ProxyOptionalFalseBooleanFlag to indicate whether Proxy shall be used in the communication with AWS.
Proxy TypeOptionalHTTPChoiceType of proxy connection to be used. The following options are available.
  • HTTP
  • HTTPS
  • HTTPS With Credentials
Required when Use Proxy is checked.
ProxyOptional-TextComma separated list of Proxy servers. Valid formats: http://proxyip:port or http://proxyip:port,https://proxyip:port.

Required when Use Proxy is checked.
Proxy CA Bundle FileOptional-TextThe path to a custom certificate bundle to use when establishing SSL/TLS connections with proxy.

Used when Proxy Type is configured for "HTTPS" or "HTTPS With Credentials".
Proxy CredentialsOptional-CredentialsCredentials to be used for the proxy communication. Credential definition should be as follows.
  • "Proxy username as as "Runtime User".
  • "Proxy password as as "Runtime Password".
Required when Proxy Type is configured for "HTTPS With Credentials".

Task Examples

Start Asynchronous Execution

...

The output fields for this Universal Extension are described below.

FieldTypePreserved on re-runDescription
Execution ArnTextFalseThe Amazon Resource Name (ARN) that identifies the execution.
Execution StatusTextFalseThe current status of the execution.

Exit Codes

The exit codes for AWS Step Functions Extension are described below.

Exit CodeStatus Classification CodeStatus Classification DescriptionStatus Description
0SUCCESSSuccessful ExecutionSUCCESS: AWS Step Functions workflow executed successfully.

If the Wait for Success or Failure = "True" the SUCCESS exit code means the AWS Step Functions was successfully executed.
0SUCCESSSuccessful ExecutionSUCCESS: SUCCESS: AWS Step Functions workflow started successfully

If the Wait for Success or Failure = "False" the RUNNING exit code means the AWS Step Functions was successfully triggered.
1FAILFailed ExecutionFAIL: Unexpected error. Execute in Debug for more information.
2AUTHENTICATION_ERRORBad credentialsAUTHENTICATION_ERROR: Account cannot be authenticated.
3AUTHORIZATION_ERRORInsufficient PermissionsAUTHORIZATION_ERROR: Account is not authorized to perform the requested action.
10CONNECTION_ERRORBad connection data or connection timed outCONNECTION_ERROR: < Error Description >
11CONNECTION_ERRORExtension specific connection errorCONNECTION_ERROR: ProxyConnectionError: Failed to connect to proxy URL <url>
20DATA_VALIDATION_ERRORFailed ExecutionDATA_VALIDATION_ERROR: Some of the input fields cannot be validated. See STDOUT for more details
23FAILSuccessful ExecutionFAILED: Step Function is in FAILED state.
24FAILSuccessful ExecutionFAILED: Step Function is in ABORTED state.
25FAILSuccessful ExecutionFAILED: Step Function is in TIMEOUT state.

Extension Output

In the context of a workflow, subsequent tasks can rely on the information provided by this integration as Extension Output.

...

The Extension output contains attribute result. Attribute result contains the following sub-attributes.

AttributeTypeDescription
executionArnstringThe Amazon Resource Name (ARN) that identifies the execution.
stateMachineArnstringThe Amazon Resource Name (ARN) that identifies the state machine.
namestringThe name of the execution.
startDatestringThe date the execution is started.
stopDatestringIf the execution has already ended, the date the execution stopped. Visible only when Wait for Success or Failure is selected
statusstringThe current status of the execution.
outputstringThe JSON output data of the execution. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding. Visible only when Wait for Success or Failure is selected
outputDetailsobjectProvides details about execution input or output. Include indicates whether output was included in the response. Always true for API calls. Visible only when Wait for Success or Failure is selected

An example of the Extension Output for a successful execution an AWS Step Function with the Wait For Success or Failure option selected is presented below.

...

This document references the following documents.

Document LinkDescription
Universal TemplatesUser documentation for creating, working with and understanding Universal Templates and Integrations.
Universal TasksUser documentation for creating Universal Tasks in the Universal Controller user interface.
AWS Step FunctionsUser guide for AWS Step Functions.
IAM RBAC authorization modelUser Documentation for Comparing ABAC to the traditional RBAC model.

Changelog

ue-aws-stepfunctions-1.0.0

...