【问题标题】:How to create an IamInstanceProfile in CloudFormation ::LaunchConfiguration如何在 CloudFormation 中创建 IamInstanceProfile ::LaunchConfiguration
【发布时间】:2014-03-27 02:32:06
【问题描述】:

我有一个 CloudFormation 脚本(由 Edwin 提供)CloudFormationScript

IamInstanceProfile = aws:iam::093026445011:user/qsw.internal

来自脚本

...

"IamInstanceProfile" : {
                "Ref" : "IamInstanceProfile"
            },

...

当我运行它时,我得到:

Invalid IamInstanceProfile: arn:aws:iam::093026445011:user/qsw.internal

The Type is

AWS::AutoScaling::LaunchConfiguration

Logical ID

WebAsSpotLaunchConfiguration

请参阅有关此字段的文档: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig.html#cfn-as-launchconfig-iaminstanceprofile

我要求分配的帐户拥有很多权限,并且我使用了 ARN ID (aws:iam::093026445011:user/qsw.internal)。

我应该注意哪些方面来解决这个问题?

【问题讨论】:

  • 我发现问题可能与我使用的角色有关。我改变了角色,它现在运行了。一旦我发现这个角色有什么问题,我会更新帖子

标签: amazon-web-services amazon-cloudformation amazon-iam


【解决方案1】:

尝试启用调试日志,例如在 boto - python aws sdk 中,他们提供了这个选项

ec2 = boto.connect_ec2(debug=2)

这将启用 HTTP 请求的详细日志记录

【讨论】:

    【解决方案2】:

    此参数采用控制台中的 IAM 角色的角色名称 --> https://console.aws.amazon.com/iam/home?#roles

    【讨论】:

    猜你喜欢
    • 2019-05-20
    • 2015-07-21
    • 2016-09-02
    • 2021-11-09
    • 2020-07-10
    • 2017-07-16
    • 1970-01-01
    • 2014-02-18
    • 2019-04-27
    相关资源
    最近更新 更多