Skip to content

Commit

Permalink
Add JSON validation to the aws_s3_bucket_policy resource.
Browse files Browse the repository at this point in the history
This commit adds support for new helper function which is used to
normalise and validate JSON string.

Signed-off-by: Krzysztof Wilczynski <[email protected]>
  • Loading branch information
kwilczynski committed Sep 17, 2016
1 parent 5697a52 commit 6a02bf2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions builtin/providers/aws/resource_aws_s3_bucket_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func resourceAwsS3BucketPolicy() *schema.Resource {
"policy": {
Type: schema.TypeString,
Required: true,
ValidateFunc: validateJsonString,
DiffSuppressFunc: suppressEquivalentAwsPolicyDiffs,
},
},
Expand Down

0 comments on commit 6a02bf2

Please sign in to comment.