Amazon AWS SDK Guide de l'utilisateur Page 42

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 76
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 41
ipPermission.setFromPort(new Integer(22));
ipPermission.setToPort(new Integer(22));
ipPermission.setIpRanges(ipRanges);
ipPermissions.add(ipPermission);
50
try {
// Authorize the ports to the used.
AuthorizeSecurityGroupIngressRequest ingressRequest =
new AuthorizeSecurityGroupIngressRequest("GettingStartedGroup",ip
Permissions);
55 ec2.authorizeSecurityGroupIngress(ingressRequest);
} catch (AmazonServiceException ase) {
// Ignore because this likely means the zone has
// already been authorized.
System.out.println(ase.getMessage());
60 }
You can view this entire code sample in the CreateSecurityGroupApp.java code sample. Note you
only need to run this application once to create a new security group.
You can also create the security group using the AWS Toolkit for Eclipse. Go to the toolkit documentation
for more information.
Step 3: Submitting Your Spot Request
To submit a Spot request, you first need to determine the instance type, Amazon Machine Image (AMI),
and maximum bid price you want to use.You must also include the security group we configured previously,
so that you can log into the instance if desired.
There are several instance types to choose from; go to Amazon EC2 Instance Types for a complete list.
For this tutorial, we will use t1.micro, the cheapest instance type available. Next, we will determine the
type of AMI we would like to use.We'll use ami-8c1fece5, the most up-to-date Amazon Linux AMI available
when we wrote this tutorial.The latest AMI may change over time, but you can always determine the
latest version AMI by following these steps:
1. Log into the AWS Management Console, click the EC2 tab, and, from the EC2 Console Dashboard,
attempt to launch an instance.
2. In the window that displays AMIs, just use the AMI ID as shown in the following screen shot.
Alternatively, you can use the DescribeImages API, but leveraging that command is outside the
scope of this tutorial.
Version v1.0.0
38
AWS SDK for Java Developer Guide
Tutorial: Amazon EC2 Spot Instances
Vue de la page 41
1 2 ... 37 38 39 40 41 42 43 44 45 46 47 ... 75 76

Commentaires sur ces manuels

Pas de commentaire

Samsung LRS35LMGLM manuály

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






Další produkty a příručky pro ne Samsung

Modely Typ Dokumentu
ZDZ30 Uživatelský manuál Samsung ZDZ30 빠른 시작 가이드, 2 stránky
HMX-H205BP Uživatelský manuál Samsung HMX-H200LP 사용자 매뉴얼, 141 stránky
ME83KRQS-3 Uživatelský manuál    Samsung Микроволновая печь Соло ME83KRQS-3, 23 л Инструкция по использованию, 144 stránky
HMX-T10BN Uživatelský manuál   Samsung HMX-T10BN 사용자 매뉴얼, 123 stránky
UA70KU6000K Uživatelský manuál   Samsung 70'' UHD 4K Flat Smart TV KU6000 Series 6 คู่มือการใช้, 16 stránky
SPH-X1000W Uživatelský manuál Samsung SPH-X1000W 사용자 매뉴얼, 152 stránky
DB10D Uživatelský manuál Samsung DB10D 빠른 시작 가이드 [da] , 2 stránky
LT17E2B Uživatelský manuál Samsung LT17E2B 사용자 매뉴얼, 32 stránky
WF80F5E5U2X/AH Uživatelský manuál   Samsung WF80F5E5U2X/AH Hızlı başlangıç ​​Kılavuzu [ja] [zh] , 9 stránky
SAMSUNG ST500 Uživatelský manuál   Samsung ST500 Používateľská príručka, 110 stránky
YP-Q2JAB Uživatelský manuál   Samsung YP-Q2JAB Bruksanvisning, 99 stránky
WF600U0BCWQ Uživatelský manuál   Samsung Стиральная машина BAIKAL2 с цифровым инверторным двигателем, 6 кг Инструкция по использованию [da] , 42 stránky
UN65NU7100F Uživatelský manuál Samsung QLED TV QN65Q7FNAFXKR 163 cm 사용자 설명서, 152 stránky
SM-G925X Uživatelský manuál Samsung SM-G925F دليل المستخدم (Lollipop), 152 stránky
OM46D-W Uživatelský manuál    Samsung OM55D-W الدليل السريع [ja] [zh] , 2 stránky
MA30 Uživatelský manuál Samsung MA30 빠른 시작 가이드, 4 stránky
SRT74HWSGM Uživatelský manuál Samsung SRT74HWSGM 빠른 시작 가이드, 22 stránky
CPN22NF Uživatelský manuál Samsung CPN22NF 사용자 매뉴얼 [ar] , 35 stránky
AR18KSFHBWKN Uživatelský manuál   Samsung AR18KSFHBWKN Benutzerhandbuch, 31 stránky
WT-36Z4HD Uživatelský manuál Samsung WT-36Z4HD 사용자 매뉴얼, 41 stránky