简体   繁体   中英

How can I view cloudwatch permission?

I use this command to add invoke lambda permission on cloudwatch:

aws lambda add-permission --function-name lambdaName \
  --statement-id test --action lambda:InvokeFunction \
  --principal logs.ap-southeast-2.amazonaws.com

what I don't understand is how I can view this permission on AWS console. I tried to look at cloudwatch but couldn't find anywhere about permission. And how can I convert it to cloudformation?

In console, you have to go to Permissions and look at Resource-based policy :

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM