Open jeraldsm opened 1 year ago
This is happening because the v2 sdk is not supported yet.
For example for loadbalancing v2 has
https://github.com/inspec/inspec-aws/blob/main/libraries/aws_backend.rb
require "aws-sdk-elasticloadbalancing"
require "aws-sdk-elasticloadbalancingv2"
Waf only has 1.0 support
require "aws-sdk-waf"
...
def waf_client
aws_client(Aws::WAF::Client)
end
π Inspec resource aws_waf_web_acl fails to detect resource even though they actually exist.
π InSpec and Platform Version
InSpec client Version:5.18.14 inspec-aws Version: 1.83.43
π€ Replication Case
We are trying to check whether the WAF resource exist in the AWS account using the inspec resource
aws_waf_web_acl
, but unfortunately the inspec execution fails as it does not detect the resource in AWS, even though the aws waf resource actually exists in EU-frankfurt region.Following is the ruby code for checking if the WAF exists:
Here's the JSON file where the WAF ids are parsed.
Screenshot of AWS WAF resources:
π» Logs with debug
Is there something I can do to fix this? Any help will be appreciated.