嗨,当使用for循环输入实例id时,我遇到了一个错误。下面是我的代码和错误。格式似乎很好,当我手动输入实例id时,它工作得很好。让我知道import boto3ids= [instance.id for instance in ec2_re.instances.all()]
with open('ids.txt', 'w') as
083adb2301e80f09cA client error (InvalidParameterException) occurred when calling the StartTask operation: instanceIdlonger than 36.
instanceId为19个字符(少于36个字符)。