我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

AWS PHP SDK - 实例ID“i-xxxxxxx”不存在[关闭]

I use the PHP AWSSDK and cannot stop an instance.

I can get a list of the instances and parse the data. This instance is in the list, but when I try to stop it I get "The instance ID xxxx does not exist. It is a win2008 server.

TIA

Discovered I needed to set the the region host name if the server is not in the default zone.

$ec2->set_hostname($info->region_endpoint);

Then starting/stopping worked without errors $instanceAction = $ec2->stop_instances($instanceId) ;

近期文章

  • 在哪里可以找到有关Laravel 4和AngularJS应用程序结构的详细资源?
  • 使用'OR'的CakePHP SQL操作
  • PHP数组内存使用情况
  • 如果我在数据库中有php可以使用吗?
  • html标签在Microsoft Word文档中不起作用
  • 使用mod_rewrite模式匹配errorDocument规则
  • 使用动态no字段和行将数据报告导出到excel的功能
  • 如何将文字加密隐写成音乐符号?求大神指导!
  • 代码运行后为什么老是显示重复呢?
  • 我写的快速排序算法,大佬们帮我看看有啥问题吗,感谢
  • 检查接口类型是否为PHP中的CLI
  • PHP表单进程错误
  • Ajax没有调用回调函数
  • 与PHP函数等效的Javascript函数[重复]
  • Twitter app-only auth适用于localhost,但不适用于服务器
  • 通过Web界面自定义PDF
  • 变量中缀为postfix的前缀
  • 无法在嵌入式脚本中设置cookie
  • 使用PHP PDO解码后,将整个JSON插入数据库
  • 设置区域设置 - 俄语

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华