2
我正在嘗試爲Amazon EC2實例創建名爲Name
的新標記併爲主機名賦值。用於創建實例標記的Boto3腳本
下面是我的代碼,並且它與此錯誤消息失敗:
>>> ec2.create_tags(["i-1923943832310"], {"name": "apphostname"})
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.4/site-packages/botocore/client.py", line 157, in _api_call
"%s() only accepts keyword arguments." % py_operation_name)
TypeError: create_tags() only accepts keyword arguments.
>>>