$cmd = 'runInstances'; $result = $client->$cmd(array( 'ImageId' => selectAMI($_POST['dc'], $_POST['os']), 'MinCount' => 1, 'MaxCount' => 1, 'InstanceType' => $_POST['itype'], 'KeyName' => $_POST['key'], 'SecurityGroups' => array($securityGroupName), 'BlockDeviceMappings' => array( 'DeviceName' => '/dev/sda1', array( 'Ebs' => array( 'SnapshotId' => 'snap-2337bd2a', 'VolumeSize' => $disksize, 'DeleteOnTermination' => true, 'VolumeType' => 'gp2', 'Encrypted' => false ) ) ) ));
What is wrong with this, it does not work and I get no error?