Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWS_WAF_WEB_ACLS returns an empty array #955

Open
fisher-rovco opened this issue Nov 30, 2022 · 1 comment
Open

AWS_WAF_WEB_ACLS returns an empty array #955

fisher-rovco opened this issue Nov 30, 2022 · 1 comment

Comments

@fisher-rovco
Copy link

Describe the problem

Checking for existence of AWS_WAF_WEB_ACLS returns an empty array. The WAF exists and is of regional (vs cloudfront) scope in a non us region.

  ×  Check WAF exists: Check WAF exists
     ×  aws_waf_web_acls web_acl_ids is expected to include "WEB_ACL_ID"
     expected [] to include "WEB_ACL_ID"

and

describe aws_waf_web_acl(web_acl_id: '***') do
    it { should exist }
  end

Fails, despite having retrieved the ID via the cli aws wafv2 list-web-acls --scope REGIONAL

Possible Solution

The ruby get_web_acl call in the SDK asks for the scope, however there is no ability to provide one in Inspec?

@robertdeheer
Copy link

robertdeheer commented Sep 17, 2023

I'm seeing this issue as well. It looks like it doesn't support the WAF V2 api yet. V2 is mentioned here

https://docs.chef.io/inspec/resources/aws_waf_web_acl/

I have prepared the code changes here, but there are still additional updates to the pr that are required before merging, like unit tests, linting, docs... I will work on these changes, but if anyone would like to complete them, feel free. It will take me some time to set up a dev environment.

https://github.com/inspec/inspec-aws/pull/974/files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants