-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discount expiry notifier - Create state machine #2619
Discount expiry notifier - Create state machine #2619
Conversation
cdk/bin/cdk.ts
Outdated
@@ -287,3 +288,11 @@ new UserBenefits(app, 'user-benefits-PROD', { | |||
supporterProductDataTable: | |||
'supporter-product-data-tables-PROD-SupporterProductDataTable', | |||
}); | |||
new DiscountExpiryNotifier(app, 'discount-expiry-notifier-CODE', { | |||
stack: 'membership', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super minor comment is that I just remembered that we'd prefer going forward to use support
rather than membership
as a stack name.
It would mean updating those values where they come up (cdk and riff raff) and redeploy.
This is not a "must do".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good - just a super minot comment on the stack name
What does this change?
Add a new state machine that will contain functions that orchestrate a notification to customers with a discount that is soon to expire.
Discounted Subs Notifications - Proposed Process flow
Notes
Empty lambda is present in these changes. Seems like this is the easy way to introduce a new state machine in support -service-lambdas. This lambda (getSubsWithExpiringDiscounts) will be the fleshed out in the next piece of work.