-
Notifications
You must be signed in to change notification settings - Fork 1
Update: [AEA-5931] - Add S3 Notifications Lambda #352
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
Safely merge main into 5931
| resources: [ | ||
| props.knowledgeBaseArn, | ||
| `arn:aws:ssm:${props.region}:${props.account}:parameter${props.slackBotTokenParameterName}`, | ||
| `arn:aws:ssm:${props.region}:${props.account}:parameter${props.slackSigningSecretParameterName}` |
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.
nitpick (non-blocking) these two ARNs are already declared in this file, could make them reusable?
| bucket_name = s3_record["s3"].get("bucket", {}).get("name", None) | ||
|
|
||
| if bucket_name is None or "-pr-" in bucket_name: | ||
| # Ignore PR buckets |
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.
nitpick: (non-blocking) this comment is a left over, isn't needed anymore
|
|
||
| # Skip if no bucket name (e.g., PR buckets) | ||
| # PR Lambdas will post to DEV channels | ||
| if bucket_name is None: |
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.
thought (non-blocking): given the PR noise point you raised, what do you think about gating this behind an env var on the lambda?
default it off for PR stacks to avoid spam, but easy to flip on ad-hoc when we actually want to debug notifications in a PR env
feels like a decent middle ground between DX and not annoying everyone
p.s.: sorry - I know I made you remove the -pr- check earlier today 😅
|



Summary
Add notification to Slack when files update in S3
Details