0
如何將連接對象連接到區域?我可以創建一個連接。我可以連接到一個地區。如何連接對象鏈接到一個區域Python和boto自動縮放 - 如何連接到區域
region = 'ap-southeast-2'
conn = AutoScaleConnection(aws_access_key_id, aws_secret_access_key)
autoscale = boto.ec2.autoscale.connect_to_region(region)
我在哪裏把aws_access_key_id,aws_secret_access_key? – Tampa
我編輯了要顯示的代碼示例。基本上,在區域參數之後,可以包含爲類構造函數定義的任何參數。 – garnaat
TypeError:connect_to_region()只需要1個參數(給出3個參數) – Sirex