-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.yaml
59 lines (52 loc) · 1.68 KB
/
template.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
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: >
Metadata:
AWS::ServerlessRepo::Application:
Name: ssl-rating-to-slack
Description: SAM Template that allow you to performs a deep analysis of the configuration of any SSL web server on the public Internet. By using SSL Labs APIs and send results to slack
Author: devops-made-easy
SpdxLicenseId: MIT
LicenseUrl: LICENSE
ReadmeUrl: README.md
Labels: ['devops-made-easy', "ssl-rating", "ssl-grade", "ssl-labs", "qualys"]
HomePageUrl: https://github.com/devops-made-easy/aws-sam-ssllabs
SemanticVersion: 1.0.0
SourceCodeUrl: https://github.com/devops-made-easy/aws-sam-ssllabs
Globals:
Function:
Timeout: 300
Parameters:
DomainName:
Description: "Domain name that needs to be scanned and is publicly accessible"
Type: String
SlackWebhookUrl:
Description: "Your Slack webhook URL "
Type: String
CronSchedule:
Description: "Cron or Rate Expression for cloud watch event "
Type: String
#Default: "cron(0 8 1 * ? *)"
Resources:
SSLCertificateRating:
Type: AWS::Serverless::Function
Properties:
CodeUri: ssl_certificate_rating/
Handler: app.lambda_handler
Runtime: python3.6
Environment:
Variables:
DOMAIN:
Ref: DomainName
SLACK_WEBHOOK_URL:
Ref: SlackWebhookUrl
Events:
CloudWatchEvent:
Type: Schedule
Properties:
Schedule:
Ref: CronSchedule
Outputs:
SSLCertificateRatingFunction:
Description: "SSLCertificateRating Lambda Function ARN"
Value: !GetAtt SSLCertificateRating.Arn