First, I want to say I found the recording of the SailPoint / AWS ‘Howdy Partner’ event really helpful in understanding how to setup EventBridge to see and handle Events from IdentityNow - so thanks!
I have used the example provided in the demo (@neil.mcglennon) and the code for the AWS Lamdba to generate a campaign following a change in an Identity Attribute. And it works, sort of!
The main issue is with the activation of the campaign: it mostly fails (not every time) with an error 'IllegalArgumentException: Campaign xxxxxxxxxxxxxxx is not in a Staged Status. Only Staged campaigns can be activated. I think the problem is a race condition - the AWS Lambda code is generating the campaign and trying to activate it before it is ready (‘staged’).
My question is, how do I extend the code to ensure the activation call works every time?
I have extended the example code to try an ‘sleep’ to introduce a delay - but that is not certain to work.
I will be extending the project (as time permits): I have already modified the code to lookup the subjects Manager to dynamically select the reviewer for the campaign - which seems to work ok. I will work on other models for selecting different campaign reviewers such as role owner. I will also extend the code to set the campaign duration to a week from creation.