Can we grant "logs:GetQueryResult" grantee = Lambda Function to all resources? #16103
-
I am finding my way through CDK but it seems after thorough research and trials that I cant grant GetQueryResults to my Lambda Function to all resources. If I do this to a specific logGroup which I am reading its stream.
This results the following
I still get the error that lambda is not authorized to perform GetQueryResults from this log group and from the AWS GUI, I see the warn message This only got solved if I manually edited the policy by allowing GetQueryResults to all resources. Is there any way to do it with CDK? I hope I explained my problem well. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I solved it , I added an inline policy |
Beta Was this translation helpful? Give feedback.
I solved it , I added an inline policy
my_lambda.role.attach_inline_policy.