-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
46 lines (41 loc) · 969 Bytes
/
serverless.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
service: codepipeline-notifier
frameworkVersion: ">=1.44.1 <2.0.0"
custom:
bucket: alis-codepipeline-notifier-${env:STAGE}
pythonRequirements:
dockerizePip: true
provider:
name: aws
runtime: python3.7
stage: ${env:STAGE}
region: ap-northeast-1
environment:
SLACK_NOTIFICATION_URL: ${env:SLACK_NOTIFICATION_URL}
SLACK_CHANNEL: ${env:SLACK_CHANNEL}
package:
individually: true
exclude:
- .git/**
- venv/**
- tmp.*
- .envrc*
- deploy.sh
- .python-version
- .git*
- package.json
- README.md
functions:
CodepipelineToSlack:
handler: handlers/codepipeline_to_slack.lambda_handler
events:
- cloudwatchEvent:
event:
source:
- "aws.codepipeline"
detail-type:
- "CodePipeline Pipeline Execution State Change"
detail:
state:
- CANCELED
- FAILED
- SUCCEEDED