package aws import ( "github.com/hashicorp/terraform/helper/schema" "github.com/jen20/awspolicyequivalence" ) func suppressEquivalentAwsPolicyDiffs(k, old, new string, d *schema.ResourceData) bool { equivalent, err := awspolicy.PoliciesAreEquivalent(old, new) if err != nil { return false } return equivalent }