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
질문됨 한 달 전168회 조회
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
전문가
답변함 한 달 전
profile picture
전문가
검토됨 한 달 전
  • 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

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠