When I use another account's rule group, cannot add or modify my WebACL in console, because of authority.

0

I'm using the WebACL, that is included my rule group, and other account's rule group. I know that i cannot read or modify the other's rule group, but when I try to add a new rule group or market rule in console, I can't add or adjust priorities of rules. It show me that my IAM is not allowed to change other's rule group. But when I try to do same thing with my aws CLI, It works well. I think that is the bug of AWS. Or is that a alternative ways to do that I don't know?

hongil
已提問 1 個月前檢視次數 176 次
1 個回答
1

Hello.

Where is the AWS CLI running?
If you are running on a local PC etc., the IAM user who issued the access key may be different, so please check the IAM user using the command below.

aws sts get-caller-identity

Also, please share the detailed error message when you perform the operation and the AWS CLI command that makes the operation successful.

By the way, have you checked the CloudTrail event history?
By checking the event history, you may be able to check the IAM policies that are missing for the IAM user.
https://docs.aws.amazon.com/awscloudtrail/latest/userguide/view-cloudtrail-events.html

profile picture
專家
已回答 1 個月前
profile picture
專家
已審閱 1 個月前
  • Hello, thank you for your response.

    The AWS CLI is running in my local PC.

    I sure the IAM key is same with AWS console.

    The Detailed error message on AWS console is this.

    When I try to add a rule in WebACL.

    AccessDeniedException User: arn:aws:iam::(myAWSacountID):user/(myIAM) is not authorized to perform: wafv2:UpdateWebACL on resource: arn:aws:wafv2:(region):(other accountID):regional/rulegroup/(other account's Rule group name)/(other account's Rule group ID) because no resource-based policy allows the wafv2:UpdateWebACL action And this is what I try with my AWS CLI.

    aws wafv2 get-web-acl --name () --id () --scope () --region () > edit_webacl.json vim edit_webacl.json // I modify json file and add a rule. aws wafv2 update-web-acl --scope () --region () --cli-input-json file://edit_webacl.json

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南