使用Visual Studio工具包,我可以輕鬆創建新的CloudFormation模板並部署和重新部署應用程序,但手動創建模板是一場噩夢。我正在嘗試使用aws命令行創建模板,但這讓我發瘋了!在創建EC2機器後查看HostManager日誌,我發現它使用如下所示的UserData來啓動HostManager並接受重新部署應用程序。AWS VSToolKit .Config文件
AMI:AMI-62a03d0b
169.254.169.254/latest/user-data在這裏
[{
'configuration': {
'fullurl': 'link to the .Config generated file using VS toolkit'
},
'credentials': {
'key': 'some key',
'iv': 'Assming this is the secrect, but what is IV for?'
}
}]['Link to the WaitHandle']
2個問題:
如果我不使用VS工具包,我如何生成由Vs工具包創建的隨機查看的.config文件,它在S3存儲桶中?
什麼是「iv」?和「祕密」一樣嗎?
它看起來像HostManager正在尋找這種類型的格式來啓動HostManager。我收到以下錯誤,那是因爲我將futureurl
指向實際框,但它應該是由VS工具包生成的難以理解的.config文件。
2013-10-16 15:48:55,793 INFO 1 AWSDeploymentHostManager.HostManager - Starting Host Manager
2013-10-16 15:49:06,167 INFO 1 AWSDeploymentHostManager.HostManagerConfig - Wait signal found https://cloudformation-waitcondition-us-east-....
2013-10-16 15:49:06,245 ERROR 1 AWSDeploymentHostManager.HostManager - Unexpected Exception:
ThirdParty.Json.LitJson.JsonException: Invalid character 'h' in input string
非常感謝您的幫助。
你想達到什麼目的?這對於部署應用程序來說看起來太複雜了...... –