0
我正在寻找一种方式,列出在Cloudformation模板的现有IAM角色以类似的方式,以上市说EC2密钥对。下面是什么,我既EC2密钥对和IAM角色试图然而Cloudformation抛出一个错误,指出“角色名”不存在的例子。我怎样才能创建Cloudformation模板参数IAM角色下拉
"KeyName": {
"Description" : "Choose a Key Pair that is available in this region",
"Type": "AWS::EC2::KeyPair::KeyName",
"ConstraintDescription": "Must be the name of an existing EC2 Key Pair"
},
"ServiceRole": {
"Description" : "Choose an IAM Role that is available in this region",
"Type": "AWS::IAM::Role::RoleName",
"ConstraintDescription": "Must be the name of an existing IAM Role"
},
Screenshot of Cloudformation Interface 任何想法,如果这是可能实现的?
太好了!感谢您的联系和详细的解答@马特 - 豪泽 –