trigger
This component provisions Glue triggers.
Usage
Stack Level: Regional
components:
terraform:
glue/trigger/example:
metadata:
component: glue/trigger
vars:
enabled: true
name: example
trigger_name: example
trigger_description: "Glue trigger example"
glue_workflow_component_name: "glue/workflow/example"
glue_job_component_name: "glue/job/example"
glue_job_timeout: 10
trigger_enabled: true
start_on_creation: true
schedule: "cron(15 12 * * ? *)"
type: SCHEDULED
Variables
Required Variables
Optional Variables
actions
(list(any)
) optionalList of actions initiated by the trigger when it fires
Default value:
null
event_batching_condition
(map(number)
) optionalBatch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires
Default value:
null
glue_job_component_name
(string
) optionalGlue workflow job name. Used to get the Glue job from the remote state
Default value:
null
glue_job_timeout
(number
) optionalThe job run timeout in minutes. It overrides the timeout value of the job
Default value:
null
glue_workflow_component_name
(string
) optionalGlue workflow component name. Used to get the Glue workflow from the remote state
Default value:
null
predicate
(any
) optionalA predicate to specify when the new trigger should fire. Required when trigger type is
CONDITIONAL
Default value:
null
schedule
(string
) optionalCron formatted schedule. Required for triggers with type
SCHEDULED
Default value:
null
start_on_creation
(bool
) optionalSet to
true
to startSCHEDULED
andCONDITIONAL
triggers when created.true
is not supported forON_DEMAND
triggersDefault value:
true
trigger_description
(string
) optionalGlue trigger description
Default value:
null
trigger_enabled
(bool
) optionalWhether to start the created trigger
Default value:
true
trigger_name
(string
) optionalGlue trigger name. If not provided, the name will be generated from the context
Default value:
null
type
(string
) optionalThe type of trigger. Options are CONDITIONAL, SCHEDULED or ON_DEMAND
Default value:
"CONDITIONAL"
Context Variables
The following variables are defined in the context.tf
file of this module and part of the terraform-null-label pattern.
context.tf
file of this module and part of the terraform-null-label pattern.Outputs
trigger_arn
Glue trigger ARN
trigger_id
Glue trigger ID
trigger_name
Glue trigger name
Dependencies
Requirements
terraform
, version:>= 1.3.0
aws
, version:>= 4.0
utils
, version:>= 1.15.0
Modules
Name | Version | Source | Description |
---|---|---|---|
glue_job | 1.8.0 | cloudposse/stack-config/yaml//modules/remote-state | n/a |
glue_trigger | 0.4.0 | cloudposse/glue/aws//modules/glue-trigger | n/a |
glue_workflow | 1.8.0 | cloudposse/stack-config/yaml//modules/remote-state | n/a |
iam_roles | latest | ../../account-map/modules/iam-roles | n/a |
this | 0.25.0 | cloudposse/label/null | n/a |
References
- cloudposse/terraform-aws-components - Cloud Posse's upstream component