diff --git a/docs/resources/host_set_plugin.md b/docs/resources/host_set_plugin.md index 86275101..ffdee95a 100644 --- a/docs/resources/host_set_plugin.md +++ b/docs/resources/host_set_plugin.md @@ -51,7 +51,7 @@ resource "boundary_host_catalog_plugin" "aws_example" { resource "boundary_host_set_plugin" "web" { name = "My web host set plugin" host_catalog_id = boundary_host_catalog_plugin.aws_example.id - attributes_json = jsonencode({ "filters" = "tag:service-type=web" }) + attributes_json = jsonencode({ "filters" = ["tag:service-type=web"] }) } resource "boundary_host_set_plugin" "foobar" { @@ -59,8 +59,7 @@ resource "boundary_host_set_plugin" "foobar" { host_catalog_id = boundary_host_catalog_plugin.aws_example.id preferred_endpoints = ["cidr:54.0.0.0/8"] attributes_json = jsonencode({ - "filters" = "tag-key=foo", - "filters" = "tag-key=bar" + "filters" = ["tag-key=foo", "tag-key=bar"] }) } @@ -69,8 +68,7 @@ resource "boundary_host_set_plugin" "launch" { host_catalog_id = boundary_host_catalog_plugin.aws_example.id sync_interval_seconds = 60 attributes_json = jsonencode({ - "filters" = "tag:development=prod,dev", - "filters" = "launch-time=2022-01-04T*" + "filters" = ["tag:development=prod,dev", "launch-time=2022-01-04T*"] }) } diff --git a/examples/resources/boundary_host_set_plugin/resource.tf b/examples/resources/boundary_host_set_plugin/resource.tf index ff0bb5db..0bab1983 100644 --- a/examples/resources/boundary_host_set_plugin/resource.tf +++ b/examples/resources/boundary_host_set_plugin/resource.tf @@ -36,7 +36,7 @@ resource "boundary_host_catalog_plugin" "aws_example" { resource "boundary_host_set_plugin" "web" { name = "My web host set plugin" host_catalog_id = boundary_host_catalog_plugin.aws_example.id - attributes_json = jsonencode({ "filters" = "tag:service-type=web" }) + attributes_json = jsonencode({ "filters" = ["tag:service-type=web"] }) } resource "boundary_host_set_plugin" "foobar" { @@ -44,8 +44,7 @@ resource "boundary_host_set_plugin" "foobar" { host_catalog_id = boundary_host_catalog_plugin.aws_example.id preferred_endpoints = ["cidr:54.0.0.0/8"] attributes_json = jsonencode({ - "filters" = "tag-key=foo", - "filters" = "tag-key=bar" + "filters" = ["tag-key=foo", "tag-key=bar"] }) } @@ -54,8 +53,7 @@ resource "boundary_host_set_plugin" "launch" { host_catalog_id = boundary_host_catalog_plugin.aws_example.id sync_interval_seconds = 60 attributes_json = jsonencode({ - "filters" = "tag:development=prod,dev", - "filters" = "launch-time=2022-01-04T*" + "filters" = ["tag:development=prod,dev", "launch-time=2022-01-04T*"] }) }