Amazon AWS SDK Guida Utente Pagina 31

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 73
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 30
new RunInstancesRequest();
runInstancesRequest.withImageId("ami-4b814f22")
.withInstanceType("m1.small")
.withMinCount(1)
.withMaxCount(1)
.withKeyName(“YourKeyName”)
.withSecurityGroups("YourSecurityGroupName");
You must specify a public or privately-provided AMI. A large selection of Amazon-provided public
AMIs is available for you to use. For a list of public AMIs provided by Amazon, go to Amazon Machine
Images. Ensure that the specified image ID exists in the region in which your client was created.
The instance type must match the AMI you want to run. For 64-bit architecture, you cannot specify
an instance type of m1.small. For more information on instance types, go to Instance Families and
Types.
You must specify a minimum number and a maximum number of instances to launch. If the specified
number of instances is greater than the number of instances you are authorized to launch, no instances
are launched. The specified number of maximum instances must be no greater than the maximum
number allowed for your account; by default, the maximum number of instances is 20. If there are
fewer instances available than the maximum number specified, the largest possible number of images
are launched.
Ensure that the specified key name and security group exists for the region in which your client was
created.
2. Pass the request object into the runInstances method. The method returns a RunInstancesResult
object, as follows:
RunInstancesResult runInstancesResult =
amazonEC2Client.runInstances(runInstancesRequest);
After you have created your Amazon EC2 instance, you can log onto the AWS Management Console to
check the status of the instance.
Once your Amazon EC2 instance is running, you can remotely connect to it using your key pair. For
information about connecting to your instance, see Connect to Your Amazon EC2 Instance (p. 28).
Connect to Your Amazon EC2 Instance
Before connecting to your Amazon EC2 instance, you must ensure that the instance’s SSH/RDP port is
open to traffic.You must also install an SSH/RDP client on the computer you are accessing your instance
from.You will need your Amazon EC2 instance ID and the private key from the key pair you created. For
information on how to obtain the private key, see Create a Key Pair (p. 26).
If you did not authorize ingress for the security group that your instance belongs to, you will not be able
to connect to your instance. By default, Amazon EC2 instances do not permit inbound traffic. For more
information on authorizing security group ingress, see Authorize Security Group Ingress (p. 25).
For information on how to connect to your Amazon EC2 instance, go to Connecting to Instances in the
Amazon Elastic Compute Cloud User Guide.
Version v1.0.0
28
AWS SDK for Java Developer Guide
Starting an Amazon EC2 Instance
Vedere la pagina 30
1 2 ... 26 27 28 29 30 31 32 33 34 35 36 ... 72 73

Commenti su questo manuale

Nessun commento

Zanussi ZK630L manuály

Uživatelské manuály a uživatelské příručky pro Sporáky Zanussi ZK630L .
Poskytujeme 1 manuály pdf Zanussi ZK630L ke stažení zdarma podle typů dokumentů: Uživatelský manuál






Další produkty a příručky pro Sporáky Zanussi

Modely Typ Dokumentu
ZKT 623LX ZANUSSI Uživatelský manuál     ZANUSSI ZKT 623LX ZANUSSI Brugermanual, 108 stránky
ZA600F Uživatelský manuál   ZANUSSI ZA600F Benutzerhandbuch, 16 stránky
ZEI6740BBA Uživatelský manuál   ZANUSSI ZEI6740BBA User Manual, 16 stránky
ZAV6046XBA Uživatelský manuál   ZANUSSI ZAV6046XBA Benutzerhandbuch, 12 stránky
ZEV6140NBA Uživatelský manuál   ZANUSSI ZEV6140NBA User Manual, 16 stránky
ZC6675N Uživatelský manuál   ZANUSSI ZC6675W Benutzerhandbuch, 24 stránky
ZIT64X Uživatelský manuál      ZANUSSI ZIT64X Handleiding, 64 stránky
ZGG62417XA Uživatelský manuál      ZANUSSI ZGG62417XA Handleiding, 40 stránky
ZGO62414BA Uživatelský manuál   ZANUSSI ZGO62414BA User Manual, 16 stránky
ZGG62414WA Uživatelský manuál   ZANUSSI ZGG62414WA User Manual, 16 stránky
ZEV6940XBV Uživatelský manuál   ZANUSSI ZEV6940XBV User Manual, 12 stránky
ZEL6640FBA Uživatelský manuál   ZANUSSI ZEL6640FBA User Manual, 20 stránky
ZEV8646XBA Uživatelský manuál   ZANUSSI ZEV8646XBA User Manual, 16 stránky
ZGL642TX Uživatelský manuál   ZANUSSI ZGL642TX User Manual, 16 stránky
ZAE6040XA Uživatelský manuál   ZANUSSI ZAE6040XA Benutzerhandbuch, 12 stránky
ZEV8646XBA Uživatelský manuál   ZANUSSI ZEV8646XBA User Manual [de] , 16 stránky
ZK661X ZANUSSI Uživatelský manuál   ZANUSSI ZK661X ZANUSSI Benutzerhandbuch [it] , 24 stránky
ZA630F Uživatelský manuál   ZANUSSI ZA630F Benutzerhandbuch, 16 stránky
ZEV6940FBA JO4 Uživatelský manuál   ZANUSSI ZEV6940FBA JO4 User Manual [en] , 12 stránky
ZKT656 LX Uživatelský manuál   ZANUSSI ZKT656 LX Handleiding [it] , 32 stránky