From fb4c862003444e163298bb15f1a762bd47a6016b Mon Sep 17 00:00:00 2001 From: Salim Afiune Maya Date: Wed, 2 Mar 2022 00:26:08 -0800 Subject: [PATCH] refactor: encourage the use of anonymous queries 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 df0d7d621..225f3f01b 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 = <