-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsns.config.yaml
59 lines (55 loc) · 2.02 KB
/
sns.config.yaml
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
lambda_subscribers_default:
roles:
basic:
policies_inline:
- cloudwatch-logs
functions:
slackMessage:
role: basic
code: slack
package_cmd: './package.sh'
handler: slack_notify.lambda_handler
timeout: 10
runtime: python3.8
environment:
slack_channel:
Ref: SlackChannel
slack_incoming_hook:
Ref: SlackIncomingWebHook
slack_username:
Ref: SlackUsername
use_default_lambda_subscribers: false
###
### Example configuration for component
###
#example_config:
# topics:
# default_sns_topic:
# topic_name: production_alarms
# display_name: Production Alarms
# output: true # topic arn will be created as 'Defaultsnstopic' output (capatilized, with removed underscores and slashes)
# # set to false if you don't need this output (e.g. more than 60 topics / outputs)
# subscriptions:
# # Check https://docs.aws.amazon.com/sns/latest/api/API_Subscribe.html for
# # valid protocols. Type translates to protocol, and destination to endpoint
# # http and https
# - protocol: http
# endpoint: https://www.myapiwebhookreciever.com
# - protocol: https
# endpoint: https://www.myapiwebhookreciever.com
#
# - protocol: email
# endpoint: [email protected]
#
# # endpoint for lambda cen be
# # 1. reference to key under lambda_subscribers
# - protocol: lambda
# endpoint: lambda_subscribers_default.slackMessage
# # 2. of arn type
# - protocol: lambda
# endpoint: arn:aws:lambda:us-east-1:123456789012:function:SnsSlackMesasge
# # 3. by default if there is no key, and is not in arn form, it will just try to use function
# # with given name within same account and region as sns topic
# # This will evaluate to FnJoin('',['arn:aws:lambda:', Ref('AWS::Region'), ':', Ref('AWS::Account'), ':function:slackMessage' ])
# - protocol: lambda
# endpoint: slackMessage