Repository navigation
Can we grant "logs:GetQueryResult" grantee = Lambda Function to all resources? #16103
Answered
by
AmiraLotfy
AmiraLotfy
asked this question in
Q&A
|
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. |
Answered by
AmiraLotfy
Aug 17, 2021
Replies: 1 comment
|
I solved it , I added an inline policy |
0 replies
Answer selected by
peterwoodworth
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I solved it , I added an inline policy
my_lambda.role.attach_inline_policy.