Zend_Service_Amazon_Ec2-WindowsInstance.xml 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Reviewed: no -->
  3. <sect1 id="zend.service.amazon.ec2.windows.instance">
  4. <title>Zend_Service_Amazon_Ec2: Windows Instances</title>
  5. <para>
  6. Using Amazon EC2 instances running Windows is similar to using instances
  7. running Linux and UNIX. The following are the major differences between
  8. instances that use Linux or UNIX and Windows:
  9. </para>
  10. <itemizedlist>
  11. <listitem>
  12. <para>
  13. Remote Desktop—To access Windows instances, you use Remote
  14. Desktop instead of SSH.
  15. </para>
  16. </listitem>
  17. <listitem>
  18. <para>
  19. Administrative Password—To access Windows instances the first time,
  20. you must obtain the administrative password using the ec2-get-password
  21. command.
  22. </para>
  23. </listitem>
  24. <listitem>
  25. <para>
  26. Simplified Bundling—To bundle a Windows instance, you use a single command
  27. that shuts down the instance, saves it as an <acronym>AMI</acronym>, and restarts it.
  28. </para>
  29. </listitem>
  30. </itemizedlist>
  31. <para>
  32. As part of this service, Amazon EC2 instances can now run Microsoft Windows Server
  33. 2003. Our base Windows image provides you with most of the common functionality associated
  34. with Windows. However, if you require more than two concurrent Windows users or need to
  35. leverage applications that require <acronym>LDAP</acronym>, Kerberos, RADIUS, or other credential services,
  36. you must use Windows with Authentication Services. For example, Microsoft Exchange Server
  37. and Microsoft SharePoint Server require Windows with Authentication Services.
  38. </para>
  39. <note>
  40. <para>
  41. To get started using Windows instances, we recommend using the <acronym>AWS</acronym> Management Console.
  42. There are differences in pricing between Windows and Windows with Authentication
  43. Services instances. For information on pricing, go to the Amazon EC2 Product Page.
  44. </para>
  45. </note>
  46. <para>
  47. Amazon EC2 currently provides the following Windows <acronym>AMI</acronym>s:
  48. </para>
  49. <itemizedlist>
  50. <listitem>
  51. <para>Windows Authenticated (32-bit)</para>
  52. </listitem>
  53. <listitem>
  54. <para>Windows Authenticated (64-bit)</para>
  55. </listitem>
  56. <listitem>
  57. <para>Windows Anonymous (32-bit)</para>
  58. </listitem>
  59. <listitem>
  60. <para>Windows Anonymous (64-bit)</para>
  61. </listitem>
  62. </itemizedlist>
  63. <para>
  64. The Windows public <acronym>AMI</acronym>s that Amazon provides are unmodified
  65. versions of Windows with the following two exceptions: we added
  66. drivers to improve the networking and disk I/O performance and
  67. we created the Amazon EC2 configuration service. The Amazon EC2
  68. configuration service performs the following functions:
  69. </para>
  70. <itemizedlist>
  71. <listitem>
  72. <para>
  73. Randomly sets the Administrator password on initial launch,
  74. encrypts the password with the user's SSH key, and reports
  75. it to the console. This operation happens upon initial <acronym>AMI</acronym>
  76. launch. If you change the password, <acronym>AMI</acronym>s that are created
  77. from this instance use the new password.
  78. </para>
  79. </listitem>
  80. <listitem>
  81. <para>
  82. Configures the computer name to the internal DNS name. To
  83. determine the internal DNS name, see Using Instance Addressing.
  84. </para>
  85. </listitem>
  86. <listitem>
  87. <para>
  88. Sends the last three system and application errors from the
  89. event log to the console. This helps developers to identify
  90. problems that caused an instance to crash or network connectivity
  91. to be lost.
  92. </para>
  93. </listitem>
  94. </itemizedlist>
  95. <sect2 id="zend.service.amazon.ec2.windows.instance.operations">
  96. <title>Windows Instances Usage</title>
  97. <example id="zend.service.amazon.ec2.windows.instance.operations.bundle">
  98. <title>Bundles an Amazon EC2 instance running Windows</title>
  99. <para>
  100. <methodname>bundle()</methodname> has three require paramters and one optional
  101. </para>
  102. <itemizedlist>
  103. <listitem>
  104. <para><emphasis>instanceId</emphasis> The instance you want to bundle</para>
  105. </listitem>
  106. <listitem>
  107. <para><emphasis>s3Bucket</emphasis> Where you want the ami to live on S3</para>
  108. </listitem>
  109. <listitem>
  110. <para>
  111. <emphasis>s3Prefix</emphasis> The prefix you want to assign to the <acronym>AMI</acronym> on S3
  112. </para>
  113. </listitem>
  114. <listitem>
  115. <para>
  116. <emphasis>uploadExpiration</emphasis> The expiration of the upload policy.
  117. Amazon recommends 12 hours or longer. This is based in nubmer of
  118. minutes. Default is 1440 minutes (24 hours)
  119. </para>
  120. </listitem>
  121. </itemizedlist>
  122. <para>
  123. <methodname>bundle()</methodname> returns a multi-demential array that contains
  124. instanceId, bundleId, state, startTime, updateTime, progress
  125. s3Bucket and s3Prefix.
  126. </para>
  127. <programlisting language="php"><![CDATA[
  128. $ec2_instance = new Zend_Service_Amazon_Ec2_Instance_Windows('aws_key',
  129. 'aws_secret_key');
  130. $return = $ec2_instance->bundle('instanceId', 's3Bucket', 's3Prefix');
  131. ]]></programlisting>
  132. </example>
  133. <example id="zend.service.amazon.ec2.windows.instance.operations.describe">
  134. <title>Describes current bundling tasks</title>
  135. <para>
  136. <methodname>describeBundle()</methodname> Describes current bundling tasks
  137. </para>
  138. <para>
  139. <methodname>describeBundle()</methodname> returns a multi-demential array that
  140. contains instanceId, bundleId, state, startTime, updateTime, progress
  141. s3Bucket and s3Prefix.
  142. </para>
  143. <programlisting language="php"><![CDATA[
  144. $ec2_instance = new Zend_Service_Amazon_Ec2_Instance_Windows('aws_key',
  145. 'aws_secret_key');
  146. $return = $ec2_instance->describeBundle('bundleId');
  147. ]]></programlisting>
  148. </example>
  149. <example id="zend.service.amazon.ec2.windows.instance.operations.cancel">
  150. <title>Cancels an Amazon EC2 bundling operation</title>
  151. <para>
  152. <methodname>cancelBundle()</methodname> Cancels an Amazon EC2 bundling operation
  153. </para>
  154. <para>
  155. <methodname>cancelBundle()</methodname> returns a multi-demential array that
  156. contains instanceId, bundleId, state, startTime, updateTime, progress
  157. s3Bucket and s3Prefix.
  158. </para>
  159. <programlisting language="php"><![CDATA[
  160. $ec2_instance = new Zend_Service_Amazon_Ec2_Instance_Windows('aws_key',
  161. 'aws_secret_key');
  162. $return = $ec2_instance->cancelBundle('bundleId');
  163. ]]></programlisting>
  164. </example>
  165. </sect2>
  166. </sect1>