|
1 | 1 | AWSTemplateFormatVersion: '2010-09-09' |
2 | 2 | Transform: AWS::Serverless-2016-10-31 |
3 | 3 | Description: > |
4 | | - This function is invoked by AWS CloudWatch events in response to state change in your AWS resources which matches a event target definition. The event payload received is then forwarded to Sumo Logic HTTP source endpoint. |
| 4 | + This function is invoked by AWS CloudWatch events in response to state change in your AWS resources which matches a event target definition. The event payload received is then forwarded to Sumo Logic HTTP source endpoint. |
5 | 5 |
|
6 | 6 | # More info about Globals: https://github.com/awslabs/serverless-application-model/blob/master/docs/globals.rst |
7 | 7 | Globals: |
8 | | - Function: |
9 | | - Timeout: 300 |
| 8 | + Function: |
| 9 | + Timeout: 300 |
| 10 | + |
| 11 | +Metadata: |
| 12 | + AWS::ServerlessRepo::Application: |
| 13 | + Author: Sumo Logic |
| 14 | + Description: This function is invoked by AWS CloudWatch events in response to state change in your AWS resources which matches a event target definition. The event payload received is then forwarded to Sumo Logic HTTP source endpoint. |
| 15 | + HomePageUrl: https://github.com/SumoLogic/sumologic-aws-lambda |
| 16 | + Labels: |
| 17 | + - sumologic |
| 18 | + - serverless |
| 19 | + - guardduty |
| 20 | + - security |
| 21 | + - cloudwatchevents |
| 22 | + - guardduty |
| 23 | + Name: sumologic-guardduty-events-processor |
| 24 | + LicenseUrl: ../LICENSE |
| 25 | + ReadmeUrl: ./README.md |
| 26 | + SemanticVersion: 1.0.3 |
| 27 | + SourceCodeUrl: https://github.com/SumoLogic/sumologic-aws-lambda/tree/master/cloudwatchevents/guardduty |
| 28 | + SpdxLicenseId: Apache-2.0 |
10 | 29 |
|
11 | 30 | Parameters: |
12 | | - SumoEndpointUrl: |
13 | | - Type: String |
| 31 | + SumoEndpointUrl: |
| 32 | + Type: String |
14 | 33 |
|
15 | 34 | Resources: |
16 | 35 |
|
17 | | - CloudWatchEventFunction: |
18 | | - Type: AWS::Serverless::Function # More info about Function Resource: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction |
19 | | - Properties: |
20 | | - CodeUri: ../src/ |
21 | | - Handler: cloudwatchevents.handler |
22 | | - Runtime: nodejs12.x |
23 | | - Environment: |
24 | | - Variables: |
25 | | - SUMO_ENDPOINT: !Ref SumoEndpointUrl |
26 | | - Events: |
27 | | - CloudWatchEventTrigger: |
28 | | - Type: CloudWatchEvent |
29 | | - Properties: |
30 | | - Pattern: |
31 | | - source: |
32 | | - - aws.guardduty |
| 36 | + CloudWatchEventFunction: |
| 37 | + Type: AWS::Serverless::Function # More info about Function Resource: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction |
| 38 | + Properties: |
| 39 | + CodeUri: ../src/ |
| 40 | + Handler: cloudwatchevents.handler |
| 41 | + Runtime: nodejs12.x |
| 42 | + Environment: |
| 43 | + Variables: |
| 44 | + SUMO_ENDPOINT: !Ref SumoEndpointUrl |
| 45 | + Events: |
| 46 | + CloudWatchEventTrigger: |
| 47 | + Type: CloudWatchEvent |
| 48 | + Properties: |
| 49 | + Pattern: |
| 50 | + source: |
| 51 | + - aws.guardduty |
33 | 52 | Outputs: |
34 | 53 |
|
35 | | - CloudWatchEventFunction: |
36 | | - Description: "CloudWatchEvent Processor Function ARN" |
37 | | - Value: !GetAtt CloudWatchEventFunction.Arn |
| 54 | + CloudWatchEventFunction: |
| 55 | + Description: "CloudWatchEvent Processor Function ARN" |
| 56 | + Value: !GetAtt CloudWatchEventFunction.Arn |
0 commit comments