From 3b1b4fb57183d84fa313f192a9690b1e70df1880 Mon Sep 17 00:00:00 2001 From: Krzysztof Wilczynski Date: Wed, 14 Sep 2016 12:16:58 +0100 Subject: [PATCH] Add JSON validation to the aws_sns_topic_policy resource. This commit adds support for new helper function which is used to normalise and validate JSON string. Signed-off-by: Krzysztof Wilczynski --- builtin/providers/aws/resource_aws_sns_topic_policy.go | 1 + 1 file changed, 1 insertion(+) diff --git a/builtin/providers/aws/resource_aws_sns_topic_policy.go b/builtin/providers/aws/resource_aws_sns_topic_policy.go index d7bdaa6d8..1a831e453 100644 --- a/builtin/providers/aws/resource_aws_sns_topic_policy.go +++ b/builtin/providers/aws/resource_aws_sns_topic_policy.go @@ -30,6 +30,7 @@ func resourceAwsSnsTopicPolicy() *schema.Resource { "policy": { Type: schema.TypeString, Required: true, + ValidateFunc: validateJsonString, DiffSuppressFunc: suppressEquivalentAwsPolicyDiffs, }, },