AWS CodeBuildの実行結果をLambdaを使ってSlackに通知する
$ make build
$ sls deploy --aws-profile <PROFILE> --slackurl <WEBHOOK_URL>
$ make help
build: Build binaries
build-deps: Setup build
deps: Install dependencies
devel-deps: Setup development
help: Show help
lint: Lint
- イベントパターン
{
"detail-type": [
"CodeBuild Build State Change"
],
"source": [
"aws.codebuild"
],
"detail": {
"build-status": [
"FAILED",
"STOPPED",
"SUCCEEDED",
"IN_PROGRESS"
]
}
}
serverless.ymlに記載