aws logs put-subscription-filter An error occurred AccessDeniedException when calling the PutSubscriptionFilter operation Cross-account role passing is not allowed
The error message is indicating that you are trying to create a subscription filter in AWS CloudWatch Logs using a cross-account IAM role, which is not allowed.
To resolve this issue, you have a few options:
-
Use an IAM role from the same AWS account where the CloudWatch Logs reside. Make sure that the IAM role you are using has the necessary permissions to create a subscription filter.
-
If you are trying to create a subscription filter in another AWS account, you will need to use an IAM role from that specific account. Make sure the IAM role has the necessary permissions to create a subscription filter in that account.
-
If you don't have access to the other AWS account, you will need to work with the account owner or an administrator who can provide you with the necessary permissions or create the subscription filter for you.
Remember to review and verify the IAM permissions and roles you are using to ensure that they have the appropriate access to perform the desired actions
AI 优化版
原文地址:https://www.cveoy.top/t/topic/hM1R 著作权归作者所有。请勿转载和采集!