Zend_Service_Amazon_Ec2-WindowsInstance.xml 7.0 KB

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