-
Notifications
You must be signed in to change notification settings - Fork 0
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
Refactor/split handler #3
Conversation
tweak list bullet
tweak webpack plugin No external without included modules Fix resolution
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.
TODOs
environment: { | ||
SLACK_WEBHOOK_URL: slackWebhookUrl, | ||
}, |
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.
Give typing
const slackWebhookUrl = process.env.SLACK_WEBHOOK_URL; | ||
if (!slackWebhookUrl) { | ||
throw new Error("Missing Webhook URL"); | ||
} |
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.
the corresponding typing is preferable.
environment: { | ||
SLACK_WEBHOOK_URL: slackWebhookUrl, | ||
SLACK_ALERTER_ARN: target, | ||
}, |
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.
type it
const command = (json: Buffer) => | ||
new InvokeCommand({ | ||
InvocationType: "Event", // = async | ||
FunctionName: process.env.SLACK_ALERTER_ARN!, |
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.
type it.
statements: [ | ||
{ | ||
Effect: "Allow", | ||
Resource: "*", // TODO: narrow |
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.
FIXME: circular dependency
resolve #2
log → log, slack