From caaf86bed83d8ae1178432ee0b5ba600cd56f2ca Mon Sep 17 00:00:00 2001 From: kai Date: Mon, 19 Jul 2021 11:07:21 +0100 Subject: [PATCH 1/4] Add test mod with high control count --- .../mods/many controls/c1/control.sp | 101 ++++++++++++++++++ .../mods/many controls/c1/control10.sp | 101 ++++++++++++++++++ .../mods/many controls/c1/control11.sp | 101 ++++++++++++++++++ .../mods/many controls/c1/control12.sp | 101 ++++++++++++++++++ .../mods/many controls/c1/control13.sp | 101 ++++++++++++++++++ .../mods/many controls/c1/control14.sp | 101 ++++++++++++++++++ .../mods/many controls/c1/control2.sp | 101 ++++++++++++++++++ .../mods/many controls/c1/control3.sp | 101 ++++++++++++++++++ .../mods/many controls/c1/control4.sp | 101 ++++++++++++++++++ .../mods/many controls/c1/control5.sp | 101 ++++++++++++++++++ .../mods/many controls/c1/control6.sp | 101 ++++++++++++++++++ .../mods/many controls/c1/control7.sp | 101 ++++++++++++++++++ .../mods/many controls/c1/control8.sp | 101 ++++++++++++++++++ .../mods/many controls/c1/control9.sp | 101 ++++++++++++++++++ .../mods/many controls/c2/control.sp | 101 ++++++++++++++++++ .../mods/many controls/c2/control10.sp | 101 ++++++++++++++++++ .../mods/many controls/c2/control11.sp | 101 ++++++++++++++++++ .../mods/many controls/c2/control12.sp | 101 ++++++++++++++++++ .../mods/many controls/c2/control13.sp | 101 ++++++++++++++++++ .../mods/many controls/c2/control14.sp | 101 ++++++++++++++++++ .../mods/many controls/c2/control2.sp | 101 ++++++++++++++++++ .../mods/many controls/c2/control3.sp | 101 ++++++++++++++++++ .../mods/many controls/c2/control4.sp | 101 ++++++++++++++++++ .../mods/many controls/c2/control5.sp | 101 ++++++++++++++++++ .../mods/many controls/c2/control6.sp | 101 ++++++++++++++++++ .../mods/many controls/c2/control7.sp | 101 ++++++++++++++++++ .../mods/many controls/c2/control8.sp | 101 ++++++++++++++++++ .../mods/many controls/c2/control9.sp | 101 ++++++++++++++++++ .../mods/many controls/c3/control.sp | 101 ++++++++++++++++++ .../mods/many controls/c3/control10.sp | 101 ++++++++++++++++++ .../mods/many controls/c3/control11.sp | 101 ++++++++++++++++++ .../mods/many controls/c3/control12.sp | 101 ++++++++++++++++++ .../mods/many controls/c3/control13.sp | 101 ++++++++++++++++++ .../mods/many controls/c3/control14.sp | 101 ++++++++++++++++++ .../mods/many controls/c3/control2.sp | 101 ++++++++++++++++++ .../mods/many controls/c3/control3.sp | 101 ++++++++++++++++++ .../mods/many controls/c3/control4.sp | 101 ++++++++++++++++++ .../mods/many controls/c3/control5.sp | 101 ++++++++++++++++++ .../mods/many controls/c3/control6.sp | 101 ++++++++++++++++++ .../mods/many controls/c3/control7.sp | 101 ++++++++++++++++++ .../mods/many controls/c3/control8.sp | 101 ++++++++++++++++++ .../mods/many controls/c3/control9.sp | 101 ++++++++++++++++++ .../mods/many controls/c4/control.sp | 101 ++++++++++++++++++ .../mods/many controls/c4/control10.sp | 101 ++++++++++++++++++ .../mods/many controls/c4/control11.sp | 101 ++++++++++++++++++ .../mods/many controls/c4/control12.sp | 101 ++++++++++++++++++ .../mods/many controls/c4/control13.sp | 101 ++++++++++++++++++ .../mods/many controls/c4/control14.sp | 101 ++++++++++++++++++ .../mods/many controls/c4/control2.sp | 101 ++++++++++++++++++ .../mods/many controls/c4/control3.sp | 101 ++++++++++++++++++ .../mods/many controls/c4/control4.sp | 101 ++++++++++++++++++ .../mods/many controls/c4/control5.sp | 101 ++++++++++++++++++ .../mods/many controls/c4/control6.sp | 101 ++++++++++++++++++ .../mods/many controls/c4/control7.sp | 101 ++++++++++++++++++ .../mods/many controls/c4/control8.sp | 101 ++++++++++++++++++ .../mods/many controls/c4/control9.sp | 101 ++++++++++++++++++ .../test_data/mods/many controls/mod.sp | 4 + .../mods/many controls/queries/q1.sql | 14 +++ .../mods/many controls/queries/q10.sql | 14 +++ .../mods/many controls/queries/q11.sql | 14 +++ .../mods/many controls/queries/q12.sql | 21 ++++ .../mods/many controls/queries/q13.sql | 31 ++++++ .../mods/many controls/queries/q14.sql | 16 +++ .../mods/many controls/queries/q15.sql | 16 +++ .../mods/many controls/queries/q16.sql | 18 ++++ .../mods/many controls/queries/q17.sql | 37 +++++++ .../mods/many controls/queries/q18.sql | 19 ++++ .../mods/many controls/queries/q19.sql | 16 +++ .../mods/many controls/queries/q2.sql | 14 +++ .../mods/many controls/queries/q20.sql | 15 +++ .../mods/many controls/queries/q3.sql | 14 +++ .../mods/many controls/queries/q4.sql | 14 +++ .../mods/many controls/queries/q5.sql | 14 +++ .../mods/many controls/queries/q6.sql | 14 +++ .../mods/many controls/queries/q7.sql | 14 +++ .../mods/many controls/queries/q8.sql | 14 +++ .../mods/many controls/queries/q9.sql | 14 +++ 77 files changed, 6003 insertions(+) create mode 100644 steampipeconfig/test_data/mods/many controls/c1/control.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c1/control10.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c1/control11.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c1/control12.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c1/control13.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c1/control14.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c1/control2.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c1/control3.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c1/control4.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c1/control5.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c1/control6.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c1/control7.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c1/control8.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c1/control9.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c2/control.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c2/control10.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c2/control11.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c2/control12.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c2/control13.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c2/control14.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c2/control2.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c2/control3.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c2/control4.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c2/control5.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c2/control6.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c2/control7.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c2/control8.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c2/control9.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c3/control.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c3/control10.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c3/control11.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c3/control12.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c3/control13.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c3/control14.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c3/control2.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c3/control3.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c3/control4.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c3/control5.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c3/control6.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c3/control7.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c3/control8.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c3/control9.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c4/control.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c4/control10.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c4/control11.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c4/control12.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c4/control13.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c4/control14.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c4/control2.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c4/control3.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c4/control4.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c4/control5.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c4/control6.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c4/control7.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c4/control8.sp create mode 100644 steampipeconfig/test_data/mods/many controls/c4/control9.sp create mode 100644 steampipeconfig/test_data/mods/many controls/mod.sp create mode 100644 steampipeconfig/test_data/mods/many controls/queries/q1.sql create mode 100644 steampipeconfig/test_data/mods/many controls/queries/q10.sql create mode 100644 steampipeconfig/test_data/mods/many controls/queries/q11.sql create mode 100644 steampipeconfig/test_data/mods/many controls/queries/q12.sql create mode 100644 steampipeconfig/test_data/mods/many controls/queries/q13.sql create mode 100644 steampipeconfig/test_data/mods/many controls/queries/q14.sql create mode 100644 steampipeconfig/test_data/mods/many controls/queries/q15.sql create mode 100644 steampipeconfig/test_data/mods/many controls/queries/q16.sql create mode 100644 steampipeconfig/test_data/mods/many controls/queries/q17.sql create mode 100644 steampipeconfig/test_data/mods/many controls/queries/q18.sql create mode 100644 steampipeconfig/test_data/mods/many controls/queries/q19.sql create mode 100644 steampipeconfig/test_data/mods/many controls/queries/q2.sql create mode 100644 steampipeconfig/test_data/mods/many controls/queries/q20.sql create mode 100644 steampipeconfig/test_data/mods/many controls/queries/q3.sql create mode 100644 steampipeconfig/test_data/mods/many controls/queries/q4.sql create mode 100644 steampipeconfig/test_data/mods/many controls/queries/q5.sql create mode 100644 steampipeconfig/test_data/mods/many controls/queries/q6.sql create mode 100644 steampipeconfig/test_data/mods/many controls/queries/q7.sql create mode 100644 steampipeconfig/test_data/mods/many controls/queries/q8.sql create mode 100644 steampipeconfig/test_data/mods/many controls/queries/q9.sql diff --git a/steampipeconfig/test_data/mods/many controls/c1/control.sp b/steampipeconfig/test_data/mods/many controls/c1/control.sp new file mode 100644 index 0000000000..264453232a --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c1/control.sp @@ -0,0 +1,101 @@ + +control "cis_v130_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v130_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v130_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v130_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v130_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v130_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v130_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v130_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v130_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v130_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v130_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v130_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v130_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v130_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v130_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v130_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v130_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v130_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v130_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v130_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c1/control10.sp b/steampipeconfig/test_data/mods/many controls/c1/control10.sp new file mode 100644 index 0000000000..e36c73649d --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c1/control10.sp @@ -0,0 +1,101 @@ + +control "cis_v1310_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v1310_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v1310_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v1310_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v1310_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v1310_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v1310_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v1310_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v1310_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v1310_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v1310_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v1310_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v1310_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v1310_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v1310_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v1310_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v1310_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v1310_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v1310_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v1310_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c1/control11.sp b/steampipeconfig/test_data/mods/many controls/c1/control11.sp new file mode 100644 index 0000000000..85f3536ba6 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c1/control11.sp @@ -0,0 +1,101 @@ + +control "cis_v1311_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v1311_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v1311_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v1311_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v1311_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v1311_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v1311_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v1311_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v1311_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v1311_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v1311_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v1311_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v1311_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v1311_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v1311_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v1311_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v1311_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v1311_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v1311_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v1311_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c1/control12.sp b/steampipeconfig/test_data/mods/many controls/c1/control12.sp new file mode 100644 index 0000000000..e3977d6c87 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c1/control12.sp @@ -0,0 +1,101 @@ + +control "cis_v1312_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v1312_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v1312_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v1312_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v1312_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v1312_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v1312_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v1312_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v1312_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v1312_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v1312_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v1312_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v1312_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v1312_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v1312_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v1312_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v1312_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v1312_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v1312_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v1312_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c1/control13.sp b/steampipeconfig/test_data/mods/many controls/c1/control13.sp new file mode 100644 index 0000000000..911d4539f0 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c1/control13.sp @@ -0,0 +1,101 @@ + +control "cis_v1313_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v1313_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v1313_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v1313_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v1313_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v1313_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v1313_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v1313_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v1313_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v1313_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v1313_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v1313_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v1313_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v1313_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v1313_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v1313_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v1313_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v1313_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v1313_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v1313_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c1/control14.sp b/steampipeconfig/test_data/mods/many controls/c1/control14.sp new file mode 100644 index 0000000000..d4d7397620 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c1/control14.sp @@ -0,0 +1,101 @@ + +control "cis_v1314_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v1314_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v1314_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v1314_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v1314_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v1314_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v1314_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v1314_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v1314_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v1314_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v1314_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v1314_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v1314_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v1314_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v1314_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v1314_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v1314_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v1314_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v1314_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v1314_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c1/control2.sp b/steampipeconfig/test_data/mods/many controls/c1/control2.sp new file mode 100644 index 0000000000..251e507692 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c1/control2.sp @@ -0,0 +1,101 @@ + +control "cis_v131_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v131_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v131_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v131_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v131_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v131_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v131_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v131_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v131_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v131_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v131_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v131_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v131_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v131_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v131_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v131_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v131_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v131_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v131_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v131_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c1/control3.sp b/steampipeconfig/test_data/mods/many controls/c1/control3.sp new file mode 100644 index 0000000000..dce450449b --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c1/control3.sp @@ -0,0 +1,101 @@ + +control "cis_v133_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v133_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v133_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v133_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v133_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v133_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v133_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v133_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v133_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v133_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v133_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v133_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v133_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v133_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v133_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v133_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v133_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v133_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v133_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v133_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c1/control4.sp b/steampipeconfig/test_data/mods/many controls/c1/control4.sp new file mode 100644 index 0000000000..da9913353b --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c1/control4.sp @@ -0,0 +1,101 @@ + +control "cis_v134_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v134_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v134_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v134_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v134_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v134_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v134_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v134_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v134_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v134_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v134_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v134_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v134_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v134_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v134_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v134_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v134_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v134_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v134_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v134_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c1/control5.sp b/steampipeconfig/test_data/mods/many controls/c1/control5.sp new file mode 100644 index 0000000000..4e225c4a05 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c1/control5.sp @@ -0,0 +1,101 @@ + +control "cis_v135_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v135_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v135_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v135_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v135_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v135_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v135_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v135_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v135_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v135_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v135_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v135_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v135_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v135_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v135_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v135_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v135_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v135_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v135_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v135_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c1/control6.sp b/steampipeconfig/test_data/mods/many controls/c1/control6.sp new file mode 100644 index 0000000000..ada66d2eb7 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c1/control6.sp @@ -0,0 +1,101 @@ + +control "cis_v136_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v136_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v136_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v136_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v136_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v136_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v136_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v136_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v136_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v136_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v136_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v136_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v136_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v136_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v136_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v136_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v136_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v136_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v136_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v136_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c1/control7.sp b/steampipeconfig/test_data/mods/many controls/c1/control7.sp new file mode 100644 index 0000000000..1a34790b57 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c1/control7.sp @@ -0,0 +1,101 @@ + +control "cis_v137_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v137_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v137_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v137_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v137_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v137_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v137_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v137_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v137_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v137_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v137_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v137_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v137_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v137_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v137_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v137_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v137_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v137_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v137_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v137_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c1/control8.sp b/steampipeconfig/test_data/mods/many controls/c1/control8.sp new file mode 100644 index 0000000000..33bd106a2e --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c1/control8.sp @@ -0,0 +1,101 @@ + +control "cis_v138_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v138_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v138_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v138_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v138_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v138_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v138_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v138_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v138_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v138_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v138_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v138_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v138_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v138_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v138_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v138_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v138_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v138_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v138_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v138_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c1/control9.sp b/steampipeconfig/test_data/mods/many controls/c1/control9.sp new file mode 100644 index 0000000000..f3fffdf586 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c1/control9.sp @@ -0,0 +1,101 @@ + +control "cis_v139_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v139_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v139_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v139_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v139_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v139_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v139_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v139_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v139_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v139_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v139_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v139_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v139_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v139_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v139_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v139_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v139_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v139_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v139_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v139_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c2/control.sp b/steampipeconfig/test_data/mods/many controls/c2/control.sp new file mode 100644 index 0000000000..e1f137cfd0 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c2/control.sp @@ -0,0 +1,101 @@ + +control "cis_v230_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v230_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v230_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v230_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v230_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v230_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v230_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v230_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v230_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v230_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v230_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v230_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v230_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v230_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v230_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v230_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v230_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v230_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v230_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v230_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c2/control10.sp b/steampipeconfig/test_data/mods/many controls/c2/control10.sp new file mode 100644 index 0000000000..ef8656a8cd --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c2/control10.sp @@ -0,0 +1,101 @@ + +control "cis_v2310_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v2310_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v2310_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v2310_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v2310_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v2310_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v2310_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v2310_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v2310_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v2310_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v2310_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v2310_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v2310_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v2310_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v2310_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v2310_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v2310_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v2310_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v2310_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v2310_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c2/control11.sp b/steampipeconfig/test_data/mods/many controls/c2/control11.sp new file mode 100644 index 0000000000..cd5f931f45 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c2/control11.sp @@ -0,0 +1,101 @@ + +control "cis_v2311_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v2311_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v2311_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v2311_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v2311_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v2311_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v2311_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v2311_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v2311_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v2311_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v2311_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v2311_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v2311_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v2311_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v2311_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v2311_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v2311_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v2311_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v2311_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v2311_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c2/control12.sp b/steampipeconfig/test_data/mods/many controls/c2/control12.sp new file mode 100644 index 0000000000..0db342a1f1 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c2/control12.sp @@ -0,0 +1,101 @@ + +control "cis_v2312_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v2312_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v2312_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v2312_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v2312_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v2312_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v2312_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v2312_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v2312_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v2312_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v2312_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v2312_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v2312_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v2312_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v2312_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v2312_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v2312_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v2312_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v2312_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v2312_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c2/control13.sp b/steampipeconfig/test_data/mods/many controls/c2/control13.sp new file mode 100644 index 0000000000..5af9b3f9e4 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c2/control13.sp @@ -0,0 +1,101 @@ + +control "cis_v2313_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v2313_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v2313_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v2313_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v2313_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v2313_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v2313_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v2313_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v2313_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v2313_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v2313_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v2313_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v2313_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v2313_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v2313_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v2313_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v2313_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v2313_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v2313_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v2313_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c2/control14.sp b/steampipeconfig/test_data/mods/many controls/c2/control14.sp new file mode 100644 index 0000000000..663508a142 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c2/control14.sp @@ -0,0 +1,101 @@ + +control "cis_v2314_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v2314_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v2314_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v2314_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v2314_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v2314_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v2314_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v2314_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v2314_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v2314_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v2314_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v2314_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v2314_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v2314_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v2314_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v2314_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v2314_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v2314_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v2314_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v2314_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c2/control2.sp b/steampipeconfig/test_data/mods/many controls/c2/control2.sp new file mode 100644 index 0000000000..128249488b --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c2/control2.sp @@ -0,0 +1,101 @@ + +control "cis_v231_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v231_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v231_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v231_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v231_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v231_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v231_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v231_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v231_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v231_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v231_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v231_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v231_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v231_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v231_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v231_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v231_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v231_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v231_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v231_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c2/control3.sp b/steampipeconfig/test_data/mods/many controls/c2/control3.sp new file mode 100644 index 0000000000..b1fe8917e7 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c2/control3.sp @@ -0,0 +1,101 @@ + +control "cis_v233_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v233_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v233_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v233_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v233_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v233_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v233_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v233_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v233_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v233_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v233_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v233_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v233_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v233_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v233_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v233_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v233_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v233_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v233_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v233_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c2/control4.sp b/steampipeconfig/test_data/mods/many controls/c2/control4.sp new file mode 100644 index 0000000000..db6ac0df8a --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c2/control4.sp @@ -0,0 +1,101 @@ + +control "cis_v234_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v234_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v234_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v234_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v234_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v234_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v234_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v234_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v234_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v234_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v234_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v234_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v234_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v234_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v234_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v234_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v234_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v234_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v234_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v234_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c2/control5.sp b/steampipeconfig/test_data/mods/many controls/c2/control5.sp new file mode 100644 index 0000000000..fc9eea5da1 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c2/control5.sp @@ -0,0 +1,101 @@ + +control "cis_v235_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v235_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v235_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v235_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v235_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v235_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v235_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v235_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v235_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v235_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v235_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v235_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v235_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v235_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v235_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v235_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v235_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v235_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v235_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v235_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c2/control6.sp b/steampipeconfig/test_data/mods/many controls/c2/control6.sp new file mode 100644 index 0000000000..db33c0ee73 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c2/control6.sp @@ -0,0 +1,101 @@ + +control "cis_v236_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v236_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v236_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v236_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v236_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v236_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v236_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v236_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v236_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v236_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v236_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v236_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v236_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v236_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v236_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v236_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v236_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v236_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v236_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v236_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c2/control7.sp b/steampipeconfig/test_data/mods/many controls/c2/control7.sp new file mode 100644 index 0000000000..5cc631d5f2 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c2/control7.sp @@ -0,0 +1,101 @@ + +control "cis_v237_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v237_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v237_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v237_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v237_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v237_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v237_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v237_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v237_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v237_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v237_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v237_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v237_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v237_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v237_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v237_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v237_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v237_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v237_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v237_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c2/control8.sp b/steampipeconfig/test_data/mods/many controls/c2/control8.sp new file mode 100644 index 0000000000..df51d7a5dc --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c2/control8.sp @@ -0,0 +1,101 @@ + +control "cis_v238_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v238_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v238_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v238_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v238_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v238_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v238_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v238_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v238_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v238_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v238_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v238_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v238_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v238_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v238_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v238_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v238_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v238_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v238_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v238_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c2/control9.sp b/steampipeconfig/test_data/mods/many controls/c2/control9.sp new file mode 100644 index 0000000000..bec3304379 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c2/control9.sp @@ -0,0 +1,101 @@ + +control "cis_v239_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v239_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v239_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v239_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v239_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v239_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v239_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v239_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v239_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v239_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v239_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v239_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v239_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v239_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v239_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v239_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v239_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v239_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v239_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v239_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c3/control.sp b/steampipeconfig/test_data/mods/many controls/c3/control.sp new file mode 100644 index 0000000000..ebacd76df5 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c3/control.sp @@ -0,0 +1,101 @@ + +control "cis_v330_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v330_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v330_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v330_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v330_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v330_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v330_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v330_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v330_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v330_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v330_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v330_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v330_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v330_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v330_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v330_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v330_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v330_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v330_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v330_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c3/control10.sp b/steampipeconfig/test_data/mods/many controls/c3/control10.sp new file mode 100644 index 0000000000..d5fb99fce3 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c3/control10.sp @@ -0,0 +1,101 @@ + +control "cis_v3310_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v3310_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v3310_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v3310_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v3310_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v3310_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v3310_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v3310_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v3310_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v3310_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v3310_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v3310_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v3310_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v3310_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v3310_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v3310_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v3310_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v3310_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v3310_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v3310_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c3/control11.sp b/steampipeconfig/test_data/mods/many controls/c3/control11.sp new file mode 100644 index 0000000000..a2a8765de9 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c3/control11.sp @@ -0,0 +1,101 @@ + +control "cis_v3311_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v3311_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v3311_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v3311_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v3311_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v3311_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v3311_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v3311_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v3311_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v3311_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v3311_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v3311_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v3311_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v3311_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v3311_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v3311_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v3311_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v3311_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v3311_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v3311_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c3/control12.sp b/steampipeconfig/test_data/mods/many controls/c3/control12.sp new file mode 100644 index 0000000000..8f986cde4e --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c3/control12.sp @@ -0,0 +1,101 @@ + +control "cis_v3312_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v3312_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v3312_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v3312_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v3312_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v3312_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v3312_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v3312_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v3312_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v3312_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v3312_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v3312_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v3312_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v3312_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v3312_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v3312_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v3312_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v3312_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v3312_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v3312_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c3/control13.sp b/steampipeconfig/test_data/mods/many controls/c3/control13.sp new file mode 100644 index 0000000000..8999dc3e20 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c3/control13.sp @@ -0,0 +1,101 @@ + +control "cis_v3313_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v3313_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v3313_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v3313_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v3313_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v3313_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v3313_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v3313_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v3313_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v3313_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v3313_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v3313_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v3313_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v3313_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v3313_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v3313_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v3313_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v3313_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v3313_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v3313_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c3/control14.sp b/steampipeconfig/test_data/mods/many controls/c3/control14.sp new file mode 100644 index 0000000000..0595556d67 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c3/control14.sp @@ -0,0 +1,101 @@ + +control "cis_v3314_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v3314_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v3314_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v3314_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v3314_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v3314_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v3314_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v3314_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v3314_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v3314_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v3314_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v3314_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v3314_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v3314_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v3314_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v3314_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v3314_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v3314_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v3314_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v3314_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c3/control2.sp b/steampipeconfig/test_data/mods/many controls/c3/control2.sp new file mode 100644 index 0000000000..e0fe2fac90 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c3/control2.sp @@ -0,0 +1,101 @@ + +control "cis_v331_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v331_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v331_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v331_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v331_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v331_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v331_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v331_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v331_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v331_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v331_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v331_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v331_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v331_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v331_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v331_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v331_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v331_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v331_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v331_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c3/control3.sp b/steampipeconfig/test_data/mods/many controls/c3/control3.sp new file mode 100644 index 0000000000..3daef049c9 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c3/control3.sp @@ -0,0 +1,101 @@ + +control "cis_v333_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v333_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v333_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v333_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v333_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v333_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v333_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v333_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v333_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v333_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v333_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v333_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v333_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v333_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v333_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v333_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v333_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v333_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v333_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v333_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c3/control4.sp b/steampipeconfig/test_data/mods/many controls/c3/control4.sp new file mode 100644 index 0000000000..840e047900 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c3/control4.sp @@ -0,0 +1,101 @@ + +control "cis_v334_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v334_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v334_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v334_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v334_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v334_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v334_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v334_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v334_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v334_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v334_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v334_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v334_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v334_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v334_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v334_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v334_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v334_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v334_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v334_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c3/control5.sp b/steampipeconfig/test_data/mods/many controls/c3/control5.sp new file mode 100644 index 0000000000..9ce9b80ef2 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c3/control5.sp @@ -0,0 +1,101 @@ + +control "cis_v335_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v335_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v335_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v335_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v335_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v335_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v335_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v335_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v335_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v335_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v335_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v335_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v335_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v335_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v335_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v335_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v335_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v335_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v335_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v335_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c3/control6.sp b/steampipeconfig/test_data/mods/many controls/c3/control6.sp new file mode 100644 index 0000000000..1d1f1d1b66 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c3/control6.sp @@ -0,0 +1,101 @@ + +control "cis_v336_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v336_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v336_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v336_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v336_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v336_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v336_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v336_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v336_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v336_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v336_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v336_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v336_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v336_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v336_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v336_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v336_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v336_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v336_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v336_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c3/control7.sp b/steampipeconfig/test_data/mods/many controls/c3/control7.sp new file mode 100644 index 0000000000..28503f84a9 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c3/control7.sp @@ -0,0 +1,101 @@ + +control "cis_v337_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v337_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v337_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v337_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v337_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v337_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v337_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v337_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v337_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v337_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v337_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v337_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v337_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v337_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v337_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v337_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v337_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v337_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v337_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v337_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c3/control8.sp b/steampipeconfig/test_data/mods/many controls/c3/control8.sp new file mode 100644 index 0000000000..cd0ffb88d8 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c3/control8.sp @@ -0,0 +1,101 @@ + +control "cis_v338_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v338_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v338_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v338_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v338_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v338_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v338_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v338_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v338_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v338_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v338_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v338_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v338_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v338_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v338_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v338_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v338_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v338_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v338_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v338_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c3/control9.sp b/steampipeconfig/test_data/mods/many controls/c3/control9.sp new file mode 100644 index 0000000000..c1983b0e48 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c3/control9.sp @@ -0,0 +1,101 @@ + +control "cis_v339_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v339_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v339_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v339_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v339_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v339_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v339_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v339_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v339_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v339_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v339_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v339_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v339_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v339_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v339_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v339_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v339_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v339_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v339_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v339_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c4/control.sp b/steampipeconfig/test_data/mods/many controls/c4/control.sp new file mode 100644 index 0000000000..0b2638dd08 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c4/control.sp @@ -0,0 +1,101 @@ + +control "cis_v430_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v430_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v430_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v430_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v430_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v430_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v430_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v430_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v430_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v430_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v430_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v430_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v430_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v430_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v430_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v430_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v430_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v430_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v430_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v430_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c4/control10.sp b/steampipeconfig/test_data/mods/many controls/c4/control10.sp new file mode 100644 index 0000000000..df4a9e1020 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c4/control10.sp @@ -0,0 +1,101 @@ + +control "cis_v4310_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v4310_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v4310_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v4310_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v4310_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v4310_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v4310_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v4310_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v4310_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v4310_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v4310_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v4310_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v4310_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v4310_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v4310_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v4310_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v4310_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v4310_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v4310_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v4310_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c4/control11.sp b/steampipeconfig/test_data/mods/many controls/c4/control11.sp new file mode 100644 index 0000000000..0ea6ae5c60 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c4/control11.sp @@ -0,0 +1,101 @@ + +control "cis_v4311_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v4311_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v4311_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v4311_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v4311_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v4311_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v4311_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v4311_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v4311_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v4311_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v4311_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v4311_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v4311_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v4311_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v4311_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v4311_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v4311_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v4311_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v4311_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v4311_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c4/control12.sp b/steampipeconfig/test_data/mods/many controls/c4/control12.sp new file mode 100644 index 0000000000..007aedf905 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c4/control12.sp @@ -0,0 +1,101 @@ + +control "cis_v4312_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v4312_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v4312_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v4312_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v4312_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v4312_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v4312_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v4312_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v4312_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v4312_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v4312_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v4312_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v4312_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v4312_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v4312_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v4312_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v4312_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v4312_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v4312_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v4312_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c4/control13.sp b/steampipeconfig/test_data/mods/many controls/c4/control13.sp new file mode 100644 index 0000000000..7aacf52296 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c4/control13.sp @@ -0,0 +1,101 @@ + +control "cis_v4313_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v4313_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v4313_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v4313_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v4313_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v4313_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v4313_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v4313_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v4313_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v4313_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v4313_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v4313_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v4313_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v4313_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v4313_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v4313_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v4313_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v4313_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v4313_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v4313_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c4/control14.sp b/steampipeconfig/test_data/mods/many controls/c4/control14.sp new file mode 100644 index 0000000000..4c2c1bb408 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c4/control14.sp @@ -0,0 +1,101 @@ + +control "cis_v4314_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v4314_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v4314_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v4314_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v4314_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v4314_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v4314_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v4314_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v4314_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v4314_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v4314_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v4314_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v4314_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v4314_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v4314_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v4314_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v4314_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v4314_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v4314_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v4314_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c4/control2.sp b/steampipeconfig/test_data/mods/many controls/c4/control2.sp new file mode 100644 index 0000000000..9a91395d62 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c4/control2.sp @@ -0,0 +1,101 @@ + +control "cis_v431_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v431_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v431_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v431_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v431_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v431_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v431_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v431_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v431_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v431_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v431_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v431_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v431_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v431_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v431_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v431_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v431_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v431_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v431_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v431_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c4/control3.sp b/steampipeconfig/test_data/mods/many controls/c4/control3.sp new file mode 100644 index 0000000000..4b437ac177 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c4/control3.sp @@ -0,0 +1,101 @@ + +control "cis_v433_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v433_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v433_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v433_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v433_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v433_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v433_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v433_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v433_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v433_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v433_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v433_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v433_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v433_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v433_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v433_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v433_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v433_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v433_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v433_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c4/control4.sp b/steampipeconfig/test_data/mods/many controls/c4/control4.sp new file mode 100644 index 0000000000..c0450dcace --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c4/control4.sp @@ -0,0 +1,101 @@ + +control "cis_v434_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v434_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v434_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v434_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v434_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v434_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v434_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v434_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v434_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v434_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v434_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v434_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v434_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v434_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v434_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v434_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v434_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v434_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v434_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v434_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c4/control5.sp b/steampipeconfig/test_data/mods/many controls/c4/control5.sp new file mode 100644 index 0000000000..20766cb8cd --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c4/control5.sp @@ -0,0 +1,101 @@ + +control "cis_v435_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v435_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v435_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v435_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v435_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v435_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v435_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v435_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v435_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v435_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v435_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v435_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v435_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v435_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v435_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v435_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v435_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v435_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v435_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v435_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c4/control6.sp b/steampipeconfig/test_data/mods/many controls/c4/control6.sp new file mode 100644 index 0000000000..32f70c3129 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c4/control6.sp @@ -0,0 +1,101 @@ + +control "cis_v436_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v436_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v436_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v436_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v436_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v436_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v436_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v436_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v436_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v436_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v436_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v436_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v436_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v436_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v436_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v436_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v436_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v436_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v436_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v436_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c4/control7.sp b/steampipeconfig/test_data/mods/many controls/c4/control7.sp new file mode 100644 index 0000000000..1edee693e4 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c4/control7.sp @@ -0,0 +1,101 @@ + +control "cis_v437_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v437_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v437_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v437_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v437_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v437_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v437_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v437_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v437_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v437_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v437_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v437_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v437_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v437_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v437_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v437_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v437_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v437_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v437_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v437_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c4/control8.sp b/steampipeconfig/test_data/mods/many controls/c4/control8.sp new file mode 100644 index 0000000000..677f4cd553 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c4/control8.sp @@ -0,0 +1,101 @@ + +control "cis_v438_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v438_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v438_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v438_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v438_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v438_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v438_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v438_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v438_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v438_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v438_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v438_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v438_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v438_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v438_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v438_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v438_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v438_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v438_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v438_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/c4/control9.sp b/steampipeconfig/test_data/mods/many controls/c4/control9.sp new file mode 100644 index 0000000000..59be7b3a72 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/c4/control9.sp @@ -0,0 +1,101 @@ + +control "cis_v439_1_1" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q1.sql +} +control "cis_v439_1_2" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q2.sql +} +control "cis_v439_1_3" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q3.sql +} +control "cis_v439_1_4" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q4.sql +} +control "cis_v439_1_5" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q5.sql +} +control "cis_v439_1_6" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q6.sql +} +control "cis_v439_1_7" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q7.sql +} +control "cis_v439_1_8" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q8.sql +} +control "cis_v439_1_9" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q9.sql +} +control "cis_v439_1_10" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q10.sql +} +control "cis_v439_1_11" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q11.sql +} +control "cis_v439_1_12" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q12.sql +} +control "cis_v439_1_13" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q13.sql +} +control "cis_v439_1_14" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q14.sql +} +control "cis_v439_1_15" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q15.sql +} +control "cis_v439_1_16" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q16.sql +} +control "cis_v439_1_17" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q17.sql +} +control "cis_v439_1_18" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q18.sql +} +control "cis_v439_1_19" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q19.sql +} +control "cis_v439_1_20" { + title = "1.1 Maintain current contact details" + description = "Ensure contact email and telephone details for AWS accounts are current and map to more than one individual in your organization." + sql = query.q20.sql +} diff --git a/steampipeconfig/test_data/mods/many controls/mod.sp b/steampipeconfig/test_data/mods/many controls/mod.sp new file mode 100644 index 0000000000..fd2175a73a --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/mod.sp @@ -0,0 +1,4 @@ +mod "m1"{ + title = "M1" + description = "THIS IS M1" +} \ No newline at end of file diff --git a/steampipeconfig/test_data/mods/many controls/queries/q1.sql b/steampipeconfig/test_data/mods/many controls/queries/q1.sql new file mode 100644 index 0000000000..c603eac3f7 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/queries/q1.sql @@ -0,0 +1,14 @@ +-- Required Columns +select arn as resource, + case + when users is null then 'alarm' + else 'ok' + end as status, + case + when users is null then title || ' not associated with any IAM user.' + else title || ' associated with IAM user.' + end as reason, + -- Additional Dimensions + account_id +from + aws_iam_group; \ No newline at end of file diff --git a/steampipeconfig/test_data/mods/many controls/queries/q10.sql b/steampipeconfig/test_data/mods/many controls/queries/q10.sql new file mode 100644 index 0000000000..c603eac3f7 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/queries/q10.sql @@ -0,0 +1,14 @@ +-- Required Columns +select arn as resource, + case + when users is null then 'alarm' + else 'ok' + end as status, + case + when users is null then title || ' not associated with any IAM user.' + else title || ' associated with IAM user.' + end as reason, + -- Additional Dimensions + account_id +from + aws_iam_group; \ No newline at end of file diff --git a/steampipeconfig/test_data/mods/many controls/queries/q11.sql b/steampipeconfig/test_data/mods/many controls/queries/q11.sql new file mode 100644 index 0000000000..c603eac3f7 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/queries/q11.sql @@ -0,0 +1,14 @@ +-- Required Columns +select arn as resource, + case + when users is null then 'alarm' + else 'ok' + end as status, + case + when users is null then title || ' not associated with any IAM user.' + else title || ' associated with IAM user.' + end as reason, + -- Additional Dimensions + account_id +from + aws_iam_group; \ No newline at end of file diff --git a/steampipeconfig/test_data/mods/many controls/queries/q12.sql b/steampipeconfig/test_data/mods/many controls/queries/q12.sql new file mode 100644 index 0000000000..6f16b453de --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/queries/q12.sql @@ -0,0 +1,21 @@ +select + -- Required Columns + arn as resource, + case + when o ->> 'DomainName' not like '%s3.amazonaws.com' then 'skip' + when o ->> 'DomainName' like '%s3.amazonaws.com' + and o -> 'S3OriginConfig' ->> 'OriginAccessIdentity' = '' then 'alarm' + else 'ok' + end as status, + case + when o ->> 'DomainName' not like '%s3.amazonaws.com' then title || ' origin type is not s3.' + when o ->> 'DomainName' like '%s3.amazonaws.com' + and o -> 'S3OriginConfig' ->> 'OriginAccessIdentity' = '' then title || ' origin access identity not configured.' + else title || ' origin access identity configured.' + end as reason, + -- Additional Dimensions + region, + account_id +from + aws_cloudfront_distribution, + jsonb_array_elements(origins) as o; diff --git a/steampipeconfig/test_data/mods/many controls/queries/q13.sql b/steampipeconfig/test_data/mods/many controls/queries/q13.sql new file mode 100644 index 0000000000..89fd7a673d --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/queries/q13.sql @@ -0,0 +1,31 @@ +with data as ( + select + distinct arn + from + aws_cloudfront_distribution, + jsonb_array_elements( + case jsonb_typeof(cache_behaviors -> 'Items') + when 'array' then (cache_behaviors -> 'Items') + else null end + ) as cb + where + cb -> 'ViewerProtocolPolicy' = '"allow-all"' +) +select + -- Required Columns + b.arn as resource, + case + when d.arn is not null or (default_cache_behavior ->> 'ViewerProtocolPolicy' = 'allow-all') then 'alarm' + else 'ok' + end as status, + case + when d.arn is not null or (default_cache_behavior ->> 'ViewerProtocolPolicy' = 'allow-all') then title || ' data not encrypted in transit.' + else title || ' data encrypted in transit.' + end as reason, + -- Additional Dimensions + region, + account_id +from + aws_cloudfront_distribution as b + left join data as d on b.arn = d.arn; + diff --git a/steampipeconfig/test_data/mods/many controls/queries/q14.sql b/steampipeconfig/test_data/mods/many controls/queries/q14.sql new file mode 100644 index 0000000000..ae73a4de34 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/queries/q14.sql @@ -0,0 +1,16 @@ +select + -- Required Columns + arn as resource, + case + when default_root_object = '' then 'alarm' + else 'ok' + end as status, + case + when default_root_object = '' then title || ' default root object not configured.' + else title || ' default root object configured.' + end as reason, + -- Additional Dimensions + region, + account_id +from + aws_cloudfront_distribution; \ No newline at end of file diff --git a/steampipeconfig/test_data/mods/many controls/queries/q15.sql b/steampipeconfig/test_data/mods/many controls/queries/q15.sql new file mode 100644 index 0000000000..ec2d4fe513 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/queries/q15.sql @@ -0,0 +1,16 @@ +select + -- Required Columns + arn as resource, + case + when origin_groups ->> 'Items' is not null then 'ok' + else 'alarm' + end as status, + case + when origin_groups ->> 'Items' is not null then title || ' origin group is configured.' + else title || ' origin group not configured.' + end as reason, + -- Additional Dimensions + region, + account_id +from + aws_cloudfront_distribution; \ No newline at end of file diff --git a/steampipeconfig/test_data/mods/many controls/queries/q16.sql b/steampipeconfig/test_data/mods/many controls/queries/q16.sql new file mode 100644 index 0000000000..b50cc02a53 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/queries/q16.sql @@ -0,0 +1,18 @@ +select + -- Required Columns + autoscaling_group_arn as resource, + case + when load_balancer_names is null and target_group_arns is null then 'alarm' + when health_check_type != 'ELB' then 'alarm' + else 'ok' + end as status, + case + when load_balancer_names is null and target_group_arns is null then title || ' not associated with a load balancer.' + when health_check_type != 'ELB' then title || ' does not use ELB health check.' + else title || ' uses ELB health check.' + end as reason, + -- Additional Dimensions + region, + account_id +from + aws_ec2_autoscaling_group; diff --git a/steampipeconfig/test_data/mods/many controls/queries/q17.sql b/steampipeconfig/test_data/mods/many controls/queries/q17.sql new file mode 100644 index 0000000000..75bdfa3f72 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/queries/q17.sql @@ -0,0 +1,37 @@ +with all_stages as ( + select + name as stage_name, + 'arn:' || partition || ':apigateway:' || region || '::/apis/' || rest_api_id || '/stages/' || name as arn, + method_settings -> '*/*' ->> 'LoggingLevel' as log_level, + title, + region, + account_id + from + aws_api_gateway_stage + union + select + stage_name, + 'arn:' || partition || ':apigateway:' || region || '::/apis/' || api_id || '/stages/' || stage_name as arn, + default_route_logging_level as log_level, + title, + region, + account_id + from + aws_api_gatewayv2_stage +) +select + -- Required Columns + arn as resource, + case + when log_level is null or log_level = 'OFF' then 'alarm' + else 'ok' + end as status, + case + when log_level is null or log_level = 'OFF' then title || ' logging not enabled.' + else title || ' logging enabled.' + end as reason, + -- Additional Dimensions + region, + account_id +from + all_stages; \ No newline at end of file diff --git a/steampipeconfig/test_data/mods/many controls/queries/q18.sql b/steampipeconfig/test_data/mods/many controls/queries/q18.sql new file mode 100644 index 0000000000..d5ac4ce137 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/queries/q18.sql @@ -0,0 +1,19 @@ +select + -- Required Columns + 'arn:' || partition || ':apigateway:' || region || '::/apis/' || rest_api_id || '/stages/' || name as resource, + case + when method_settings -> '*/*' ->> 'CachingEnabled' = 'true' + and method_settings -> '*/*' ->> 'CacheDataEncrypted' = 'true' then 'ok' + else 'alarm' + end as status, + case + when method_settings -> '*/*' ->> 'CachingEnabled' = 'true' + and method_settings -> '*/*' ->> 'CacheDataEncrypted' = 'true' + then title || ' API cache and encryption enabled.' + else title || ' API cache and encryption not enabled.' + end as reason, + -- Additional Dimensions + region, + account_id +from + aws_api_gateway_stage; \ No newline at end of file diff --git a/steampipeconfig/test_data/mods/many controls/queries/q19.sql b/steampipeconfig/test_data/mods/many controls/queries/q19.sql new file mode 100644 index 0000000000..041dec2579 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/queries/q19.sql @@ -0,0 +1,16 @@ +select + -- Required Columns + 'arn:' || partition || ':apigateway:' || region || '::/apis/' || rest_api_id || '/stages/' as resource, + case + when client_certificate_id is null then 'alarm' + else 'ok' + end as status, + case + when client_certificate_id is null then title || ' not uses SSL certificate.' + else title || ' uses SSL certificate.' + end as reason, + -- Additional Dimensions + region, + account_id +from + aws_api_gateway_stage; \ No newline at end of file diff --git a/steampipeconfig/test_data/mods/many controls/queries/q2.sql b/steampipeconfig/test_data/mods/many controls/queries/q2.sql new file mode 100644 index 0000000000..c603eac3f7 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/queries/q2.sql @@ -0,0 +1,14 @@ +-- Required Columns +select arn as resource, + case + when users is null then 'alarm' + else 'ok' + end as status, + case + when users is null then title || ' not associated with any IAM user.' + else title || ' associated with IAM user.' + end as reason, + -- Additional Dimensions + account_id +from + aws_iam_group; \ No newline at end of file diff --git a/steampipeconfig/test_data/mods/many controls/queries/q20.sql b/steampipeconfig/test_data/mods/many controls/queries/q20.sql new file mode 100644 index 0000000000..1e595d2578 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/queries/q20.sql @@ -0,0 +1,15 @@ +select + -- Required Columns + certificate_arn as resource, + case + when not_after <= (current_date - interval '30' day) then 'ok' + else 'alarm' + end as status, + title || ' expires ' || to_char(not_after, 'DD-Mon-YYYY') || + ' (' || extract(day from not_after - current_timestamp) || ' days).' + as reason, + -- Additional Dimensions + region, + account_id +from + aws_acm_certificate; diff --git a/steampipeconfig/test_data/mods/many controls/queries/q3.sql b/steampipeconfig/test_data/mods/many controls/queries/q3.sql new file mode 100644 index 0000000000..c603eac3f7 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/queries/q3.sql @@ -0,0 +1,14 @@ +-- Required Columns +select arn as resource, + case + when users is null then 'alarm' + else 'ok' + end as status, + case + when users is null then title || ' not associated with any IAM user.' + else title || ' associated with IAM user.' + end as reason, + -- Additional Dimensions + account_id +from + aws_iam_group; \ No newline at end of file diff --git a/steampipeconfig/test_data/mods/many controls/queries/q4.sql b/steampipeconfig/test_data/mods/many controls/queries/q4.sql new file mode 100644 index 0000000000..c603eac3f7 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/queries/q4.sql @@ -0,0 +1,14 @@ +-- Required Columns +select arn as resource, + case + when users is null then 'alarm' + else 'ok' + end as status, + case + when users is null then title || ' not associated with any IAM user.' + else title || ' associated with IAM user.' + end as reason, + -- Additional Dimensions + account_id +from + aws_iam_group; \ No newline at end of file diff --git a/steampipeconfig/test_data/mods/many controls/queries/q5.sql b/steampipeconfig/test_data/mods/many controls/queries/q5.sql new file mode 100644 index 0000000000..c603eac3f7 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/queries/q5.sql @@ -0,0 +1,14 @@ +-- Required Columns +select arn as resource, + case + when users is null then 'alarm' + else 'ok' + end as status, + case + when users is null then title || ' not associated with any IAM user.' + else title || ' associated with IAM user.' + end as reason, + -- Additional Dimensions + account_id +from + aws_iam_group; \ No newline at end of file diff --git a/steampipeconfig/test_data/mods/many controls/queries/q6.sql b/steampipeconfig/test_data/mods/many controls/queries/q6.sql new file mode 100644 index 0000000000..c603eac3f7 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/queries/q6.sql @@ -0,0 +1,14 @@ +-- Required Columns +select arn as resource, + case + when users is null then 'alarm' + else 'ok' + end as status, + case + when users is null then title || ' not associated with any IAM user.' + else title || ' associated with IAM user.' + end as reason, + -- Additional Dimensions + account_id +from + aws_iam_group; \ No newline at end of file diff --git a/steampipeconfig/test_data/mods/many controls/queries/q7.sql b/steampipeconfig/test_data/mods/many controls/queries/q7.sql new file mode 100644 index 0000000000..c603eac3f7 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/queries/q7.sql @@ -0,0 +1,14 @@ +-- Required Columns +select arn as resource, + case + when users is null then 'alarm' + else 'ok' + end as status, + case + when users is null then title || ' not associated with any IAM user.' + else title || ' associated with IAM user.' + end as reason, + -- Additional Dimensions + account_id +from + aws_iam_group; \ No newline at end of file diff --git a/steampipeconfig/test_data/mods/many controls/queries/q8.sql b/steampipeconfig/test_data/mods/many controls/queries/q8.sql new file mode 100644 index 0000000000..c603eac3f7 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/queries/q8.sql @@ -0,0 +1,14 @@ +-- Required Columns +select arn as resource, + case + when users is null then 'alarm' + else 'ok' + end as status, + case + when users is null then title || ' not associated with any IAM user.' + else title || ' associated with IAM user.' + end as reason, + -- Additional Dimensions + account_id +from + aws_iam_group; \ No newline at end of file diff --git a/steampipeconfig/test_data/mods/many controls/queries/q9.sql b/steampipeconfig/test_data/mods/many controls/queries/q9.sql new file mode 100644 index 0000000000..c603eac3f7 --- /dev/null +++ b/steampipeconfig/test_data/mods/many controls/queries/q9.sql @@ -0,0 +1,14 @@ +-- Required Columns +select arn as resource, + case + when users is null then 'alarm' + else 'ok' + end as status, + case + when users is null then title || ' not associated with any IAM user.' + else title || ' associated with IAM user.' + end as reason, + -- Additional Dimensions + account_id +from + aws_iam_group; \ No newline at end of file From ef8fbef0f5a8c39bb761383ce726a59e82b58575 Mon Sep 17 00:00:00 2001 From: kai Date: Mon, 19 Jul 2021 11:16:34 +0100 Subject: [PATCH 2/4] Update FDW to 0.1.0-rc.4 - fix freeze when aggregator connections are using cached results. --- constants/db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/constants/db.go b/constants/db.go index c4375fe84f..f79bfdf06c 100644 --- a/constants/db.go +++ b/constants/db.go @@ -19,7 +19,7 @@ const ( // constants for installing db and fdw images const ( DatabaseVersion = "12.1.0" - FdwVersion = "0.1.0-rc.3" + FdwVersion = "0.1.0-rc.4" // DefaultEmbeddedPostgresImage :: The 12.1.0 image uses the older jar format 12.1.0-v2 is the same version of postgres, // just packaged as gzipped tar files (consistent with oras, faster to unzip). Once everyone is From 714c72aeb550e8969f81066ee22e03fe5f13e83a Mon Sep 17 00:00:00 2001 From: kai Date: Mon, 19 Jul 2021 13:12:27 +0100 Subject: [PATCH 3/4] Plugin schema validation errors should be displayed as warnings rather than cause Steampipe to exit. Closes #644 --- db/client_connections.go | 32 ++++++++++++++++++-------------- db/init_result.go | 1 + 2 files changed, 19 insertions(+), 14 deletions(-) diff --git a/db/client_connections.go b/db/client_connections.go index 2a274850e9..7168592bda 100644 --- a/db/client_connections.go +++ b/db/client_connections.go @@ -46,12 +46,13 @@ func (c *Client) RefreshConnections() *RefreshConnectionResult { numUpdates := len(updates.Update) if numUpdates > 0 { - // first instantiate connection plugins for all updates - connectionPlugins, err := getConnectionPlugins(updates.Update) - if err != nil { - res.Error = err + // first instantiate connection plugins for all updates (reuse 'res' defined above) + var connectionPlugins []*steampipeconfig.ConnectionPlugin + connectionPlugins, res = getConnectionPlugins(updates.Update) + if res.Error != nil { return res } + // find any plugins which use a newer sdk version than steampipe. validationFailures, validatedUpdates, validatedPlugins := steampipeconfig.ValidatePlugins(updates.Update, connectionPlugins) res.Warnings = append(res.Warnings, steampipeconfig.BuildValidationWarningString(validationFailures)) @@ -102,33 +103,36 @@ func (c *Client) updateConnectionMap() error { return nil } -func getConnectionPlugins(updates steampipeconfig.ConnectionMap) ([]*steampipeconfig.ConnectionPlugin, error) { +func getConnectionPlugins(updates steampipeconfig.ConnectionMap) ([]*steampipeconfig.ConnectionPlugin, *RefreshConnectionResult) { + res := &RefreshConnectionResult{} var connectionPlugins []*steampipeconfig.ConnectionPlugin + + // create channels buffered to hold all updates numUpdates := len(updates) var pluginChan = make(chan *steampipeconfig.ConnectionPlugin, numUpdates) var errorChan = make(chan error, numUpdates) - for connectionName, connectionData := range updates { + for connectionName, connectionData := range updates { // instantiate the connection plugin, and retrieve schema - go getConnectionPluginsAsync(connectionName, connectionData, pluginChan, errorChan) + go getConnectionPluginAsync(connectionName, connectionData, pluginChan, errorChan) } for i := 0; i < numUpdates; i++ { select { case err := <-errorChan: - log.Println("[TRACE] get connections err chan select", "error", err) - return nil, err - case <-time.After(10 * time.Second): - return nil, fmt.Errorf("timed out retrieving schema from plugins") + log.Println("[TRACE] get connections err chan select - adding warning", "error", err) + res.Warnings = append(res.Warnings, err.Error()) case p := <-pluginChan: connectionPlugins = append(connectionPlugins, p) + case <-time.After(10 * time.Second): + res.Error = fmt.Errorf("timed out retrieving schema from plugins") + return nil, res } } - - return connectionPlugins, nil + return connectionPlugins, res } -func getConnectionPluginsAsync(connectionName string, connectionData *steampipeconfig.ConnectionData, pluginChan chan *steampipeconfig.ConnectionPlugin, errorChan chan error) { +func getConnectionPluginAsync(connectionName string, connectionData *steampipeconfig.ConnectionData, pluginChan chan *steampipeconfig.ConnectionPlugin, errorChan chan error) { opts := &steampipeconfig.ConnectionPluginInput{ ConnectionName: connectionName, PluginName: connectionData.Plugin, diff --git a/db/init_result.go b/db/init_result.go index 6d021f88b0..1cc3efe010 100644 --- a/db/init_result.go +++ b/db/init_result.go @@ -21,6 +21,7 @@ func (r *InitResult) HasMessages() bool { } func (r *InitResult) DisplayMessages() { + fmt.Println() for _, w := range r.Warnings { fmt.Println(w) } From 413d10a5f3d8efd2a6959e74f79dc7c2cd31e4cd Mon Sep 17 00:00:00 2001 From: kai Date: Mon, 19 Jul 2021 13:27:05 +0100 Subject: [PATCH 4/4] error formatting --- db/interactive_client.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/db/interactive_client.go b/db/interactive_client.go index a6ea096adb..c27f1ed9ce 100644 --- a/db/interactive_client.go +++ b/db/interactive_client.go @@ -140,8 +140,10 @@ func (c *InteractiveClient) handleInitResult(ctx context.Context, initResult *In // if there is an error, shutdown if initResult.Error != nil { - utils.ShowError(initResult.Error) c.ClosePrompt(AfterPromptCloseExit) + // add newline to ensure error is not printed at end of current prompt line + fmt.Println() + utils.ShowError(initResult.Error) return initResult.Error } if initResult.HasMessages() {