From 45f6f3759c06f5c6efcb0c235e5769a44d394b14 Mon Sep 17 00:00:00 2001 From: Akhil Dangore Date: Tue, 9 Jul 2024 09:50:39 +0530 Subject: [PATCH] Fixed CF testcases for awso 2.9.0 --- .../templates/test/TestTemplate.yaml | 357 ++++++++---------- 1 file changed, 164 insertions(+), 193 deletions(-) diff --git a/aws-observability/templates/test/TestTemplate.yaml b/aws-observability/templates/test/TestTemplate.yaml index 2f84bd3a..12dba354 100644 --- a/aws-observability/templates/test/TestTemplate.yaml +++ b/aws-observability/templates/test/TestTemplate.yaml @@ -24,6 +24,10 @@ Tests: - AssertType: ResourceExistence Assert: Resources: + - LambdaRole + - LambdaPermission + - PrimerInvoke + - TelemetryLambda - CreateCommonResources - AutoEnableOptions - sumoEC2MetricsAppStack @@ -41,18 +45,19 @@ Tests: - CreateCommonResources.AddAccountField - CreateCommonResources.AddRegionField - CreateCommonResources.AddNamespaceField - - sumoDynamoDBMetricsAppStack.AddTableNameField - - sumoAlbMetricsAppStack.AddLoadBalancerField - - sumoElbMetricsAppStack.AddLoadBalancerNameField - - sumoLambdaMetricsAppStack.AddFunctionNameField - - sumoApiGatewayMetricsAppStack.AddApiNameField - - sumoApiGatewayMetricsAppStack.AddApiIdField - - sumoSNSAppStack.AddTopicNameField - - sumoSQSAppStack.AddQueueNameField - - sumoRdsMetricsAppStack.AddDBIdentifierField - - sumoEC2MetricsAppStack.AddInstanceIdField - - sumoECSMetricsAppStack.AddClusterNameField - - sumoElasticCacheMetricsAppStack.AddCacheClusterIdField + - CreateCommonResources.AddApiIdField + - CreateCommonResources.AddApiNameField + - CreateCommonResources.AddCacheClusterIdField + - CreateCommonResources.AddClusterNameField + - CreateCommonResources.AddDBIdentifierField + - CreateCommonResources.AddFunctionNameField + - CreateCommonResources.AddInstanceIdField + - CreateCommonResources.AddLoadBalancerField + - CreateCommonResources.AddLoadBalancerNameField + - CreateCommonResources.AddNETLoadBalancerField + - CreateCommonResources.AddQueueNameField + - CreateCommonResources.AddTableNameField + - CreateCommonResources.AddTopicNameField - CreateCommonResources.LambdaRole - CreateCommonResources.LambdaHelper - CreateCommonResources.AccountCheck @@ -105,16 +110,16 @@ Tests: - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.AutoEnableAlbLogEventsInvokePermission - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.AutoEnableAlbLogEventsRuleTrigger - - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.EnableExisitngAWSResourcesLambda + - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.EnableExistingAWSResourcesLambda - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.EnableNewAWSResourcesLambda - - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.ExistingAWSResources + - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.EnableAccessLogsForExistingAWSResources - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.SumoLambdaRole - AutoEnableOptions.AutoEnableS3LogsElbAWSResources - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.AutoEnableElbLogEventsInvokePermission - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.AutoEnableElbLogEventsRuleTrigger - - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.EnableExisitngAWSResourcesLambda + - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.EnableExistingAWSResourcesLambda - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.EnableNewAWSResourcesLambda - - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.ExistingAWSResources + - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.EnableAccessLogsForExistingAWSResources - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.SumoLambdaRole - AutoEnableOptions.AutoSubscribeLambdaLogGroupsAWSResources - AutoEnableOptions.AutoSubscribeLambdaLogGroupsAWSResources.InvokeLambdaConnector @@ -157,7 +162,6 @@ Tests: - sumoLambdaMetricsAppStack.GenericCloudWatchLogsFieldExtractionRule - sumoElasticCacheMetricsAppStack.sumoApp - sumoNlbMetricsAppStack - - sumoNlbMetricsAppStack.AddLoadBalancerField - sumoNlbMetricsAppStack.MetricRule - sumoNlbMetricsAppStack.sumoApp - sumoEC2MetricsAppStack.sumoAppCW @@ -187,9 +191,9 @@ Tests: - CreateCommonResources.Namespaces - CreateCommonResources.LambdaRoleARN - CreateCommonResources.BucketName - - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.EnableExisitngAWSResourcesLambda + - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.EnableExistingAWSResourcesLambda - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.EnableNewAWSResourcesLambda - - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.EnableExisitngAWSResourcesLambda + - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.EnableExistingAWSResourcesLambda - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.EnableNewAWSResourcesLambda - CreateCommonResources.KinesisMetricsRoleARN - CreateCommonResources.KinesisMetricsDeliveryStreamARN @@ -345,6 +349,10 @@ Tests: - AssertType: ResourceExistence Assert: Resources: + - LambdaRole + - LambdaPermission + - PrimerInvoke + - TelemetryLambda - CreateCommonResources - AutoEnableOptions - sumoEC2MetricsAppStack @@ -362,18 +370,19 @@ Tests: - CreateCommonResources.AddAccountField - CreateCommonResources.AddRegionField - CreateCommonResources.AddNamespaceField - - sumoDynamoDBMetricsAppStack.AddTableNameField - - sumoAlbMetricsAppStack.AddLoadBalancerField - - sumoElbMetricsAppStack.AddLoadBalancerNameField - - sumoLambdaMetricsAppStack.AddFunctionNameField - - sumoApiGatewayMetricsAppStack.AddApiNameField - - sumoApiGatewayMetricsAppStack.AddApiIdField - - sumoSNSAppStack.AddTopicNameField - - sumoSQSAppStack.AddQueueNameField - - sumoRdsMetricsAppStack.AddDBIdentifierField - - sumoEC2MetricsAppStack.AddInstanceIdField - - sumoECSMetricsAppStack.AddClusterNameField - - sumoElasticCacheMetricsAppStack.AddCacheClusterIdField + - CreateCommonResources.AddApiIdField + - CreateCommonResources.AddApiNameField + - CreateCommonResources.AddCacheClusterIdField + - CreateCommonResources.AddClusterNameField + - CreateCommonResources.AddDBIdentifierField + - CreateCommonResources.AddFunctionNameField + - CreateCommonResources.AddInstanceIdField + - CreateCommonResources.AddLoadBalancerField + - CreateCommonResources.AddLoadBalancerNameField + - CreateCommonResources.AddNETLoadBalancerField + - CreateCommonResources.AddQueueNameField + - CreateCommonResources.AddTableNameField + - CreateCommonResources.AddTopicNameField - CreateCommonResources.LambdaRole - CreateCommonResources.LambdaHelper - CreateCommonResources.AccountCheck @@ -426,16 +435,16 @@ Tests: - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.AutoEnableAlbLogEventsInvokePermission - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.AutoEnableAlbLogEventsRuleTrigger - - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.EnableExisitngAWSResourcesLambda + - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.EnableExistingAWSResourcesLambda - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.EnableNewAWSResourcesLambda - - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.ExistingAWSResources + - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.EnableAccessLogsForExistingAWSResources - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.SumoLambdaRole - AutoEnableOptions.AutoEnableS3LogsElbAWSResources - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.AutoEnableElbLogEventsInvokePermission - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.AutoEnableElbLogEventsRuleTrigger - - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.EnableExisitngAWSResourcesLambda + - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.EnableExistingAWSResourcesLambda - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.EnableNewAWSResourcesLambda - - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.ExistingAWSResources + - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.EnableAccessLogsForExistingAWSResources - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.SumoLambdaRole - AutoEnableOptions.AutoSubscribeLambdaLogGroupsAWSResources - AutoEnableOptions.AutoSubscribeLambdaLogGroupsAWSResources.InvokeLambdaConnector @@ -478,7 +487,6 @@ Tests: - sumoLambdaMetricsAppStack.GenericCloudWatchLogsFieldExtractionRule - sumoElasticCacheMetricsAppStack.sumoApp - sumoNlbMetricsAppStack - - sumoNlbMetricsAppStack.AddLoadBalancerField - sumoNlbMetricsAppStack.MetricRule - sumoNlbMetricsAppStack.sumoApp - sumoEC2MetricsAppStack.sumoAppCW @@ -508,9 +516,9 @@ Tests: - CreateCommonResources.Namespaces - CreateCommonResources.LambdaRoleARN - CreateCommonResources.BucketName - - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.EnableExisitngAWSResourcesLambda + - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.EnableExistingAWSResourcesLambda - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.EnableNewAWSResourcesLambda - - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.EnableExisitngAWSResourcesLambda + - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.EnableExistingAWSResourcesLambda - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.EnableNewAWSResourcesLambda - CreateCommonResources.KinesisMetricsRoleARN - CreateCommonResources.KinesisMetricsDeliveryStreamARN @@ -674,6 +682,10 @@ Tests: - AssertType: ResourceExistence Assert: Resources: + - LambdaRole + - LambdaPermission + - PrimerInvoke + - TelemetryLambda - CreateCommonResources - AutoEnableOptions - sumoEC2MetricsAppStack @@ -692,18 +704,19 @@ Tests: - CreateCommonResources.AddRegionField - CreateCommonResources.AddNamespaceField - CreateCommonResources.AddAccountIdField - - sumoDynamoDBMetricsAppStack.AddTableNameField - - sumoAlbMetricsAppStack.AddLoadBalancerField - - sumoElbMetricsAppStack.AddLoadBalancerNameField - - sumoLambdaMetricsAppStack.AddFunctionNameField - - sumoApiGatewayMetricsAppStack.AddApiNameField - - sumoApiGatewayMetricsAppStack.AddApiIdField - - sumoSNSAppStack.AddTopicNameField - - sumoSQSAppStack.AddQueueNameField - - sumoRdsMetricsAppStack.AddDBIdentifierField - - sumoEC2MetricsAppStack.AddInstanceIdField - - sumoECSMetricsAppStack.AddClusterNameField - - sumoElasticCacheMetricsAppStack.AddCacheClusterIdField + - CreateCommonResources.AddApiIdField + - CreateCommonResources.AddApiNameField + - CreateCommonResources.AddCacheClusterIdField + - CreateCommonResources.AddClusterNameField + - CreateCommonResources.AddDBIdentifierField + - CreateCommonResources.AddFunctionNameField + - CreateCommonResources.AddInstanceIdField + - CreateCommonResources.AddLoadBalancerField + - CreateCommonResources.AddLoadBalancerNameField + - CreateCommonResources.AddNETLoadBalancerField + - CreateCommonResources.AddQueueNameField + - CreateCommonResources.AddTableNameField + - CreateCommonResources.AddTopicNameField - CreateCommonResources.SumoLogicALBS3Policy - CreateCommonResources.SumoLogicELBS3Policy - CreateCommonResources.SumoLogicCloudTrailS3Policy @@ -759,16 +772,16 @@ Tests: - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.AutoEnableAlbLogEventsInvokePermission - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.AutoEnableAlbLogEventsRuleTrigger - - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.EnableExisitngAWSResourcesLambda + - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.EnableExistingAWSResourcesLambda - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.EnableNewAWSResourcesLambda - - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.ExistingAWSResources + - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.EnableAccessLogsForExistingAWSResources - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.SumoLambdaRole - AutoEnableOptions.AutoEnableS3LogsElbAWSResources - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.AutoEnableElbLogEventsInvokePermission - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.AutoEnableElbLogEventsRuleTrigger - - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.EnableExisitngAWSResourcesLambda + - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.EnableExistingAWSResourcesLambda - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.EnableNewAWSResourcesLambda - - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.ExistingAWSResources + - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.EnableAccessLogsForExistingAWSResources - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.SumoLambdaRole - AutoEnableOptions.AutoSubscribeLambdaLogGroupsAWSResources - AutoEnableOptions.AutoSubscribeLambdaLogGroupsAWSResources.InvokeLambdaConnector @@ -811,7 +824,6 @@ Tests: - sumoElasticCacheMetricsAppStack.sumoApp - sumoLambdaMetricsAppStack.GenericCloudWatchLogsFieldExtractionRule - sumoNlbMetricsAppStack - - sumoNlbMetricsAppStack.AddLoadBalancerField - sumoNlbMetricsAppStack.MetricRule - sumoNlbMetricsAppStack.sumoApp - sumoEC2MetricsAppStack.sumoAppCW @@ -837,9 +849,9 @@ Tests: - CreateCommonResources.Namespaces - CreateCommonResources.LambdaRoleARN - CreateCommonResources.BucketName - - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.EnableExisitngAWSResourcesLambda + - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.EnableExistingAWSResourcesLambda - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.EnableNewAWSResourcesLambda - - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.EnableExisitngAWSResourcesLambda + - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.EnableExistingAWSResourcesLambda - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.EnableNewAWSResourcesLambda - CreateCommonResources.KinesisMetricsRoleARN - CreateCommonResources.KinesisMetricsDeliveryStreamARN @@ -1198,6 +1210,10 @@ Tests: - AssertType: ResourceExistence Assert: Resources: + - LambdaRole + - LambdaPermission + - PrimerInvoke + - TelemetryLambda - CreateCommonResources - AutoEnableOptions - sumoEC2MetricsAppStack @@ -1216,18 +1232,6 @@ Tests: - CreateCommonResources.AddRegionField - CreateCommonResources.AddNamespaceField - CreateCommonResources.AddAccountIdField - - sumoDynamoDBMetricsAppStack.AddTableNameField - - sumoAlbMetricsAppStack.AddLoadBalancerField - - sumoElbMetricsAppStack.AddLoadBalancerNameField - - sumoLambdaMetricsAppStack.AddFunctionNameField - - sumoApiGatewayMetricsAppStack.AddApiNameField - - sumoApiGatewayMetricsAppStack.AddApiIdField - - sumoSNSAppStack.AddTopicNameField - - sumoSQSAppStack.AddQueueNameField - - sumoRdsMetricsAppStack.AddDBIdentifierField - - sumoEC2MetricsAppStack.AddInstanceIdField - - sumoECSMetricsAppStack.AddClusterNameField - - sumoElasticCacheMetricsAppStack.AddCacheClusterIdField - CreateCommonResources.SumoLogicALBS3Policy - CreateCommonResources.SumoLogicELBS3Policy - CreateCommonResources.LambdaRole @@ -1294,7 +1298,6 @@ Tests: - sumoLambdaMetricsAppStack.LambdaCloudWatchLogsFieldExtractionRule - sumoLambdaMetricsAppStack.GenericCloudWatchLogsFieldExtractionRule - sumoNlbMetricsAppStack - - sumoNlbMetricsAppStack.AddLoadBalancerField - sumoNlbMetricsAppStack.MetricRule - CreateCommonResources.AccountAliasValue - RootCauseAppStack.AccountAliasValue @@ -1481,6 +1484,10 @@ Tests: - AssertType: ResourceExistence Assert: Resources: + - LambdaRole + - LambdaPermission + - PrimerInvoke + - TelemetryLambda - CreateCommonResources - sumoEC2MetricsAppStack - sumoAlbMetricsAppStack @@ -1499,18 +1506,6 @@ Tests: - CreateCommonResources.AddRegionField - CreateCommonResources.AddNamespaceField - CreateCommonResources.AddAccountIdField - - sumoDynamoDBMetricsAppStack.AddTableNameField - - sumoAlbMetricsAppStack.AddLoadBalancerField - - sumoElbMetricsAppStack.AddLoadBalancerNameField - - sumoLambdaMetricsAppStack.AddFunctionNameField - - sumoApiGatewayMetricsAppStack.AddApiNameField - - sumoApiGatewayMetricsAppStack.AddApiIdField - - sumoSNSAppStack.AddTopicNameField - - sumoSQSAppStack.AddQueueNameField - - sumoRdsMetricsAppStack.AddDBIdentifierField - - sumoEC2MetricsAppStack.AddInstanceIdField - - sumoECSMetricsAppStack.AddClusterNameField - - sumoElasticCacheMetricsAppStack.AddCacheClusterIdField - CreateCommonResources.LambdaRole - CreateCommonResources.LambdaHelper - CreateCommonResources.AccountCheck @@ -1572,7 +1567,6 @@ Tests: - sumoLambdaMetricsAppStack.GenericCloudWatchLogsFieldExtractionRule - sumoEC2MetricsAppStack.FieldExtractionRule - sumoNlbMetricsAppStack - - sumoNlbMetricsAppStack.AddLoadBalancerField - sumoNlbMetricsAppStack.MetricRule - CreateCommonResources.AccountAliasValue - RootCauseAppStack.AccountAliasValue @@ -1733,6 +1727,10 @@ Tests: - AssertType: ResourceExistence Assert: Resources: + - LambdaRole + - LambdaPermission + - PrimerInvoke + - TelemetryLambda - CreateCommonResources - AutoEnableOptions - sumoEC2MetricsAppStack @@ -1751,18 +1749,6 @@ Tests: - CreateCommonResources.AddRegionField - CreateCommonResources.AddNamespaceField - CreateCommonResources.AddAccountIdField - - sumoDynamoDBMetricsAppStack.AddTableNameField - - sumoAlbMetricsAppStack.AddLoadBalancerField - - sumoElbMetricsAppStack.AddLoadBalancerNameField - - sumoLambdaMetricsAppStack.AddFunctionNameField - - sumoApiGatewayMetricsAppStack.AddApiNameField - - sumoApiGatewayMetricsAppStack.AddApiIdField - - sumoSNSAppStack.AddTopicNameField - - sumoSQSAppStack.AddQueueNameField - - sumoRdsMetricsAppStack.AddDBIdentifierField - - sumoEC2MetricsAppStack.AddInstanceIdField - - sumoECSMetricsAppStack.AddClusterNameField - - sumoElasticCacheMetricsAppStack.AddCacheClusterIdField - CreateCommonResources.SumoLogicALBS3Policy - CreateCommonResources.SumoLogicCloudTrailS3Policy - CreateCommonResources.LambdaRole @@ -1785,8 +1771,8 @@ Tests: - CreateCommonResources.CloudTrailSource - CreateCommonResources.CloudTrailSNSSubscription - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources - - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.EnableExisitngAWSResourcesLambda - - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.ExistingAWSResources + - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.EnableExistingAWSResourcesLambda + - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.EnableAccessLogsForExistingAWSResources - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.SumoLambdaRole - sumoAlbMetricsAppStack.SumoALBMetricsUpdateSource - sumoRdsMetricsAppStack.ClusterMetricRule @@ -1806,7 +1792,6 @@ Tests: - sumoECSMetricsAppStack.FieldExtractionRule - sumoElasticCacheMetricsAppStack.FieldExtractionRule - sumoNlbMetricsAppStack - - sumoNlbMetricsAppStack.AddLoadBalancerField - sumoNlbMetricsAppStack.MetricRule - CreateCommonResources.AccountAliasValue - RootCauseAppStack.RootCauseRole @@ -1834,7 +1819,7 @@ Tests: - CreateCommonResources.Namespaces - CreateCommonResources.LambdaRoleARN - CreateCommonResources.BucketName - - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.EnableExisitngAWSResourcesLambda + - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.EnableExistingAWSResourcesLambda - sumoLambdaMetricsAppStack.ExistingCloudWatchLogSourceName - sumoAlbMetricsAppStack.ExistingMetricSourceName - CreateCommonResources.CollectorName @@ -1960,6 +1945,10 @@ Tests: - AssertType: ResourceExistence Assert: Resources: + - LambdaRole + - LambdaPermission + - PrimerInvoke + - TelemetryLambda - CreateCommonResources - AutoEnableOptions - sumoEC2MetricsAppStack @@ -1978,18 +1967,6 @@ Tests: - CreateCommonResources.AddRegionField - CreateCommonResources.AddNamespaceField - CreateCommonResources.AddAccountIdField - - sumoDynamoDBMetricsAppStack.AddTableNameField - - sumoElbMetricsAppStack.AddLoadBalancerNameField - - sumoAlbMetricsAppStack.AddLoadBalancerField - - sumoLambdaMetricsAppStack.AddFunctionNameField - - sumoApiGatewayMetricsAppStack.AddApiNameField - - sumoApiGatewayMetricsAppStack.AddApiIdField - - sumoSNSAppStack.AddTopicNameField - - sumoSQSAppStack.AddQueueNameField - - sumoRdsMetricsAppStack.AddDBIdentifierField - - sumoEC2MetricsAppStack.AddInstanceIdField - - sumoECSMetricsAppStack.AddClusterNameField - - sumoElasticCacheMetricsAppStack.AddCacheClusterIdField - CreateCommonResources.SumoLogicELBS3Policy - CreateCommonResources.SumoLogicCloudTrailS3Policy - CreateCommonResources.LambdaRole @@ -2012,14 +1989,15 @@ Tests: - CreateCommonResources.CloudTrailSource - CreateCommonResources.CloudTrailSNSSubscription - AutoEnableOptions.AutoEnableS3LogsElbAWSResources - - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.EnableExisitngAWSResourcesLambda - - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.ExistingAWSResources + - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.EnableExistingAWSResourcesLambda + - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.EnableAccessLogsForExistingAWSResources - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.SumoLambdaRole - sumoRdsMetricsAppStack.ClusterMetricRule - sumoRdsMetricsAppStack.InstanceMetricRule - sumoLambdaMetricsAppStack.SumoHTTPUpdateSource - sumoLambdaMetricsAppStack.LambdaFieldExtractionRule - sumoElbMetricsAppStack.ElbLogsFieldExtractionRule + - sumoElbMetricsAppStack.SumoELBMetricsUpdateSource - sumoApiGatewayMetricsAppStack.CloudTrailLogsFieldExtractionRule - sumoApiGatewayMetricsAppStack.AccessLogsFieldExtractionRule - sumoApiGatewayMetricsAppStack.MetricRule @@ -2033,7 +2011,6 @@ Tests: - sumoElasticCacheMetricsAppStack.FieldExtractionRule - sumoEC2MetricsAppStack.FieldExtractionRule - sumoNlbMetricsAppStack - - sumoNlbMetricsAppStack.AddLoadBalancerField - sumoNlbMetricsAppStack.MetricRule - CreateCommonResources.AccountAliasValue - RootCauseAppStack.RootCauseRole @@ -2062,7 +2039,7 @@ Tests: - CreateCommonResources.LambdaRoleARN - CreateCommonResources.BucketName - sumoAlbMetricsAppStack.ExistingMetricSourceName - - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.EnableExisitngAWSResourcesLambda + - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.EnableExistingAWSResourcesLambda - sumoLambdaMetricsAppStack.ExistingCloudWatchLogSourceName - CreateCommonResources.CollectorName - CreateCommonResources.AccountAlias @@ -2185,6 +2162,10 @@ Tests: - AssertType: ResourceExistence Assert: Resources: + - LambdaRole + - LambdaPermission + - PrimerInvoke + - TelemetryLambda - CreateCommonResources - sumoEC2MetricsAppStack - sumoAlbMetricsAppStack @@ -2202,18 +2183,6 @@ Tests: - CreateCommonResources.AddRegionField - CreateCommonResources.AddNamespaceField - CreateCommonResources.AddAccountIdField - - sumoDynamoDBMetricsAppStack.AddTableNameField - - sumoAlbMetricsAppStack.AddLoadBalancerField - - sumoElbMetricsAppStack.AddLoadBalancerNameField - - sumoLambdaMetricsAppStack.AddFunctionNameField - - sumoApiGatewayMetricsAppStack.AddApiNameField - - sumoApiGatewayMetricsAppStack.AddApiIdField - - sumoSNSAppStack.AddTopicNameField - - sumoSQSAppStack.AddQueueNameField - - sumoRdsMetricsAppStack.AddDBIdentifierField - - sumoEC2MetricsAppStack.AddInstanceIdField - - sumoECSMetricsAppStack.AddClusterNameField - - sumoElasticCacheMetricsAppStack.AddCacheClusterIdField - CreateCommonResources.SumoLogicALBS3Policy - CreateCommonResources.SumoLogicELBS3Policy - CreateCommonResources.SumoLogicCloudTrailS3Policy @@ -2263,7 +2232,6 @@ Tests: - sumoElasticCacheMetricsAppStack.FieldExtractionRule - sumoEC2MetricsAppStack.FieldExtractionRule - sumoNlbMetricsAppStack - - sumoNlbMetricsAppStack.AddLoadBalancerField - sumoNlbMetricsAppStack.MetricRule - CreateCommonResources.AccountAliasValue - RootCauseAppStack.AccountAliasValue @@ -2414,6 +2382,10 @@ Tests: - AssertType: ResourceExistence Assert: Resources: + - LambdaRole + - LambdaPermission + - PrimerInvoke + - TelemetryLambda - CreateCommonResources - AutoEnableOptions - sumoEC2MetricsAppStack @@ -2432,18 +2404,19 @@ Tests: - CreateCommonResources.AddRegionField - CreateCommonResources.AddNamespaceField - CreateCommonResources.AddAccountIdField - - sumoDynamoDBMetricsAppStack.AddTableNameField - - sumoAlbMetricsAppStack.AddLoadBalancerField - - sumoElbMetricsAppStack.AddLoadBalancerNameField - - sumoLambdaMetricsAppStack.AddFunctionNameField - - sumoApiGatewayMetricsAppStack.AddApiNameField - - sumoApiGatewayMetricsAppStack.AddApiIdField - - sumoSNSAppStack.AddTopicNameField - - sumoSQSAppStack.AddQueueNameField - - sumoRdsMetricsAppStack.AddDBIdentifierField - - sumoEC2MetricsAppStack.AddInstanceIdField - - sumoECSMetricsAppStack.AddClusterNameField - - sumoElasticCacheMetricsAppStack.AddCacheClusterIdField + - CreateCommonResources.AddApiIdField + - CreateCommonResources.AddApiNameField + - CreateCommonResources.AddCacheClusterIdField + - CreateCommonResources.AddClusterNameField + - CreateCommonResources.AddDBIdentifierField + - CreateCommonResources.AddFunctionNameField + - CreateCommonResources.AddInstanceIdField + - CreateCommonResources.AddLoadBalancerField + - CreateCommonResources.AddLoadBalancerNameField + - CreateCommonResources.AddNETLoadBalancerField + - CreateCommonResources.AddQueueNameField + - CreateCommonResources.AddTableNameField + - CreateCommonResources.AddTopicNameField - CreateCommonResources.LambdaRole - CreateCommonResources.LambdaHelper - CreateCommonResources.AccountCheck @@ -2455,9 +2428,9 @@ Tests: - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.AutoEnableAlbLogEventsInvokePermission - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.AutoEnableAlbLogEventsRuleTrigger - - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.EnableExisitngAWSResourcesLambda + - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.EnableExistingAWSResourcesLambda - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.EnableNewAWSResourcesLambda - - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.ExistingAWSResources + - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.EnableAccessLogsForExistingAWSResources - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.SumoLambdaRole - sumoEC2MetricsAppStack.sumoApp - sumoEC2MetricsAppStack.sumoOverview @@ -2487,7 +2460,6 @@ Tests: - sumoECSMetricsAppStack.sumoApp - sumoElasticCacheMetricsAppStack.FieldExtractionRule - sumoElasticCacheMetricsAppStack.sumoApp - - sumoNlbMetricsAppStack.AddLoadBalancerField - sumoNlbMetricsAppStack - sumoNlbMetricsAppStack.MetricRule - sumoNlbMetricsAppStack.sumoApp @@ -2536,7 +2508,7 @@ Tests: - CreateCommonResources.LambdaRoleARN - sumoLambdaMetricsAppStack.ExistingCloudTrailLogSourceName - sumoAlbMetricsAppStack.ExistingLogSourceName - - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.EnableExisitngAWSResourcesLambda + - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.EnableExistingAWSResourcesLambda - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.EnableNewAWSResourcesLambda - CreateCommonResources.KinesisMetricsRoleARN - CreateCommonResources.KinesisMetricsDeliveryStreamARN @@ -2670,6 +2642,10 @@ Tests: - AssertType: ResourceExistence Assert: Resources: + - LambdaRole + - LambdaPermission + - PrimerInvoke + - TelemetryLambda - CreateCommonResources - AutoEnableOptions - sumoEC2MetricsAppStack @@ -2688,18 +2664,19 @@ Tests: - CreateCommonResources.AddRegionField - CreateCommonResources.AddNamespaceField - CreateCommonResources.AddAccountIdField - - sumoDynamoDBMetricsAppStack.AddTableNameField - - sumoAlbMetricsAppStack.AddLoadBalancerField - - sumoElbMetricsAppStack.AddLoadBalancerNameField - - sumoLambdaMetricsAppStack.AddFunctionNameField - - sumoApiGatewayMetricsAppStack.AddApiNameField - - sumoApiGatewayMetricsAppStack.AddApiIdField - - sumoSNSAppStack.AddTopicNameField - - sumoSQSAppStack.AddQueueNameField - - sumoRdsMetricsAppStack.AddDBIdentifierField - - sumoEC2MetricsAppStack.AddInstanceIdField - - sumoECSMetricsAppStack.AddClusterNameField - - sumoElasticCacheMetricsAppStack.AddCacheClusterIdField + - CreateCommonResources.AddApiIdField + - CreateCommonResources.AddApiNameField + - CreateCommonResources.AddCacheClusterIdField + - CreateCommonResources.AddClusterNameField + - CreateCommonResources.AddDBIdentifierField + - CreateCommonResources.AddFunctionNameField + - CreateCommonResources.AddInstanceIdField + - CreateCommonResources.AddLoadBalancerField + - CreateCommonResources.AddLoadBalancerNameField + - CreateCommonResources.AddNETLoadBalancerField + - CreateCommonResources.AddQueueNameField + - CreateCommonResources.AddTableNameField + - CreateCommonResources.AddTopicNameField - CreateCommonResources.LambdaRole - CreateCommonResources.LambdaHelper - CreateCommonResources.AccountCheck @@ -2711,9 +2688,9 @@ Tests: - AutoEnableOptions.AutoEnableS3LogsElbAWSResources - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.AutoEnableElbLogEventsInvokePermission - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.AutoEnableElbLogEventsRuleTrigger - - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.EnableExisitngAWSResourcesLambda + - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.EnableExistingAWSResourcesLambda - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.EnableNewAWSResourcesLambda - - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.ExistingAWSResources + - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.EnableAccessLogsForExistingAWSResources - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.SumoLambdaRole - sumoEC2MetricsAppStack.sumoApp - sumoEC2MetricsAppStack.sumoOverview @@ -2743,7 +2720,6 @@ Tests: - sumoECSMetricsAppStack.sumoApp - sumoElasticCacheMetricsAppStack.FieldExtractionRule - sumoElasticCacheMetricsAppStack.sumoApp - - sumoNlbMetricsAppStack.AddLoadBalancerField - sumoNlbMetricsAppStack - sumoNlbMetricsAppStack.MetricRule - sumoNlbMetricsAppStack.sumoApp @@ -2792,7 +2768,7 @@ Tests: - CreateCommonResources.LambdaRoleARN - sumoLambdaMetricsAppStack.ExistingCloudTrailLogSourceName - sumoElbMetricsAppStack.ExistingLogSourceName - - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.EnableExisitngAWSResourcesLambda + - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.EnableExistingAWSResourcesLambda - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.EnableNewAWSResourcesLambda - CreateCommonResources.KinesisMetricsRoleARN - CreateCommonResources.KinesisMetricsDeliveryStreamARN @@ -2935,6 +2911,10 @@ Tests: - AssertType: ResourceExistence Assert: Resources: + - LambdaRole + - LambdaPermission + - PrimerInvoke + - TelemetryLambda - CreateCommonResources - sumoEC2MetricsAppStack - sumoAlbMetricsAppStack @@ -2952,18 +2932,6 @@ Tests: - CreateCommonResources.AddRegionField - CreateCommonResources.AddNamespaceField - CreateCommonResources.AddAccountIdField - - sumoDynamoDBMetricsAppStack.AddTableNameField - - sumoAlbMetricsAppStack.AddLoadBalancerField - - sumoElbMetricsAppStack.AddLoadBalancerNameField - - sumoLambdaMetricsAppStack.AddFunctionNameField - - sumoApiGatewayMetricsAppStack.AddApiNameField - - sumoApiGatewayMetricsAppStack.AddApiIdField - - sumoSNSAppStack.AddTopicNameField - - sumoSQSAppStack.AddQueueNameField - - sumoRdsMetricsAppStack.AddDBIdentifierField - - sumoEC2MetricsAppStack.AddInstanceIdField - - sumoECSMetricsAppStack.AddClusterNameField - - sumoElasticCacheMetricsAppStack.AddCacheClusterIdField - CreateCommonResources.SumoLogicALBS3Policy - CreateCommonResources.SumoLogicELBS3Policy - CreateCommonResources.SumoLogicCloudTrailS3Policy @@ -3016,7 +2984,6 @@ Tests: - sumoElasticCacheMetricsAppStack.FieldExtractionRule - sumoEC2MetricsAppStack.FieldExtractionRule - sumoNlbMetricsAppStack - - sumoNlbMetricsAppStack.AddLoadBalancerField - sumoNlbMetricsAppStack.MetricRule - CreateCommonResources.KinesisFirehoseLogsStack - CreateCommonResources.KinesisFirehoseLogsSource @@ -3199,7 +3166,7 @@ Tests: Section3aNLBLogsSourceName: '' Section3bNLBSourceUpdated: 'No' - - TestName: ELBAutoEnableCheck + - TestName: elbautoenablecheck Regions: - ap-southeast-1 Skip: false @@ -3220,6 +3187,10 @@ Tests: - AssertType: ResourceExistence Assert: Resources: + - LambdaRole + - LambdaPermission + - PrimerInvoke + - TelemetryLambda - CreateCommonResources - AutoEnableOptions - sumoEC2MetricsAppStack @@ -3237,18 +3208,19 @@ Tests: - CreateCommonResources.AddAccountField - CreateCommonResources.AddRegionField - CreateCommonResources.AddNamespaceField - - sumoDynamoDBMetricsAppStack.AddTableNameField - - sumoAlbMetricsAppStack.AddLoadBalancerField - - sumoElbMetricsAppStack.AddLoadBalancerNameField - - sumoLambdaMetricsAppStack.AddFunctionNameField - - sumoApiGatewayMetricsAppStack.AddApiNameField - - sumoApiGatewayMetricsAppStack.AddApiIdField - - sumoSNSAppStack.AddTopicNameField - - sumoSQSAppStack.AddQueueNameField - - sumoRdsMetricsAppStack.AddDBIdentifierField - - sumoEC2MetricsAppStack.AddInstanceIdField - - sumoECSMetricsAppStack.AddClusterNameField - - sumoElasticCacheMetricsAppStack.AddCacheClusterIdField + - CreateCommonResources.AddApiIdField + - CreateCommonResources.AddApiNameField + - CreateCommonResources.AddCacheClusterIdField + - CreateCommonResources.AddClusterNameField + - CreateCommonResources.AddDBIdentifierField + - CreateCommonResources.AddFunctionNameField + - CreateCommonResources.AddInstanceIdField + - CreateCommonResources.AddLoadBalancerField + - CreateCommonResources.AddLoadBalancerNameField + - CreateCommonResources.AddNETLoadBalancerField + - CreateCommonResources.AddQueueNameField + - CreateCommonResources.AddTableNameField + - CreateCommonResources.AddTopicNameField - CreateCommonResources.LambdaRole - CreateCommonResources.LambdaHelper - CreateCommonResources.AccountCheck @@ -3297,16 +3269,16 @@ Tests: - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.AutoEnableAlbLogEventsInvokePermission - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.AutoEnableAlbLogEventsRuleTrigger - - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.EnableExisitngAWSResourcesLambda + - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.EnableExistingAWSResourcesLambda - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.EnableNewAWSResourcesLambda - - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.ExistingAWSResources + - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.EnableAccessLogsForExistingAWSResources - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.SumoLambdaRole - AutoEnableOptions.AutoEnableS3LogsElbAWSResources - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.AutoEnableElbLogEventsInvokePermission - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.AutoEnableElbLogEventsRuleTrigger - - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.EnableExisitngAWSResourcesLambda + - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.EnableExistingAWSResourcesLambda - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.EnableNewAWSResourcesLambda - - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.ExistingAWSResources + - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.EnableAccessLogsForExistingAWSResources - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.SumoLambdaRole - AutoEnableOptions.AutoSubscribeLambdaLogGroupsAWSResources - AutoEnableOptions.AutoSubscribeLambdaLogGroupsAWSResources.InvokeLambdaConnector @@ -3348,7 +3320,6 @@ Tests: - sumoEC2MetricsAppStack.FieldExtractionRule - sumoElasticCacheMetricsAppStack.sumoApp - sumoNlbMetricsAppStack - - sumoNlbMetricsAppStack.AddLoadBalancerField - sumoNlbMetricsAppStack.MetricRule - sumoNlbMetricsAppStack.sumoApp - sumoEC2MetricsAppStack.sumoAppCW @@ -3383,9 +3354,9 @@ Tests: - CreateCommonResources.Namespaces - CreateCommonResources.LambdaRoleARN - CreateCommonResources.BucketName - - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.EnableExisitngAWSResourcesLambda + - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.EnableExistingAWSResourcesLambda - AutoEnableOptions.AutoEnableS3LogsAlbAWSResources.EnableNewAWSResourcesLambda - - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.EnableExisitngAWSResourcesLambda + - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.EnableExistingAWSResourcesLambda - AutoEnableOptions.AutoEnableS3LogsElbAWSResources.EnableNewAWSResourcesLambda - CreateCommonResources.KinesisMetricsRoleARN - CreateCommonResources.KinesisMetricsDeliveryStreamARN