Translate

2010年2月15日月曜日

How to Create a VPC: Amazon VPC Getting Started Guide p23

How to Create a VPC
VPC作成手順

The first object to create is a VPC. When creating the VPC, you simply provide the set of IP addresses you want the VPC to cover. You specify this set of addresses in the form of a Classless Inter-Domain Routing (CIDR) block. For example, 10.0.0.0/24. For information about CIDR notation and what the "/24" means, go to the Wikipedia article about Classless Inter-Domain Routing. The minimum allowed
size of the block is a /28 netmask (16 IP addresses), and the maximum is a /16 netmask (65,536 IP addresses). For more information about things to consider when determining the size of your VPC, see VPC Sizing (p. 40).
まず最初にVPCを作成します。
VPC作成時、VPCでカバーしたいIPアドレス群を指定します。
IPアドレス群指定には、Classless Inter-Domain Routing(CIDR)ブロック形式で指定します(ex. 10.0.0.0/24)。
CIDR書式および"/24"の意味については、WikipediaのClassless Inter-Domain Routingの項を参照してください。
最小のブロックサイズは/28ネットマスク(16個のIPアドレス)です。また、最大ブロックサイズは/16ネットマスク(65,536個のIPアドレス)です。
VPCサイズ決定のための考慮点詳細は、VPC Sizing(p.40)を参照してください。

In this example, we'll create a VPC with CIDR range 10.0.0.0/24. The "/24" means that the VPC will have 256 IP addresses (10.0.0.0 - 10.0.0.255).
本ガイドの解説例示ではVPCをCIDRレンジ10.0.0.0/24で作成します。
"/24"は256個のIPアドレス(10.0.0.0から10.0.0.255まで)を作成できるVPCを作成することを意味しています。

The response includes the unique ID that Amazon VPC assigns to the VPC and the VPC's current state (pending or available).
VPCアサイン時のステータスを示すユニークIDを含め返却します。


To create a VPC
VPC作成

・Use the ec2-create-vpc command.
ec2-create-vpcコマンドを使用する

PROMPT> ec2-create-vpc 10.0.0.0/24

VPC pending 10.0.0.0/24 default

The response includes the unique ID for the VPC (which looks similar to vpc-1a2b3c4d). Copy and paste that value somewhere because you will need it. The response also includes the current state of the VPC (pending). Lastly, the default indicates that the VPC is using the default DHCP options (for more information, see Using DHCP Options (p. 40)).
VPCユニークID(vpc-1a2b3c4dのような表記)を含めて返却値が表示されます。

You need to wait until the VPC's state is available before moving forward. You can get its current state from its description.
次に進むまでにVPCのステータスがabailableになるまで待つ必要があります。


To get a VPC's description
VPC詳細取得

・Use the ec2-describe-vpcs command.
ec2-describe-vpcsコマンドを使用する

PROMPT> ec2-describe-vpcs

VPC available 10.0.0.0/24 default

0 件のコメント:

既存アプリケーションをK8s上でコンテナ化して動かす場合の設計注意事項メモ

既存アプリをK8sなどのコンテナにして動かすには、どこを注意すればいいか..ちょっと調べたときの注意事項をメモにした。   1. The Twelve Factors (日本語訳からの転記) コードベース   バージョン管理されている1つのコードベースと複数のデプロイ 依存関係 ...