-
Notifications
You must be signed in to change notification settings - Fork 8
/
r-elb-delete-unused.yml
48 lines (48 loc) · 1.46 KB
/
r-elb-delete-unused.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
47
48
policies:
- name: r-elb-delete-unused
resource: elb
filters:
- Instances: []
actions:
- delete
- type: webhook
url: REPLACE_WEBHOOK_HERE
body: |-
{
"attachments": [
{
"fallback": `CloudCustodian Policy Violation`,
"title": policy.description,
"color": `danger`,
"fields": [
{
"title": `Priority`,
"value": `High`,
"short": `true`
},
{
"title": `Loadbalancer Name`,
"value": resource.LoadBalancerName,
"short": `true`
},
{
"title": `AutoTag_Creator`,
"value": resource.Tags[?Key==`AutoTag_Creator`].Value | [0] || `Tag Unavailable`,
"short": `true`
},
{
"title": `Account ID`,
"value": account_id,
"short": `true`
},
{
"title": `Region`,
"value": region,
"short": `true`
}
],
"footer": `Powered By CldCvr DevSecOps`,
"footer_icon": `https://a.cldcvr.com/cldcvr/favicons/64px.png`
}
]
}