Help creating GlueTrigger

I am trying to create a glue job trigger. Which requires an actions parameter. I am unable to get this to pass/work successfully. Wonder if anyone in this community can help. Below is a reference code snippet.

glue_trigger_actions = glue.GlueTriggerActions(job_name=glue_job.name)

glue.GlueTrigger(
    self,
    id_="daily_load_trigger",
    actions=<HOW_SHOULD_I_PASS_THIS_VALUE?>,
    type="SCHEDULED",
    schedule="cron(0 1 * * ? *)",
    name="Daily Incremental Load",
    description="Loads transactions",
    enabled=False,
)

Hi @allandsouza :wave:

You could try

actions=[glue_trigger_actions]

at least that’s what cdktf convert --language python gave me.

actions=[GlueTriggerActions(
    job_name="${aws_glue_job.example1.name}"
)],

when using the HCL example from the provider docs.

1 Like

That worked. Thanks a ton!