[bug report] I think this is an IAM bug.

0

Proceed as follows:

STEP 1 : create an inline policy

  • Name : test
  • Policy : ELB

STEP 2 : Declare differenct policies with the same name

  • Name : test
  • Policy : API Gateway

STEP 3 : Confirm that the existing policy has disappeard

  • Name : test
  • Policy : API Gateway

You can see that the existing test/ELB poilcies have disappeared

In places other than inline-policy, duplicate declarations are prohibited.

In this regard, I thought it was a bug and contacted the customer center, and the customer center told me to contact me here.
Isn't it a bug to delete an existing policy from an inline policy?

I also got a response that it's not a bug to use the API like this: https://docs.aws.amazon.com/IAM/latest/APIReference/API_PutUserPolicy.html
I think that things that are deleted from the web should be eliminated even if it is not at the API level.

cand0
질문됨 일 년 전307회 조회
1개 답변
1

Hello, The behaviour observed here is an expected behaviour by design. When adding another inline policy to an IAM identity, ensure that the policy name is unique. If the new inline policy uses the same name as an existing inline policy, the new policy will overwrite the existing policy.

We have received feedback from our customers in regard to this behaviour and there's an already created feature request to improve the behaviour in future.

profile pictureAWS
지원 엔지니어
Varun
답변함 일 년 전

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

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

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

관련 콘텐츠