Zend_Service_Amazon_Ec2-WindowsInstance.xml 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  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 that
  27. 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
  36. credential services, you must use Windows with Authentication Services. For example,
  37. Microsoft Exchange Server and Microsoft SharePoint Server require Windows with
  38. Authentication Services.
  39. </para>
  40. <note>
  41. <para>
  42. To get started using Windows instances, we recommend using the <acronym>AWS</acronym>
  43. Management Console. There are differences in pricing between Windows and Windows with
  44. Authentication Services instances. For information on pricing, go to the Amazon EC2
  45. Product Page.
  46. </para>
  47. </note>
  48. <para>
  49. Amazon EC2 currently provides the following Windows <acronym>AMI</acronym>s:
  50. </para>
  51. <itemizedlist>
  52. <listitem><para>Windows Authenticated (32-bit)</para></listitem>
  53. <listitem><para>Windows Authenticated (64-bit)</para></listitem>
  54. <listitem><para>Windows Anonymous (32-bit)</para></listitem>
  55. <listitem><para>Windows Anonymous (64-bit)</para></listitem>
  56. </itemizedlist>
  57. <para>
  58. The Windows public <acronym>AMI</acronym>s that Amazon provides are unmodified
  59. versions of Windows with the following two exceptions: we added
  60. drivers to improve the networking and disk I/O performance and
  61. we created the Amazon EC2 configuration service. The Amazon EC2
  62. configuration service performs the following functions:
  63. </para>
  64. <itemizedlist>
  65. <listitem>
  66. <para>
  67. Randomly sets the Administrator password on initial launch,
  68. encrypts the password with the user's SSH key, and reports
  69. it to the console. This operation happens upon initial <acronym>AMI</acronym>
  70. launch. If you change the password, <acronym>AMI</acronym>s that are created
  71. from this instance use the new password.
  72. </para>
  73. </listitem>
  74. <listitem>
  75. <para>
  76. Configures the computer name to the internal DNS name. To
  77. determine the internal DNS name, see Using Instance Addressing.
  78. </para>
  79. </listitem>
  80. <listitem>
  81. <para>
  82. Sends the last three system and application errors from the
  83. event log to the console. This helps developers to identify
  84. problems that caused an instance to crash or network connectivity
  85. to be lost.
  86. </para>
  87. </listitem>
  88. </itemizedlist>
  89. <sect2 id="zend.service.amazon.ec2.windows.instance.operations">
  90. <title>Windows Instances Usage</title>
  91. <example id="zend.service.amazon.ec2.windows.instance.operations.bundle">
  92. <title>Bundles an Amazon EC2 instance running Windows</title>
  93. <para>
  94. <methodname>bundle()</methodname> has three require paramters and one optional
  95. </para>
  96. <itemizedlist>
  97. <listitem>
  98. <para><emphasis>instanceId</emphasis> The instance you want to bundle</para>
  99. </listitem>
  100. <listitem>
  101. <para><emphasis>s3Bucket</emphasis> Where you want the ami to live on S3</para>
  102. </listitem>
  103. <listitem>
  104. <para>
  105. <emphasis>s3Prefix</emphasis> The prefix you want to assign to the
  106. <acronym>AMI</acronym> on S3
  107. </para>
  108. </listitem>
  109. <listitem>
  110. <para>
  111. <emphasis>uploadExpiration</emphasis> The expiration of the upload policy.
  112. Amazon recommends 12 hours or longer. This is based in nubmer of
  113. minutes. Default is 1440 minutes (24 hours)
  114. </para>
  115. </listitem>
  116. </itemizedlist>
  117. <para>
  118. <methodname>bundle()</methodname> returns a multi-demential array that contains
  119. instanceId, bundleId, state, startTime, updateTime, progress
  120. s3Bucket and s3Prefix.
  121. </para>
  122. <programlisting language="php"><![CDATA[
  123. $ec2_instance = new Zend_Service_Amazon_Ec2_Instance_Windows('aws_key',
  124. 'aws_secret_key');
  125. $return = $ec2_instance->bundle('instanceId', 's3Bucket', 's3Prefix');
  126. ]]></programlisting>
  127. </example>
  128. <example id="zend.service.amazon.ec2.windows.instance.operations.describe">
  129. <title>Describes current bundling tasks</title>
  130. <para>
  131. <methodname>describeBundle()</methodname> Describes current bundling tasks
  132. </para>
  133. <para>
  134. <methodname>describeBundle()</methodname> returns a multi-demential array that
  135. contains instanceId, bundleId, state, startTime, updateTime, progress
  136. s3Bucket and s3Prefix.
  137. </para>
  138. <programlisting language="php"><![CDATA[
  139. $ec2_instance = new Zend_Service_Amazon_Ec2_Instance_Windows('aws_key',
  140. 'aws_secret_key');
  141. $return = $ec2_instance->describeBundle('bundleId');
  142. ]]></programlisting>
  143. </example>
  144. <example id="zend.service.amazon.ec2.windows.instance.operations.cancel">
  145. <title>Cancels an Amazon EC2 bundling operation</title>
  146. <para>
  147. <methodname>cancelBundle()</methodname> Cancels an Amazon EC2 bundling operation
  148. </para>
  149. <para>
  150. <methodname>cancelBundle()</methodname> returns a multi-demential array that
  151. contains instanceId, bundleId, state, startTime, updateTime, progress
  152. s3Bucket and s3Prefix.
  153. </para>
  154. <programlisting language="php"><![CDATA[
  155. $ec2_instance = new Zend_Service_Amazon_Ec2_Instance_Windows('aws_key',
  156. 'aws_secret_key');
  157. $return = $ec2_instance->cancelBundle('bundleId');
  158. ]]></programlisting>
  159. </example>
  160. </sect2>
  161. </sect1>