Running an Amazon EC2 x86_64 instance with Zend?

I use Zend, a PHP library, to work with Amazon EC2. I created my own image (AMI), this is an x84_64 machine (i.e. Not the default i386 architecture). I want to run it programmatically with PHP using Zend. Zend provides a “run” method to run AMI (see http://framework.zend.com/manual/en/zend.service.amazon.ec2.instance.html ).

However, when I try to run it, I get the following exception:

PHP Fatal error: throw an exception "Zend_Service_Amazon_Ec2_Exception" with the message "The architecture of the requested instance type (i386) does not match the manifest architecture for ami-faa48e8e (x86_64)" in / usr / local / Q / libs / zend / library / Zend / Service / Amazon / Ec 2 / Abstract.php: 273

How to run this AMI and tell Zend that it is x86_64? The documentation says nothing about this.

+3
source share
1 answer

The Zend document states that you need to specify instanceType.

For AMI x86_64, you need to specify the instance type as large, xlarge, and other large types. While i386 AMI requires only m1.small or m1.medium.

See: http://aws.amazon.com/ec2/instance-types/

+4
source

Source: https://habr.com/ru/post/1761295/


All Articles