Translate

2010年2月12日金曜日

Telling the Tools Who You Are: AmazonVPC Getting Started Guide p19

Telling the Tools Who You Are
だれが使用しているかの問い合わせについて


The command line tools need access to the private key and X.509 certificate you generated after signing up for Amazon EC2 (for more information, see How to Get Your Credentials (p. 17)).
コマンドラインツールは、Amazon EC2 へのサインアップ後生成した秘密鍵とX.509証明書へのアクセスが必要です(詳細は、How to Get Your Credentials(17ページ)参照のこと)。


Because you can have more than one AWS account, you need to identify yourself to the command line tools so they know which credentials to use for requests. It's tedious to provide this information on the command line every time you invoke the tools. So, we recommend you set up two environment variables that point the tools to the relevant credentials. The environment variable EC2_PRIVATE_KEY should reference your private key file, and EC2_CERT should reference your X.509 certificate.
複数AWSアカウントを保有することが可能なため、コマンドラインツールを使って要求を行うたびにどの認証情報を使用するか指定する必要があります。
実行するごとに認証情報をしているのは面倒なので、ツールに関連する認証情報を示す2つの環境変数の設定を勧めます。環境変数EC2_PRIVATE_KEYは秘密鍵ファイルパスを指定し、EC2_CERTにはX.509証明書ファイルパスを指定します。


On Linux and UNIX, you can set these environment variables as follows.
Linux/UNIX環境では、以下のように環境変数を設定します。

$ export EC2_PRIVATE_KEY=~/.ec2/pk-HKZYKTAIG2ECMXYIBH3HXV4ZBZQ55CLO.pem
$ export EC2_CERT=~/.ec2/cert-HKZYKTAIG2ECMXYIBH3HXV4ZBZQ55CLO.pem

On Windows the syntax is slightly different.
Windows上では文法が異なります。

C:\> set EC2_PRIVATE_KEY=c:\ec2\pk-HKZYKTAIG2ECMXYIBH3HXV4ZBZQ55CLO.pem
C:\> set EC2_CERT=c:\ec2\cert-HKZYKTAIG2ECMXYIBH3HXV4ZBZQ55CLO.pem

You're ready to start using Amazon VPC.
これでAmazonVPC利用準備が整いました。

0 件のコメント:

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

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