From 6cb8c924f0248a6fa76d2557228c912374786728 Mon Sep 17 00:00:00 2001 From: Jake Champlin Date: Tue, 31 Oct 2017 10:23:04 -0400 Subject: [PATCH] Fix pattern length for cloudwatch metric filter Documentation specifies max length of a pattern is 1024, not 512. http://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutMetricFilter.html --- aws/resource_aws_cloudwatch_log_metric_filter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aws/resource_aws_cloudwatch_log_metric_filter.go b/aws/resource_aws_cloudwatch_log_metric_filter.go index 20ac887ae57f..f87751ad2435 100644 --- a/aws/resource_aws_cloudwatch_log_metric_filter.go +++ b/aws/resource_aws_cloudwatch_log_metric_filter.go @@ -31,7 +31,7 @@ func resourceAwsCloudWatchLogMetricFilter() *schema.Resource { "pattern": { Type: schema.TypeString, Required: true, - ValidateFunc: validateMaxLength(512), + ValidateFunc: validateMaxLength(1024), StateFunc: func(v interface{}) string { s, ok := v.(string) if !ok {