Amazon AWS SDK Manuel d'utilisateur Page 21

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 26
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 20
config_file = File.join(File.dirname(__FILE__), "config.yml")
AWS.config(YAML.load(File.read(config_file)))
2. Create a new EC2 instance, specifying the service endpoint as follows:
ec2 = AWS::EC2.new(:ec2_endpoint => 'ec2.us-west-1.amazonaws.com')
By default, the service endpoint is ec2.us-east-1.amazonaws.com. For a list of Amazon EC2
service endpoints, go to Regions and Endpoints .
Before running an Amazon EC2 instance, you will need to create an Amazon EC2 security group, authorize
security group ingress, and create a key pair to allow you to log into your instance.
For information about creating a security group, see Create an Amazon EC2 Security Group (p.18).
For information about authorizing security group ingress, see Authorize Amazon EC2 Security Group
Ingress (p. 19).
For information about creating a key pair, see Create a Key Pair (p. 19).
For information about running your Amazon EC2 instance, see Run an Amazon EC2 Instance (p. 20).
Create a Security Group
An Amazon EC2 security group controls traffic through your Amazon EC2 instances, much like a firewall.
If you do not create a security group, Amazon EC2 provides a default security group that allows no inbound
traffic. For more information about security groups, go to Security Group Concepts.
If you want to allow inbound traffic, create a security group and assign a rule to it that allows the ingress
that you want.Then associate the new security group with an Amazon EC2 instance. For more information,
see Authorize Security Group Ingress (p.19).
To create a security group, use the SecurityGroupCollection.create method and pass the name of a
security group you created.The method returns a SecurityGroup object, as follows:
security_group = ec2.security_groups.create('YOUR_SECURITY_GROUP_NAME')
The security group name must be unique within the AWS region in which you initialize your Amazon EC2
client.You must use US-ASCII characters for the security group name and description.
If you attempt to create a security group with the same name as an existing security group, the method
returns an error.
Before starting an Amazon EC2 instance, you next need to authorize security group ingress and create
a key pair to allow you to log into your instance.You can use the returned SecurityGroup object to
authorize or revoke security group ingress and egress.You must also create a key pair to allow you to
log into your instance.
For information about authorizing security group ingress, see Authorize Amazon EC2 Security Group
Ingress (p. 19).
For information about creating a key pair, see Create a Key Pair (p. 19).
Version v1.0.0
18
AWS SDK for Ruby Developer Guide
Create a Security Group
Vue de la page 20
1 2 ... 16 17 18 19 20 21 22 23 24 25 26

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