From 8fa40c1ce7d20cc0fade7cdbda4437ce9f5d2fbd Mon Sep 17 00:00:00 2001 From: Radek Simko Date: Thu, 1 Jun 2017 06:21:36 +0100 Subject: [PATCH] provider/aws: Work around IAM eventual consistency in CW Log Subs (#14959) --- .../aws/resource_aws_cloudwatch_log_subscription_filter.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/builtin/providers/aws/resource_aws_cloudwatch_log_subscription_filter.go b/builtin/providers/aws/resource_aws_cloudwatch_log_subscription_filter.go index c2f6705c07..2504031435 100644 --- a/builtin/providers/aws/resource_aws_cloudwatch_log_subscription_filter.go +++ b/builtin/providers/aws/resource_aws_cloudwatch_log_subscription_filter.go @@ -75,6 +75,9 @@ func resourceAwsCloudwatchLogSubscriptionFilterCreate(d *schema.ResourceData, me if strings.Contains(awsErr.Message(), "Could not deliver test message to specified") { return resource.RetryableError(err) } + if strings.Contains(awsErr.Message(), "Could not execute the lambda function") { + return resource.RetryableError(err) + } resource.NonRetryableError(err) }