From 5475c6344f8e1fb04a84376292f36ef60ef0d586 Mon Sep 17 00:00:00 2001 From: Chris Marchesi Date: Thu, 7 Oct 2021 16:23:39 -0700 Subject: [PATCH] clarify how to supply filters for AWS host sets --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4c3ca3c..409a86f 100644 --- a/README.md +++ b/README.md @@ -92,6 +92,16 @@ The following `secrets` are valid on an AWS host catalog resource: The following attributes are valid on an AWS host Set resource: -- `filters` (string): An object of filters to filter off of. For a list of +- `filters` (object): An object of filters to filter off of. For a list of filter options, check out [describe-instances in the AWS CLI reference](https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-instances.html). + +#### Supplying Filters on the Boundary CLI + +As `filters` is part of a host set's attributes and may contain dashes where are +not identifier-friendly, it's recommended you that supply attributes for AWS +host sets as a full JSON string. Example: + +``` +boundary host-sets create plugin -host-catalog-id hc_1234567890 --attributes '{"filters":{"tag-name":["foo"]}}' +```