turbot / steampipe-mod-alicloud-compliance

Run individual configuration, compliance and security controls or full compliance benchmarks for CIS across all of your Alibaba Cloud accounts using Powerpipe and Steampipe.
https://hub.powerpipe.io/mods/turbot/alicloud_compliance
Apache License 2.0
8 stars 3 forks source link

Controls should reference their query using `query = ` rather than `sql =` #51

Closed madhushreeray30 closed 1 year ago

madhushreeray30 commented 1 year ago

It's simpler in code and readability to reference queries using the query = attribute rather than the sql = attribute.

This occurs throughout the mod, but as a specific example:

https://github.com/turbot/steampipe-mod-alicloud-compliance/blob/178688757489f7b9b351dd6bc614a36872facb80/cis_v100/section_2.sp#L41-L53

Could be changed from:

sql           = query.action_trail_enabled.sql

to:

query         = query.action_trail_enabled
misraved commented 1 year ago

Closed as a part of https://github.com/turbot/steampipe-mod-alicloud-compliance/pull/52