Versions Compared

Key

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

...

The input fields for this Universal Extension are described below.

FieldInput typeDefault valueTypeDescription
ActionRequiredSubmit JobChoiceThe action performed upon the task execution. Available actions:
  • Submit Job
  • Read Job Status
AWS RegionRequired-TextRegion for the Amazon Web Service. Find more information about the AWS Service endpoints and quotas here.
AWS CredentialsRequired-CredentialsThe AWS account credentials.
They are comprised of:
  • AWS access key ID
  • AWS secret access key
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-TextThe Role Amazon Resource Name (ARN) to have access to the SQS queue.Role ARN format: arn:aws:iam::<AWS Account ID>:instance-profile/<Role name>.

Required when Role Based Access has been checked.
Job NameOptional-TextThe name of the Batch Job that will be submitted.
Job DefinitionOptional-TextThe job definition used by this job. This value can be one of name , name:revision , or the Amazon Resource Name (ARN) for the job definition. If name is specified without a revision then the latest active revision is used.

Required when Submit Job action has been selected.
Job QueueOptional-TextThe job queue where the job is submitted. You can specify either the name or the Amazon Resource Name (ARN) of the queue.

Required when Submit Job action has been selected.
Job TimeoutOptional-IntegerCan be filled when Action = Submit Job.
The timeout configuration (in seconds) for this Submit Job operation. You can specify a timeout duration after which Batch terminates your jobs if they haven't finished. If a job is terminated due to a timeout, it isn't retried. The minimum value for the timeout is 60 seconds. This configuration overrides any timeout configuration specified in the job definition.

Optional when Submit Job action has been selected.
Additional Job ParametersOptional-ArrayAdditional parameters passed to the job that replace parameter substitution placeholders that are set in the job definition. Parameters are specified as a key and value pair mapping. Parameters in a SubmitJob request override any corresponding parameter defaults from the job definition.

Optional when Submit Job action has been selected.
Job IDOptional-TextThe Job ID of an already submitted Batch Job.

Required when Read Job Status action has been selected.
Use ProxyOptionalFalseBooleanFlag to indicate whether Proxy shall be used in the communication with AWS.
Proxy TypeOptionalHTTPChoiceType of proxy connection to be used.Available options are:
  • HTTP
  • HTTPS
  • HTTPS with password
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 Password".
Proxy CredentialsOptional-CredentialsCredentials to be used for the proxy communication.They are comprised of:
  • username
  • password
Required when Proxy Type is configured for "HTTPS" or "HTTPS With Password".

Task Examples

Submit Job

Example of AWS Batch Universal Task for submitting a new AWS Batch Job.

...

The output parameters are set after every message processing. If they are 'preserved on re-run', they prevent a re-run of the task instance from restarting from scratch.
The output fields for this Universal Extension are described below.

FieldTypePreserved on re-runDescription
Job ARNTextFalseARN value of the newly submitted Batch Job.
Generated in Submit Job action.
Job IDTextFalseId of the newly submitted Batch Job.
Generated in Submit Job action.
Job NameTextFalseName of the Batch Job.
Generated in Read Job Status action.
Job StatusTextFalseStatus of the Batch Job.
Generated in Read Job Status action.

Exit Codes

The exit codes for AWS Batch Extension are described below.

Exit CodeStatus Classification CodeStatus Classification DescriptionStatus Description
0SUCCESSSuccessful ExecutionSUCCESS: Successful Task execution
1FAILFailed ExecutionFAIL: < Error Description >
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>
21SUCCESSSuccessful ExecutionSUCCESS: Job is in FAILED state.
22SUCCESSSuccessful ExecutionSUCCESS: Job is in RUNNING state.
23SUCCESSSuccessful ExecutionSUCCESS: Job is in STARTING state.
24SUCCESSSuccessful ExecutionSUCCESS: Job is in RUNNABLE state.
25SUCCESSSuccessful ExecutionSUCCESS: Job is in SUBMITTED state.
25SUCCESSSuccessful ExecutionSUCCESS: Job is in SUCCEEDED state.

Extension Output

The Extension Output for AWS Batch Universal Task successful execution is described below.

...

This document references the following documents:

NameLocationDescription
Universal Templateshttps://docs.stonebranch.com/confluence/display/U70/Universal+TemplatesUser documentation for creating Universal Templates in the Universal Controller user interface.
Universal Taskshttps://docs.stonebranch.com/confluence/display/UC70/Universal+TasksUser documentation for creating Universal Tasks in the Universal Controller user interface.
AWS Batchhttps://docs.aws.amazon.com/batch/latest/userguide/what-is-batch.htmlUser guide for AWS Batch
IAM RBAC authorization modelhttps://docs.aws.amazon.com/IAM/latest/UserGuide/introduction_attribute-based-access-control.html#introduction_attribute-based-access-control_compare-rbacUser Documentation for Comparing ABAC to the traditional RBAC model