While Configuring IAM using CloudFormation, Stack creation failed with error "Resource of type 'AWS::IAM::Role' already exists"

0

I want to setup RDS Custom for Oracle environment.

While performing Configure IAM using CloudFormation, In my first attempt, stack creation got failed because of lack of sufficient roles. After I got the roles, stack creation is failing with "Resource of type 'AWS::IAM::Role' already exists". Any suggestions?

質問済み 2ヶ月前180ビュー
2回答
0

As the error msg says, you have already the same role existing you are trying to create from your stack. This could be left from previous attempt or someone might have already deployed (the same?) template with a role using the same name.

If you want to create multiple instances of the same template including IAM roles, you should not define RoleName as there can not be 2 roles with identical names on one account. See https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html

RoleName

A name for the IAM role, up to 64 characters in length. For valid values, see the RoleName parameter for the CreateRole action > in the IAM User Guide. .. If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the role name.

profile picture
エキスパート
Kallu
回答済み 2ヶ月前
profile picture
エキスパート
レビュー済み 2ヶ月前
0

And if you are following these instructions https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-setup-orcl.html#custom-setup-orcl.cf.config-iam I believe someone has already created that stack (or manually did IAM roles) so you could try to skip the IAM creation part (or delete 3 items mentioned and retry).

profile picture
エキスパート
Kallu
回答済み 2ヶ月前

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

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

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

関連するコンテンツ