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
asked 14 days ago85 views
1 Answer
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
EXPERT
answered 14 days ago
profile picture
EXPERT
reviewed 14 days ago
  • 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

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions