In this post, we will see how to resolve Attaching resource policy to my lambda function for AWS secrets manager using terraform
Question:I’m trying to attach a lambda permission so that AWS secrets manager can invoke my lambda function to rotate multiple secrets.
source_arnargument expects a single ARN in a form of a string. You can use
for_eachto keep your code simple:
If you have better answer, please add a comment about this, thank you!