pulumi / pulumi-policy-aws

A policy pack of rules to enforce AWS best practices for security, reliability, cost, and more!
https://www.pulumi.com
Apache License 2.0
33 stars 6 forks source link

Loadbalancer checks use wrong module name. #113

Open MitchellGerdisch opened 1 month ago

MitchellGerdisch commented 1 month ago

What happened?

Looking at code such as https://github.com/pulumi/pulumi-policy-aws/blob/4355f3be903b4e13396fbcc3f735cabec89db92a/src/storage.ts#L46-L62 one sees that the policy check is looking for types like aws.applicationloadbalancing.LoadBalancer and aws.elasticloadbalancingv2.LoadBalancer but those are not the correct namespaces.

It should be using aws.lb... and/or aws.alb... and/or aws.elb....

Example

https://github.com/pulumi/pulumi-policy-aws/blob/4355f3be903b4e13396fbcc3f735cabec89db92a/src/storage.ts#L46-L62

Output of pulumi about

N/A

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).