Closed mverzier-tmg closed 1 year ago
Describe the bug the associated_resources in aws_wafv2_web_acl table does not contain cloudfront distributions associated with the waf.
Steampipe version (steampipe -v) v0.20.5
steampipe -v
Plugin version (steampipe plugin list) v0.105.0
steampipe plugin list
To reproduce associate a global wafv2 with a cloudfront distribution, the associated_resources column will be null
Expected behavior the associated_resources column should include the associated cloudfront distrubution(s)
Additional context The ListDistributionsByWebAclId should reference the web acl by its full arn rather than its id:
ListDistributionsByWebAclId
$ aws cloudfront list-distributions-by-web-acl-id --web-acl-id <truncated-web-acl-id> --query DistributionList.Quantity 0 $ aws cloudfront list-distributions-by-web-acl-id --web-acl-id <truncated-web-acl-arn> --query DistributionList.Quantity 1
Welcome to Steampipe @mverzier-tmg and apologies for the inconvenience!!
Thanks for reporting this issue 👍.
Describe the bug the associated_resources in aws_wafv2_web_acl table does not contain cloudfront distributions associated with the waf.
Steampipe version (
steampipe -v
) v0.20.5Plugin version (
steampipe plugin list
) v0.105.0To reproduce associate a global wafv2 with a cloudfront distribution, the associated_resources column will be null
Expected behavior the associated_resources column should include the associated cloudfront distrubution(s)
Additional context The
ListDistributionsByWebAclId
should reference the web acl by its full arn rather than its id: