-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.functions.yml
More file actions
108 lines (101 loc) · 4.64 KB
/
serverless.functions.yml
File metadata and controls
108 lines (101 loc) · 4.64 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
functions:
slackPostCodeBuildStatus:
handler: index.handler
events: ${file(serverless.custom.yml):codeBuildStatusEvent}
package:
artifact: 'services/slack-post/dist/dist_slack_post.zip'
role: sendSlackRole
layers:
- ${env:AXIOS_LAYER_VERSION}
environment:
SLACK_POST_METADATA_BUCKET_NAME: ${env:SLACK_POST_METADATA_BUCKET_NAME}
SLACK_POST_METADATA_FILE_NAME: ${env:SLACK_POST_METADATA_FILE_NAME}
SLACK_POST_TEMPLATE_PATH: ${env:SLACK_POST_TEMPLATE_CODEBUILD}
SLACK_POST_CHANNEL: ${env:SLACK_POST_CHANNEL}
SLACK_BOT_OAUTH_TOKEN: ${env:SLACK_BOT_OAUTH_TOKEN} # ${ssm:/codepipeline-actions/slack_bot_oauth_token~true} # ~true for SecuredString
slackPostRelease:
handler: index.handler
events: ${file(serverless.custom.yml):slackPostReleaseEvent}
package:
artifact: 'services/slack-post/dist/dist_slack_post.zip'
role: sendSlackRole
layers:
- ${env:AXIOS_LAYER_VERSION}
environment:
SLACK_POST_TEMPLATE_PATH: ${env:SLACK_POST_TEMPLATE_PATH}
SLACK_POST_METADATA_BUCKET_NAME: ${env:SLACK_POST_METADATA_BUCKET_NAME}
SLACK_POST_METADATA_FILE_NAME: ${env:SLACK_POST_METADATA_FILE_NAME}
SLACK_POST_CHANNEL: ${env:SLACK_POST_CHANNEL}
SLACK_BOT_OAUTH_TOKEN: ${env:SLACK_BOT_OAUTH_TOKEN} # ${ssm:/codepipeline-actions/slack_bot_oauth_token~true} # ~true for SecuredString
codepipelineSlackRelease:
handler: index.handler
package:
artifact: 'services/codepipeline-slack/dist/dist_codepipeline_slack.zip'
role: processApprovalRole
events: ${file(serverless.custom.yml):processApprovalSlackReleaseEvents}
environment:
REJECTED_BUCKET_NAME: ${env:REJECTED_BUCKET_NAME}
REJECTED_FILE_NAME: ${env:REJECTED_FILE_NAME}
CODEPIPELINE_INVOKE_LAMBDA_FUNCTION_NAME: ${env:CODEPIPELINE_INVOKE_LAMBDA_FUNCTION_NAME}
SLACK_SIGNING_SECRET: ${env:SLACK_SIGNING_SECRET} # ${ssm:/codepipeline-actions/slack_signing_secret~true} # ~true for SecuredString
slackUpdateRelease:
handler: index.handler
package:
artifact: 'services/slack-update/dist/dist_slack_update.zip'
role: sendSlackRole
layers:
- ${env:AXIOS_LAYER_VERSION}
environment:
SLACK_BOT_OAUTH_TOKEN: ${env:SLACK_BOT_OAUTH_TOKEN} # ${ssm:/codepipeline-actions/slack_bot_oauth_token~true} # ~true for SecuredString
copyCandidate:
handler: index.handler
package:
artifact: 'services/copy-object/dist/dist_copy_object.zip'
role: copyObjectRole
environment:
OUTPUT_BUCKET_NAME: ${env:COPY_OBJECT_TARGET_BUCKET_NAME}
OUTPUT_FILENAME: ${env:COPY_OBJECT_TARGET_FILE_NAME}
SOURCE_BUCKET_NAME: ${env:COPY_OBJECT_SOURCE_BUCKET_NAME}
SOURCE_FILE_NAME: ${env:COPY_OBJECT_SOURCE_FILE_NAME}
codepipelineAutoQa:
handler: index.handler
package:
artifact: 'services/codepipeline-auto/dist/dist_codepipeline_auto.zip'
role: processApprovalRole
events: ${file(serverless.custom.yml):autoQaApprovalEvent}
environment:
CONDITION_BUCKET_NAME: ${env:CONDITION_BUCKET_NAME}
CONDITION_FILENAME: ${env:CONDITION_FILENAME}
CONDITION_METADATA_PROPERTY: ${env:CONDITION_METADATA_PROPERTY}
CONDITION_METADATA_SUCCESS: ${env:CONDITION_METADATA_SUCCESS}
REJECTED_BUCKET_NAME: ''
REJECTED_FILE_NAME: ''
CODEPIPELINE_AUTO_INVOKE_LAMBDA_FUNCTION_NAME: ${env:CODEPIPELINE_AUTO_INVOKE_LAMBDA_FUNCTION_NAME}
slackUploadQaResults:
handler: index.handler
package:
artifact: 'services/slack-uploadfile/dist/dist_slack_uploadfile.zip'
role: slackUploadFileRole
layers:
- ${env:AXIOS_LAYER_VERSION}
- ${env:FORMDATA_LAYER_VERSION}
environment:
SLACK_UPLOAD_CHANNEL: ${env:SLACK_POST_CHANNEL}
SLACK_BOT_OAUTH_TOKEN: ${env:SLACK_BOT_OAUTH_TOKEN}
SLACK_UPLOAD_BUCKET_NAME: ${env:SLACK_UPLOAD_BUCKET_NAME}
SLACK_UPLOAD_FILE_NAME: ${env:SLACK_UPLOAD_FILE_NAME}
SLACK_UPLOAD_MESSAGE: ':x: AutoQa Results - Failed\nDownload the results and open in browser'
slackPostFinalApproval:
handler: index.handler
events: ${file(serverless.custom.yml):slackPostFinalApprovalEvent}
package:
artifact: 'services/slack-post/dist/dist_slack_post.zip'
role: sendSlackRole
layers:
- ${env:AXIOS_LAYER_VERSION}
environment:
SLACK_POST_TEMPLATE_PATH: ${env:SLACK_POST_TEMPLATE_PATH}
SLACK_POST_METADATA_BUCKET_NAME: ${env:SLACK_POST_METADATA_BUCKET_NAME}
SLACK_POST_METADATA_FILE_NAME: ${env:SLACK_POST_METADATA_FILE_NAME}
SLACK_POST_CHANNEL: ${env:SLACK_POST_CHANNEL}
SLACK_BOT_OAUTH_TOKEN: ${env:SLACK_BOT_OAUTH_TOKEN} # ${ssm:/codepipeline-actions/slack_bot_oauth_token~true} # ~true for SecuredString