【问题标题】:AWS CloudFormation drop down for IAM RoleIAM 角色的 AWS CloudFormation 下拉菜单
【发布时间】:2020-02-27 06:12:22
【问题描述】:

我正在尝试从列表中选择一个 IAM 角色,以便在部署服务器时将其附加到 EC2 实例。但是,我没有看到这样做的选项。

"IAMRole": {
            "Description": "EC2 attached IAM role, must be an existing IAM role which will be attached to EC2 instance.",
            "Type": "AWS::IAM::Role::RoleName",
            "ConstraintDescription": "Must be the name of an existing IAM Role",
        },

我只能选择使用Type: String 并传递默认字符串值。

如果这是错误的或我需要知道的事情,请纠正我。

【问题讨论】:

  • 请发布您的 CF 模板。

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


【解决方案1】:

基于Parameters - AWS CloudFormation没有用于提名 IAM 角色的参数类型

VPC、子网、安全组等有预定义类型,但 IAM 元素没有。

因此,在启动 AWS CloudFormation 堆栈期间选择参数时,无法显示自动填充的 IAM 角色下拉列表。

【讨论】:

    猜你喜欢
    • 2017-06-18
    • 2019-09-28
    • 2017-06-17
    • 2016-04-13
    • 1970-01-01
    • 2020-10-23
    • 2021-12-05
    • 1970-01-01
    • 2019-11-24
    相关资源
    最近更新 更多