Create Stack - Permissions - No Roles showing - many exist in IAM ?????

0

I am trying to do a Create Stack and when I get to the Permissions NONE of the Roles I have created will show in the IAM role name? I have created numerous roles in every single category allowed except SAML and Web identity.

What do I need to do to any of my roles to get then to appear in the drop down on the Permissions? All I see is No Roles???

Please help.

Thanks, David Miller

2 個答案
2
已接受的答案

Hello there,

I understand you would like to create a CloudFormation stack but you are not able to see any IAM role for CloudFormation to use for all operations performed on the stack.

For you to be able to see an IAM role when launching a CloudFormation stack, you must have an IAM service role that trusts the CloudFormation service. Instead of using your account credentials, CloudFormation then uses the role's credentials to create your stack.

The CloudFormation console will only be able to display roles that are created to be assumed by the CloudFormation service. Any other IAM roles not trusting the CloudFormation service will not show up on the drop down since it will not be useful for the service to use it for launching or managing your resources.

Please refer here for more on CloudFormation service role : https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-servicerole.html

Should you continue to encounter challenges please feel free to open a case from the account facing this issue so that you can share more information that would allow AWS Support access to the resources for further troubleshooting.

[+] https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/GettingStarted.Walkthrough.html [+] https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-service.html

AWS
支援工程師
已回答 1 個月前
profile picture
專家
A_J
已審閱 1 個月前
1

Hi

Check your Trusted policy have the cloudofmration "Service": "cloudformation.amazonaws.com"

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs-self-managed.html

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Principal": {
        "Service": "cloudformation.amazonaws.com"
      },
      "Action": "sts:AssumeRole"
    }
  ]
}
profile picture
專家
GK
已回答 1 個月前
profile picture
專家
A_J
已審閱 1 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南