Skip to content

Commit

Permalink
Merge pull request #5849 from macbutch/fix-4633
Browse files Browse the repository at this point in the history
[WIP] Issue #4633 retry lambda creation
  • Loading branch information
bflad authored Sep 12, 2018
2 parents 04c1ce1 + 4dcbe89 commit f4c6cd5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions aws/resource_aws_lambda_function.go
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,10 @@ func resourceAwsLambdaFunctionCreate(d *schema.ResourceData, meta interface{}) e
log.Printf("[DEBUG] Received %s, retrying CreateFunction", err)
return resource.RetryableError(err)
}
if isAWSErr(err, "InvalidParameterValueException", "Lambda was unable to configure access to your environment variables because the KMS key is invalid for CreateGrant") {
log.Printf("[DEBUG] Received %s, retrying CreateFunction", err)
return resource.RetryableError(err)
}

return resource.NonRetryableError(err)
}
Expand Down

0 comments on commit f4c6cd5

Please sign in to comment.