turbot / steampipe-mod-aws-compliance

Run individual controls or full compliance benchmarks for CIS, PCI, NIST, HIPAA and more across all of your AWS accounts using Powerpipe and Steampipe.
https://hub.steampipe.io/mods/turbot/aws_compliance
Apache License 2.0
369 stars 59 forks source link

The lambda_function_multiple_az_configured query returns OK when all subnets are in the same AZ #393

Closed cbruno10 closed 2 years ago

cbruno10 commented 2 years ago

Describe the bug The lambda_function_multiple_az_configured query returns OK when all subnets are in the same AZ, which is incorrect as it should only return OK if there are 2 or more unique AZs across all subnets

Steampipe version (steampipe -v) v0.14.0

Plugin version (steampipe plugin list) v0.32.0

To reproduce Create a Lambda function in a VPC, and select 2 or more subnets in the same AZ

Expected behavior The query should return alarm

Additional context Add any other context about the problem here.

cbruno10 commented 2 years ago

Duplicate of https://github.com/turbot/steampipe-mod-aws-compliance/issues/374, will be addressed as part of that issue