Skip to content

AWS_WAF_WEB_ACLS returns an empty array #955

@fisher-rovco

Description

@fisher-rovco

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions