github.com/mohanarpit/terraform@v0.6.16-0.20160909104007-291f29853544/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  }