[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
質問済み 1年前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
回答済み 1年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ