Initialisation of Ext State Types

The For and LimitedParallel extension states require data manipulation between states, and this is supported by a series of Lambda functions.

The Lambda function themselves can be found in the github repo, and they have been incorporated into an AWS CloudFormation script so that they can be easily added to the AWS account / region that the AWS Step Function state machines will be executed.

Once created, the Arns of the Lambda functions must be passed to the awssl package; this is the purpose of these functions.

awssl.ext.get_ext_arn(key)

Returns the value of the Arn associated with the specified key.

Parameters:key (str) – The key of the Lambda function whose Arn is required
Returns:str
awssl.ext.get_ext_arn_keys()

Returns the list of keys against which Arns are defined.

Returns:list
awssl.ext.set_ext_arns(ForInitializer=None, ForExtractor=None, ForConsolidator=None, ForFinalizer=None, ForFinalizerParallelIterations=None, LimitedParallelConsolidator=None)

Initialises the awssl.ext package, so that the correct Lambda functions are used in the ext states.

The functions are available in the github repo both as individual lambdas or combined in a CloudFormation script for easy deployment.

All the Arns must be specified or this function will generate an Exception.

Parameters:
  • ForInitializer (str) – The Arn of the ForInitializer Lambda function, used by the For state
  • ForExtractor (str) – The Arn of the ForExtractor Lambda function, used by the For state
  • ForConsolidator (str) – The Arn of the ForConsolidator Lambda function, used by the For state
  • ForFinalizer (str) – The Arn of the ForFinalizer Lambda function, used by the For state
  • ForFinalizerParallelIterations (str) – The Arn of the ForFinalizerParallelIterations Lambda function, used by the For state
  • LimitedParallelConsolidator (str) – The Arn of the LimitedParallelConsolidator Lambda function, used by the LimitedParallel state