diff --git a/aws/resource_aws_lambda_function.go b/aws/resource_aws_lambda_function.go index 13070631ed3..8ada277f0aa 100644 --- a/aws/resource_aws_lambda_function.go +++ b/aws/resource_aws_lambda_function.go @@ -283,6 +283,7 @@ func updateComputedAttributesOnPublish(_ context.Context, d *schema.ResourceDiff d.SetNewComputed("version") d.SetNewComputed("qualified_arn") } + return nil } @@ -297,7 +298,8 @@ func hasConfigChanges(d resourceDiffer) bool { d.HasChange("layers") || d.HasChange("dead_letter_config") || d.HasChange("tracing_config") || - d.HasChange("vpc_config") || + d.HasChange("vpc_config.0.subnet_ids") || + d.HasChange("vpc_config.0.security_group_ids") || d.HasChange("runtime") || d.HasChange("environment") } @@ -693,6 +695,7 @@ func resourceAwsLambdaFunctionDelete(d *schema.ResourceData, meta interface{}) e type resourceDiffer interface { HasChange(string) bool + GetChange(string) (interface{}, interface{}) } func needsFunctionCodeUpdate(d resourceDiffer) bool {