Add JSON validation to the aws_s3_bucket_policy resource.
This commit adds support for new helper function which is used to normalise and validate JSON string. Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
This commit is contained in:
parent
5697a52b4f
commit
6a02bf2983
|
@ -29,6 +29,7 @@ func resourceAwsS3BucketPolicy() *schema.Resource {
|
|||
"policy": {
|
||||
Type: schema.TypeString,
|
||||
Required: true,
|
||||
ValidateFunc: validateJsonString,
|
||||
DiffSuppressFunc: suppressEquivalentAwsPolicyDiffs,
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue