github.com/recobe182/terraform@v0.8.5-0.20170117231232-49ab22a935b7/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 }