https://pulumi.com logo
Title
l

limited-electrician-71574

12/20/2021, 6:31 PM
Hi all, I'm currently trying to create an EventRule to trigger a Lambda after a successful execution of a Glue job. It appears that the
event_pattern
parameter in
aws.cloudwatch.EventRule
must be a string. The Glue job configured has a random suffix attached to the resource name. How do I specify the job name in the
event_pattern
given that
gluejob.name
is an
Output
type? I'm coding w/ Python. Thanks!
l

little-cartoon-10569

12/20/2021, 8:37 PM
eventPattern is an Input<string>, though the docs just say string (I've requested that they change that). You can use
eventPattern: gluejob.name.apply(name => `${name}OtherStuffHere`)
Or whatever works in your preferred language.