Loving the testing I'm doing so far personally with LLD, but I did notice the IAM role permissions that are added for AWS IoT seem overly permissive.
Is it possible to scope this policy down to the app's needs? One way to implement this easily might be:
- When creating LLD's IoT resources, tag them
- Scope the IAM policy to be able to Create specific resource types, and only Update or Delete those specific resources where the tag is present.
I don't know if there are any quirks of how you're using IoT or the resource types you rely on that would make an approach like this impractical, but keen to hear your thoughts.