--
You received this message because you are subscribed to the Google Groups "boto-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to boto-users+unsubscribe@googlegroups.com.
To post to this group, send email to boto-...@googlegroups.com.
Visit this group at https://groups.google.com/group/boto-users.
For more options, visit https://groups.google.com/d/optout.
Thank you Victor.
I have tried to start the "Amazon Linux AMI 2017.03.0 (HVM), SSD Volume Type - ami-c58c1dd3 since it worked on web console, but the last command in this sequence got an error:
import boto3
ec2 = boto3.resource('ec2')
ec2.create_instances(ImageId='ami-c58c1dd3', MinCount=1, MaxCount=1)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/usr/lib/python2.7/site-packages/boto3/resources/factory.py",
line 520, in do_action
response = action(self, *args, **kwargs)
File
"/usr/lib/python2.7/site-packages/boto3/resources/action.py", line
83, in __call__
response = getattr(parent.meta.client,
operation_name)(**params)
File "/usr/lib/python2.7/site-packages/botocore/client.py", line
253, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/usr/lib/python2.7/site-packages/botocore/client.py", line
557, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (InvalidParameterCombination) when calling the RunInstances operation: Non-Windows instances with a virtualization type of 'hvm' are currently not supported for this instance type.
The problem seems related to "hvm" but I'm not sure how is it related to boto.
The problem is that all linux VM on AmazonWS are "hvm".
M
To unsubscribe from this group and stop receiving emails from it, send an email to boto-users+...@googlegroups.com.
That's not true. See "PV" instances here: https://aws.amazon.com/amazon-linux-ami/
Also, the error message itself is helpful in this case: "... currently not supported for this instance type." You can try passing in an instance type instead of using the default.
--Victor