github.com/minamijoyo/terraform@v0.7.8-0.20161029001309-18b3736ba44b/builtin/providers/aws/diff_suppress_funcs.go (about)

     1  package aws
     2  
     3  import (
     4  	"github.com/hashicorp/terraform/helper/schema"
     5  	"github.com/jen20/awspolicyequivalence"
     6  )
     7  
     8  func suppressEquivalentAwsPolicyDiffs(k, old, new string, d *schema.ResourceData) bool {
     9  	equivalent, err := awspolicy.PoliciesAreEquivalent(old, new)
    10  	if err != nil {
    11  		return false
    12  	}
    13  
    14  	return equivalent
    15  }