Skip to content

Commit 6116eb6

Browse files
committed
cloudsearch/domain_service_access_policy: Improve diff handling of policy
1 parent 1e5a037 commit 6116eb6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

internal/service/cloudsearch/domain_service_access_policy.go

+5-4
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,11 @@ func ResourceDomainServiceAccessPolicy() *schema.Resource {
3434

3535
Schema: map[string]*schema.Schema{
3636
"access_policy": {
37-
Type: schema.TypeString,
38-
Required: true,
39-
DiffSuppressFunc: verify.SuppressEquivalentPolicyDiffs,
40-
ValidateFunc: validation.StringIsJSON,
37+
Type: schema.TypeString,
38+
Required: true,
39+
DiffSuppressFunc: verify.SuppressEquivalentPolicyDiffs,
40+
DiffSuppressOnRefresh: true,
41+
ValidateFunc: validation.StringIsJSON,
4142
StateFunc: func(v interface{}) string {
4243
json, _ := structure.NormalizeJsonString(v)
4344
return json

0 commit comments

Comments
 (0)