-
Notifications
You must be signed in to change notification settings - Fork 5
feat(imovo): imovo-rewards-project-startup #3389
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
Conversation
| nameSuffix: 'consumer', | ||
| queueNameSuffix: `events`, | ||
| lambdaOverrides: { | ||
| description: 'A lambda that handles stripe disputes SQS events', |
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.
| description: 'A lambda that handles stripe disputes SQS events', | |
| description: 'A lambda that handles imovo voucher SQS requests', |
graham228221
left a comment
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.
Generally looks fine! But as discussed I think we should name this stack something a bit more generic as they outputs won't always be "rewards".
My suggestion would be imovo-voucher-api (this opens up the possibility to migrate the existing digital-voucher-api scala stack into this typescript application in future).
There's a few copy/paste bits that mention the stripe-disputes work
| `There are one or more failed dispute webhook events in the ${app} dead letter queue (DLQ). ` + | ||
| `Check the attributes of the failed message(s) for details of the error and ` + | ||
| 'ensure the Stripe webhook processing is working correctly.', |
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.
A few copy and paste bits from the Stripe disputes work
| function getStripeSecretPolicy(scope: SrStack) { | ||
| return new AllowGetSecretValuePolicy( | ||
| scope, | ||
| 'Allow Secrets Manager Stripe Webhooks policy', | ||
| 'Stripe/ConnectedApp/StripeDisputeWebhooks-*', | ||
| ); | ||
| } | ||
|
|
||
| function getSalesforceSecretPolicy(scope: SrStack) { | ||
| return new AllowGetSecretValuePolicy( | ||
| scope, | ||
| 'Allow Secrets Manager Salesforce policy', | ||
| 'Salesforce/ConnectedApp/StripeDisputeWebhooks-*', | ||
| ); |
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.
We won't need these for this project (we will need the imovo credentials)
What does this change?
Adds the boilerplate infrastructure for a new imovo-rewards Lambda handler. This sets up everything needed so we can start building the Imovo rewards feature on top
of it.
Changes include:
How has this change been tested?
How can we measure success?
The Lambda is deployed and reachable in CODE. CloudWatch logs show successful invocations. This is scaffolding only -- real success metrics will come with the actual
feature implementation.
Have we considered potential risks?
Minimal risk. This is a new standalone stack with no impact on existing handlers. The Hello World handler has no external dependencies or access to sensitive data.