11AWSTemplateFormatVersion : ' 2010-09-09' 
2+ Transform : AWS::Serverless-2016-10-31 
23Description : ' This function is invoked by AWS CloudWatch events in response to state
34  change in your AWS resources which matches a event target definition. The event 
45  payload received is then forwarded to Sumo Logic HTTP source endpoint. 
@@ -24,56 +25,36 @@ Metadata:
2425      - SourceCategoryName 
2526      - RemoveSumoResourcesOnDeleteStack 
2627    ParameterLabels :
27-       CollectorName :
28-         default : Collector Name 
29-       RemoveSumoResourcesOnDeleteStack :
30-         default : Remove Sumo Resources On Delete Stack 
31-       SourceCategoryName :
32-         default : Source Category Name 
33-       SourceName :
34-         default : Source Name 
28+       SumoDeployment :
29+         default : Deployment Name 
3530      SumoAccessID :
3631        default : Access ID 
3732      SumoAccessKey :
3833        default : Access Key 
39-       SumoDeployment :
40-         default : Deployment Name 
41- Outputs :
42-   CloudWatchEventFunction :
43-     Description : CloudWatchEvent Processor Function ARN 
44-     Value :
45-       Fn::GetAtt :
46-       - CloudWatchEventFunction 
47-       - Arn 
48-   GuarddutyBenchmarkAppFolder :
49-     Description : Folder Name 
50-     Value :
51-       Fn::GetAtt :
52-       - SumoGuardDutyBenchmarkApp 
53-       - APP_FOLDER_NAME 
34+       CollectorName :
35+         default : Collector Name 
36+       SourceName :
37+         default : Source Name 
38+       SourceCategoryName :
39+         default : Source Category Name 
40+       RemoveSumoResourcesOnDeleteStack :
41+         default : Remove Sumo Resources On Delete Stack 
5442Parameters :
5543  CollectorName :
56-     Default : GuarddutyCollector 
57-     Type : String 
58-   RemoveSumoResourcesOnDeleteStack :
59-     AllowedValues :
60-     - true 
61-     - false 
62-     Default : false 
63-     Description : To delete collector, sources and app when stack is deleted, set this 
64-       parameter to true. Default is false. 
65-     Type : String 
66-   SourceCategoryName :
67-     Default : Labs/AWS/Guardduty 
6844    Type : String 
45+     Default : GuarddutyCollector 
6946  SourceName :
47+     Type : String 
7048    Default : GuarddutyEvents 
49+   SourceCategoryName :
7150    Type : String 
51+     Default : Labs/AWS/Guardduty 
7252  SumoAccessID :
7353    Type : String 
7454  SumoAccessKey :
7555    Type : String 
7656  SumoDeployment :
57+     Type : String 
7758    AllowedValues :
7859    - au 
7960    - ca 
@@ -83,6 +64,13 @@ Parameters:
8364    - us2 
8465    - us1 
8566    Description : Enter au, ca, de, eu, jp, us2, or us1 
67+   RemoveSumoResourcesOnDeleteStack :
68+     AllowedValues :
69+     - true 
70+     - false 
71+     Default : false 
72+     Description : To delete collector, sources and app when stack is deleted, set this 
73+       parameter to true. Default is false. 
8674    Type : String 
8775Resources :
8876  CloudWatchEventFunction :
@@ -105,77 +93,89 @@ Resources:
10593      Runtime : nodejs8.10 
10694    Type : AWS::Serverless::Function 
10795  SumoAppUtils :
96+     Type : AWS::Serverless::Application 
10897    Properties :
10998      Location :
11099        ApplicationId : arn:aws:serverlessrepo:us-east-1:956882708938:applications/sumologic-app-utils 
111-         SemanticVersion : 1.0.5  
112-      Type :  AWS::Serverless::Application 
113-   SumoGuardDutyBenchmarkApp : 
100+         SemanticVersion : 1.0.6  
101+   SumoHostedCollector : 
102+      Type :  Custom::Collector 
114103    Properties :
115-       AppName : Amazon GuardDuty Benchmark 
116-       AppSources :
117-         gdbenchmark :
118-           Fn::Sub : _sourceCategory=${SourceCategoryName} 
119-       Region :
120-         Ref : AWS::Region 
121-       RemoveOnDeleteStack :
122-         Ref : RemoveSumoResourcesOnDeleteStack 
123104      ServiceToken :
124105        Fn::GetAtt :
125106        - SumoAppUtils 
126107        - Outputs.SumoAppUtilsFunction 
108+       Region :
109+         Ref : AWS::Region 
110+       CollectorType : Hosted 
111+       RemoveOnDeleteStack :
112+         Ref : RemoveSumoResourcesOnDeleteStack 
113+       CollectorName :
114+         Ref : CollectorName 
127115      SumoAccessID :
128116        Ref : SumoAccessID 
129117      SumoAccessKey :
130118        Ref : SumoAccessKey 
131119      SumoDeployment :
132120        Ref : SumoDeployment 
133-     Type : Custom::App 
134121  SumoHTTPSource :
122+     Type : Custom::HTTPSource 
135123    Properties :
136-       CollectorId :
124+       ServiceToken :
137125        Fn::GetAtt :
138-         - SumoHostedCollector 
139-         - COLLECTOR_ID 
140-       DateFormat : yyyy-MM-dd'T'HH:mm:ss.SSS'Z' 
141-       DateLocatorRegex : .*"updatedAt":"(.*)".* 
126+         - SumoAppUtils 
127+         - Outputs.SumoAppUtilsFunction 
142128      Region :
143129        Ref : AWS::Region 
130+       SourceName :
131+         Ref : SourceName 
144132      RemoveOnDeleteStack :
145133        Ref : RemoveSumoResourcesOnDeleteStack 
146-       ServiceToken :
147-         Fn::GetAtt :
148-         - SumoAppUtils 
149-         - Outputs.SumoAppUtilsFunction 
150134      SourceCategory :
151135        Ref : SourceCategoryName 
152-       SourceName :
153-         Ref : SourceName 
136+       CollectorId :
137+         Fn::GetAtt :
138+         - SumoHostedCollector 
139+         - COLLECTOR_ID 
154140      SumoAccessID :
155141        Ref : SumoAccessID 
156142      SumoAccessKey :
157143        Ref : SumoAccessKey 
158144      SumoDeployment :
159145        Ref : SumoDeployment 
160-     Type : Custom::HTTPSource 
161-   SumoHostedCollector :
146+       DateFormat : yyyy-MM-dd'T'HH:mm:ss.SSS'Z' 
147+       DateLocatorRegex : .*"updatedAt":"(.*)".* 
148+   SumoGuardDutyBenchmarkApp :
149+     Type : Custom::App 
162150    Properties :
163-       CollectorName :
164-         Ref : CollectorName 
165-       CollectorType : Hosted 
166-       Region :
167-         Ref : AWS::Region 
168-       RemoveOnDeleteStack :
169-         Ref : RemoveSumoResourcesOnDeleteStack 
170151      ServiceToken :
171152        Fn::GetAtt :
172153        - SumoAppUtils 
173154        - Outputs.SumoAppUtilsFunction 
155+       Region :
156+         Ref : AWS::Region 
157+       AppName : Amazon GuardDuty Benchmark 
158+       RemoveOnDeleteStack :
159+         Ref : RemoveSumoResourcesOnDeleteStack 
160+       AppSources :
161+         gdbenchmark :
162+           Fn::Sub : _sourceCategory=${SourceCategoryName} 
174163      SumoAccessID :
175164        Ref : SumoAccessID 
176165      SumoAccessKey :
177166        Ref : SumoAccessKey 
178167      SumoDeployment :
179168        Ref : SumoDeployment 
180-     Type : Custom::Collector 
181- Transform : AWS::Serverless-2016-10-31 
169+ Outputs :
170+   CloudWatchEventFunction :
171+     Description : CloudWatchEvent Processor Function ARN 
172+     Value :
173+       Fn::GetAtt :
174+       - CloudWatchEventFunction 
175+       - Arn 
176+   GuarddutyBenchmarkAppFolder :
177+     Description : Folder Name 
178+     Value :
179+       Fn::GetAtt :
180+       - SumoGuardDutyBenchmarkApp 
181+       - APP_FOLDER_NAME 
0 commit comments