2017年9月19日 星期二

[AWS] 一些術語

設定新的 instance 會問網路設定該用哪種?


PlatformIntroduced inDescription
EC2-ClassicThe original release of Amazon EC2  Your instances run in a single, flat network that you share with other customers.
EC2-VPCThe original release of Amazon VPCYour instances run in a virtual private cloud (VPC) that's logically isolated to your AWS account.


* What is the difference between EC2-Classic and EC2-VPC?
* AWS VPC 心得

結論, 選 EC2-VPC

---

剛設完如果沒有 public DNS, 就參考這篇吧
* EC2 instance has no public DNS

---

之後用 ssh 測試可能會連不上, 第一個先修改 security group 的 inbound rules, 將 source 放寬看有沒有改善

然後用 ssh 連可能會失敗, 記得要修改 pem 的權限像這樣

instance:

  1. Open an SSH client. (find out how to connect using PuTTY)
  2. Locate your private key file (ricelee.pem). The wizard automatically detects the key you used to launch the instance.
  3. Your key must not be publicly viewable for SSH to work. Use this command if needed:
    chmod 400 foo.pem
  4. Connect to your instance using its Public DNS:
    ec2-1-2-3-4.ap-northeast-1.compute.amazonaws.com
Example:
ssh -i "foo.pem" ubuntu@ec2-1-2-3-4.ap-northeast-1.compute.amazonaws.com
Please note that in most cases the username above will be correct, however please ensure that you read your AMI usage instructions to ensure that the AMI owner has not changed the default AMI username.


沒有留言: