Resource: awsGlueWorkflow
Provides a Glue Workflow resource. The workflow graph (DAG) can be build using the awsGlueTrigger
resource. See the example below for creating a graph with four nodes (two triggers and two jobs).
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
const awsGlueWorkflowExample = new aws.glueWorkflow.GlueWorkflow(
this,
"example",
{
name: "example",
}
);
new aws.glueTrigger.GlueTrigger(this, "example-inner", {
actions: [
{
jobName: "another-example-job",
},
],
name: "trigger-inner",
predicate: {
conditions: [
{
jobName: "example-job",
state: "SUCCEEDED",
},
],
},
type: "CONDITIONAL",
workflowName: awsGlueWorkflowExample.name,
});
new aws.glueTrigger.GlueTrigger(this, "example-start", {
actions: [
{
jobName: "example-job",
},
],
name: "trigger-start",
type: "ON_DEMAND",
workflowName: awsGlueWorkflowExample.name,
});
Argument Reference
The following arguments are supported:
name
– (Required) The name you assign to this workflow.defaultRunProperties
– (Optional) A map of default run properties for this workflow. These properties are passed to all jobs associated to the workflow.description
– (Optional) Description of the workflow.maxConcurrentRuns
- (Optional) Prevents exceeding the maximum number of concurrent runs of any of the component jobs. If you leave this parameter blank, there is no limit to the number of concurrent workflow runs.tags
- (Optional) Key-value map of resource tags. If configured with a providerdefaultTags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Attributes Reference
In addition to all arguments above, the following attributes are exported:
arn
- Amazon Resource Name (ARN) of Glue Workflowid
- Workflow nametagsAll
- A map of tags assigned to the resource, including those inherited from the providerdefaultTags
configuration block.
Import
Glue Workflows can be imported using name
, e.g.,