From b7c2d4ce9637606154293bf34101a78c078c4dc7 Mon Sep 17 00:00:00 2001 From: Salim Afiune Date: Wed, 2 Mar 2022 07:52:15 -0800 Subject: [PATCH] refactor: encourage the use of anonymous queries (#280) The motivation of this change it to avoid making our users set the query id twice, it makes no sense to allow them to configure a different query id, especially not since the platform enforces that both, the query id and the query text match. Furthermore, we have introduced the concept of anonymous queries, such queries are encouraged and should the default way that users create and manage LQL queries. This change updates all documentation and tests to avoid adding the query id inside the query text. Signed-off-by: Salim Afiune Maya --- examples/resource_lacework_query/main.tf | 2 +- integration/resource_lacework_query_test.go | 79 ++++++++++++++++++++- website/docs/r/policy.html.markdown | 2 +- website/docs/r/query.html.markdown | 4 +- 4 files changed, 80 insertions(+), 7 deletions(-) diff --git a/examples/resource_lacework_query/main.tf b/examples/resource_lacework_query/main.tf index df0d7d62..225f3f01 100644 --- a/examples/resource_lacework_query/main.tf +++ b/examples/resource_lacework_query/main.tf @@ -19,7 +19,7 @@ variable "query_id" { variable "query" { type = string default = <