玉川憲 (Ken Tamagawa) - Amazon Web Services’s Presentations on SlideShare
レンタルサーバ専用8000円/月より全然安くスペックも高そうなので。無料使用範囲
利用料金は、この範囲を超えるといきなり増えるので、どんな利用者も必ず注意しておく必要がありそう。いいかえると、
EC2は、マイクロ以外は常に有料。
月15GB以上の送信(アウト)は常に有料。
アカウント登録
クレカ番号や電話認証などのあとメールが届く。
Greetings from Amazon Web Services,
Thank you for creating an Amazon Web Services (AWS) account.
See the AWS web site, http://aws.amazon.com , to learn more about other web services and AWS.
You can manage your account online by visiting http://aws.amazon.com/account .
You need Access Identifiers to make valid web service requests. Please visit the Access Identifiers section of your account to obtain your identifier and to learn more:
http://aws-portal.amazon.com/gp/aws/developer/account/index.html?action=access-key
We're excited to have you on board with Amazon Web Services.
Sincerely,
This message was produced and distributed by Amazon Web Services LLC, 410 Terry Avenue North, Seattle, Washington 98109-5210
利用するサービス
まずは、WEB、DBサーバとして公開をする。
CentOS、固定IP、Apache、MySQLを稼働。
EC2のみで完結するはず。
作業はすべてブラウザGUIなAWS Management Console›Amazon EC2から設定する。
OSの選択と起動 - Instances(INSTANCES)
OSディストリ選択、と思っていたら使えない。
Thank you for signing up for Amazon EC2. Your subscription is being processed.
We will send you an email when you can begin using this service. For most customers this takes only a few minutes, but if additional account verification is required, then processing can take several hours.
Until your subscription is ready, you can learn more about the AWS Management Console.
フォーラムなどにも同様な状態の質問が多数記載されているが明快な答えがない。
問い合わせフォームから、問い合わせを投げておいたら、
画面が表示されるようになった。
I'm sorry for the trouble you're having activating your services. I looked into your account and see that initially we were unable to authorize your credit card needed for the sign up of Amazon Web Services. I've retried your credit card and it authorized successfully. Your service is now active.
Sometimes a credit card will experience one or more failed attempts before it is ultimately authorized. Once you've received the e-mail confirmation of your sign-up, you should have immediate access to the services.
I hope this helps.
OSやプランなどや公開鍵のダウンロードなど進んで、
最終的に以下のようなダイアログが表示されて、SSHログイン可能になる。
Instance: i-e00000 (test) To access your instance using any SSH client Open the SSH client of your choice (e.g., PuTTY, terminal). Locate your private key file, test.pem Use chmod to make sure your key file isn't publicly viewable, ssh won't work otherwise: chmod 400 test.pem Connect to your instance using its Public DNS [ec2-175-111-222-333.ap-northeast-1.compute.amazonaws.com]. Example Enter the following command line: ssh -i test.pem ec2-user@ec2-user@ec2-175-111-222-333.ap-northeast-1.compute.amazonaws.com
__| __|_ ) _| ( / Amazon Linux AMI ___|\___|___| See /usr/share/doc/system-release/ for latest release notes. No packages needed for security; 16 packages available
rootになる
$ sudo su -
固定IPの取得 - Elastic IPs(NETWORK & SECURITY)
Elastic IP でひもづけするのみで、グローバルなIPをインスタンスのプライベートIPと1対1のNAT。
インスタンス再起動後は、プライベートIPが変化してひもが切れるので再度設定でひもづけが必要。
グローバルな固定IPは、インスタンスとは関係なくキープできるのでDNSはそのままで。