We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 96e6519 + c6f1988 commit 7a7997fCopy full SHA for 7a7997f
.changelog/28791.txt
@@ -0,0 +1,3 @@
1
+```release-note:bug
2
+resource/aws_backup_vault_policy: Improve refresh to avoid unnecessary diffs in `policy`
3
+```
internal/service/backup/vault_policy.go
@@ -36,10 +36,11 @@ func ResourceVaultPolicy() *schema.Resource {
36
ForceNew: true,
37
},
38
"policy": {
39
- Type: schema.TypeString,
40
- Required: true,
41
- ValidateFunc: validation.StringIsJSON,
42
- DiffSuppressFunc: verify.SuppressEquivalentPolicyDiffs,
+ Type: schema.TypeString,
+ Required: true,
+ ValidateFunc: validation.StringIsJSON,
+ DiffSuppressFunc: verify.SuppressEquivalentPolicyDiffs,
43
+ DiffSuppressOnRefresh: true,
44
StateFunc: func(v interface{}) string {
45
json, _ := structure.NormalizeJsonString(v)
46
return json
0 commit comments