diff --git a/aws/diff_suppress_funcs.go b/aws/diff_suppress_funcs.go index 8bf5d26f2e4..0e340e4351e 100644 --- a/aws/diff_suppress_funcs.go +++ b/aws/diff_suppress_funcs.go @@ -132,14 +132,3 @@ func suppressRoute53ZoneNameWithTrailingDot(k, old, new string, d *schema.Resour } return strings.TrimSuffix(old, ".") == strings.TrimSuffix(new, ".") } - -// suppressUnsetContainerAttribute ignores a container attribute being unset -// in the Terraform configuration. All child attribute differences still apply. -// Useful when an unset container attribute is equivalent to a container attribute -// populated with default values. -func suppressUnsetContainerAttribute(k, old, new string, d *schema.ResourceData) bool { - if old == "1" && new == "0" { - return true - } - return false -} diff --git a/aws/resource_aws_s3_bucket_object.go b/aws/resource_aws_s3_bucket_object.go index 37dde47234b..b35446c0c08 100644 --- a/aws/resource_aws_s3_bucket_object.go +++ b/aws/resource_aws_s3_bucket_object.go @@ -164,7 +164,7 @@ func resourceAwsS3BucketObject() *schema.Resource { Type: schema.TypeList, Optional: true, MaxItems: 1, - DiffSuppressFunc: suppressUnsetContainerAttribute, + DiffSuppressFunc: suppressMissingOptionalConfigurationBlock, Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "status": {