Hi all, I'm currently trying to create an EventRul...
# aws
l
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
eventPattern is an Input<string>, though the docs just say string (I've requested that they change that). You can use
Copy code
eventPattern: gluejob.name.apply(name => `${name}OtherStuffHere`)
Or whatever works in your preferred language.