-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathtemplate.yaml
More file actions
29 lines (27 loc) · 772 Bytes
/
template.yaml
File metadata and controls
29 lines (27 loc) · 772 Bytes
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
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: Lambda Ping - AWS SAM migration
Globals:
Function:
Timeout: 30
MemorySize: 128
Runtime: nodejs22.x
Resources:
PingFunction:
Type: AWS::Serverless::Function
Properties:
Handler: handler.http
CodeUri: .
Description: Perform an HTTP request to 'ping' a remote server to determine availability
Policies:
- Statement:
- Effect: Allow
Action:
- cloudwatch:PutMetricData
Resource: "*"
Events:
ScheduledPing:
Type: Schedule
Properties:
Schedule: rate(5 minutes)
Input: '["https://www.jethrocarr.com", "https://www.google.com"]'