我试图使用cloudformation使用角色创建具有AWS托管权限的角色,但我得到了一个错误:Cannot attach a Service Role Policy to a Customer Role代码片段: Type: AWS::IAM::Role AssumeRolePolicyDocument:: Versi
通过cloudformation添加一个IAM角色,其中我想添加一个信任策略,这样,来自另一个aws帐户的另一个IAM角色(arn:aws:iam:123456789: role /otherrole)可以承担我的角色。AWSTemplateFormatVersion: "2010-09-09" SomeRole: