CDK Orchestration
So far, we've seen examples of lambdas composed together similar to Airflow operators, where the composition of those functions is defined in the same module as those functions.
This is simple and intuitive and but there are MANY other powerful operations that can be composed using AWS Step Function besides lambdas.
Example Step Functions Tasks
Step Functions CDK Construct Library Overview
docs.aws.amazon.com/cdk/api/latest/python/aws_cdk.aws_stepfunctions/README.html
Step Functions Tasks Library Overview
docs.aws.amazon.com/cdk/api/latest/python/aws_cdk.aws_stepfunctions_tasks/README.html
Example#
Does Orkestra provide a way of helping us compose arbitrary step function tasks more intuitively?
Yes, Orkestra has a function coerce
that takes any object with a .next
method, such as those in the cdk step functions library,
such that calling object_1 >> object_2
is equivalent to returning object_1.next(object_2)
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
|