diff --git a/aws/resource_aws_lambda_function.go b/aws/resource_aws_lambda_function.go index 020f1d7440f..c82647cfecf 100644 --- a/aws/resource_aws_lambda_function.go +++ b/aws/resource_aws_lambda_function.go @@ -671,8 +671,6 @@ func needsFunctionCodeUpdate(d resourceDiffer) bool { func resourceAwsLambdaFunctionUpdate(d *schema.ResourceData, meta interface{}) error { conn := meta.(*AWSClient).lambdaconn - d.Partial(true) - arn := d.Get("arn").(string) if d.HasChange("tags") { o, n := d.GetChange("tags") @@ -837,12 +835,6 @@ func resourceAwsLambdaFunctionUpdate(d *schema.ResourceData, meta interface{}) e if err := waitForLambdaFunctionUpdate(conn, d.Id(), d.Timeout(schema.TimeoutUpdate)); err != nil { return fmt.Errorf("error waiting for Lambda Function (%s) update: %s", d.Id(), err) } - - d.SetPartial("description") - d.SetPartial("handler") - d.SetPartial("memory_size") - d.SetPartial("role") - d.SetPartial("timeout") } codeUpdate := needsFunctionCodeUpdate(d) @@ -880,12 +872,6 @@ func resourceAwsLambdaFunctionUpdate(d *schema.ResourceData, meta interface{}) e if err != nil { return fmt.Errorf("Error modifying Lambda Function Code %s: %s", d.Id(), err) } - - d.SetPartial("filename") - d.SetPartial("source_code_hash") - d.SetPartial("s3_bucket") - d.SetPartial("s3_key") - d.SetPartial("s3_object_version") } if d.HasChange("reserved_concurrent_executions") { @@ -928,8 +914,6 @@ func resourceAwsLambdaFunctionUpdate(d *schema.ResourceData, meta interface{}) e } } - d.Partial(false) - return resourceAwsLambdaFunctionRead(d, meta) }