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 任何想法,如果這是可能實現的?
太好了!感謝您的聯繫和詳細的解答@馬特 - 豪澤 –