EC2ã«ã€ããŠ(ð°)
ã¯ããã«
ååã«åŒãç¶ããEC2ã«ã€ããŠèªåã¡ã¢ã§ãã
EC2ã®ãããã¯ãŒã¯æ§æ
â¬ïž
ä»ãŸã§AWSã®ã¢ã€ã³ã³ããããšã¯ç¥ããªãã£ãã§ãããDraw.ioã§ãããŸããïŒð
ãããªãã¯ãšãã©ã€ããŒã
VPCå ã«ã¯ãè€æ°ã®ããµããããããäœæããããšãã§ãããããã¯ããããªãã¯ããŸãã¯ããã©ã€ããŒããã®ããããã«èšå®ããããšãå¯èœã§ãã
ãããªãã¯ãµãããã
ãããªãã¯ãµããããã«é 眮ããããªãœãŒã¹ïŒäŸãã°ãEC2ãEDSïŒã¯ãã€ã³ã¿ãŒãããäžããçŽæ¥ã¢ã¯ã»ã¹ããããšãå¯èœïŒ
ã€ãŸããå€éšã®ãŠãŒã¶ãŒãã·ã¹ãã ããé©åãªæš©éãšã¢ãã¬ã¹ã䜿ã£ãŠãã®ãªãœãŒã¹ã«æ¥ç¶ããããšãã§ããŸãããã®ãããªãªãœãŒã¹ã¯éåžžããŠã§ããµãŒããŒãªã©ã®å ¬éããããã®ãµãŒãã¹ã«äœ¿çšãããŸãã
ãã©ã€ããŒããµãããã
ãã©ã€ããŒããµããããã«é 眮ããããªãœãŒã¹ã¯ãã€ã³ã¿ãŒãããããã¯çŽæ¥ã¢ã¯ã»ã¹ã§ããªãïŒ
ãããã®ãªãœãŒã¹ã«ã¢ã¯ã»ã¹ããããã«ã¯ãVPCå éšããã®ã¿ã¢ã¯ã»ã¹ãããããŸãã¯VPNïŒVirtual Private NetworkïŒãå°çšã®ãããã¯ãŒã¯æ¥ç¶ïŒäŸãã°ãAWSã®Direct Connectãªã©ïŒãçµç±ããå¿ èŠããããŸãã
ãã®ãããªãªãœãŒã¹ã¯ãå éšçãªããŒã¿åŠçãããã¯ãšã³ãã®ããŒã¿ããŒã¹ãªã©ãå€éšã«å ¬éããå¿ èŠããªããµãŒãã¹ã«äœ¿ãããŸãã
ENIïŒElastic Network InterfaceïŒ
-
ENIã¯ãAWSã®ã¯ã©ãŠãå ã§äœ¿ãããä»®æ³ã®ãããã¯ãŒã¯ã«ãŒããã§ãã
-
VPCå ã®EC2ã€ã³ã¹ã¿ã³ã¹ã«ã¢ã¿ããïŒENIã䜿çšããŠã€ã³ã¹ã¿ã³ã¹ããããã¯ãŒã¯ã«æ¥ç¶ã§ããããã«èšå®ãããšããæå³ïŒã§ããããããã®ENIã¯ç¹å®ã®ãµããããå ã®IPã¢ãã¬ã¹ãæã¡ãŸãã
-
ã€ã³ã¹ã¿ã³ã¹ã«ã¯ããã©ã«ãã§1ã€ã®ENIãã¢ã¿ãããããŠããŠãå¿ èŠã«å¿ããŠè€æ°ã®ENIãã¢ã¿ããã§ããŸãã
ENIã¯ä»¥äžã®å±æ§ãå«ããããšãã§ããŸã!
- VPC ã® IPv4 ã¢ãã¬ã¹ç¯å²ããã®ãã©ã€ããªãã©ã€ããŒã IPv4 ã¢ãã¬ã¹
- VPC ã® IPv4 ã¢ãã¬ã¹ç¯å²ããã® 1 ã€ä»¥äžã®ã»ã«ã³ããªãã©ã€ããŒã IPv4 ã¢ãã¬ã¹
- ãã©ã€ããŒã IPv4 ã¢ãã¬ã¹ããšã« 1 ã€ã® Elastic IP ã¢ãã¬ã¹ (IPv4)
- 1 ã€ä»¥äžã®ã»ãã¥ãªãã£ã°ã«ãŒã
- 1 ã€ã®ãããªã㯠IPv4 ã¢ãã¬ã¹
- 1 ã€ä»¥äžã® IPv6 ã¢ãã¬ã¹
- MACã¢ãã¬ã¹
- éä¿¡å /éä¿¡å ãã§ãã¯ãã©ã°
- ãããã¯ãŒã¯ã€ã³ã¿ãŒãã§ã€ã¹ã®èª¬æ
ã»ãã¥ãªãã£ã°ã«ãŒã
EC2ã€ã³ã¹ã¿ã³ã¹ã¯ããããªãã¯ïŒãã©ã€ããŒãã®ã©ã¡ãã®ç¶æ ã§ãã£ãŠããã€ã³ã¿ãŒããããä»ã®ãªãœãŒã¹ïŒEC2ã€ã³ã¹ã¿ã³ã¹ãªã©ïŒããç¡å¶éã«ã¢ã¯ã»ã¹ã§ããããã§ã¯ãããŸããïŒ
ã»ãã¥ãªãã£ã°ã«ãŒãã䜿çšããŠãEC2ã€ã³ã¹ã¿ã³ã¹ãžã®ã€ã³ããŠã³ãïŒå ¥ã£ãŠããïŒããã³ã¢ãŠãããŠã³ãïŒåºãŠããïŒãã©ãã£ãã¯ãèš±å¯ãŸãã¯æåŠããã«ãŒã«ãèšå®ã§ããŸãã
圹å²
-
ã»ãã¥ãªãã£ã°ã«ãŒãã¯VPCã«è€æ°å®çŸ©ãå¯èœã§ãã€ã³ã¹ã¿ã³ã¹ã«å¯ŸããŠæ倧5ã€ãŸã§é¢é£ä»ããããã
â»å³å¯ã«ã¯ãã€ã³ã¹ã¿ã³ã¹ã«ã¢ã¿ãããããŠããENIã«é¢é£ä»ãããããã®ENIãä»ããéä¿¡ã®ãã¡ã€ã¢ãŠã©ãŒã«ãšããŠæ©èœããã -
1ã€ã®ã»ãã¥ãªãã£ã°ã«ãŒãã«ã¯ãè€æ°ã®ã¢ã¯ã»ã¹èš±å¯ã«ãŒã«ãèšå®ã§ããã
ïŒæåŠã«ãŒã«ã®èšå®ã¯ãªãã®ã§ãèš±å¯ã«ãŒã«ã«äžèŽããªãéä¿¡ã¯ãã¹ãŠé®æããããïŒ -
ãã€ã³ããŠã³ããã©ãã£ãã¯ããã¢ãŠãããŠã³ããã©ãã£ãã¯ããå¥ã ã«èšå®ã§ãããã
-
æ¥ç¶ãç¶æãããã
ã«ãŒã«ãèšå®
éä¿¡ãå¶åŸ¡ããã«ãŒã«ã®åºãŸããèšå®ããŸãã
äŸãã°ããŠã§ããµãŒããŒã®å Žåã¯ãå©çšè
ãã¢ã¯ã»ã¹ããããã®httpãhttpsã
éçºè
ãã·ã¹ãã éçšè
ããµãŒããŒã«ã¢ã¯ã»ã¹ããå Žåã¯ãSSHãèš±å¯ãããŠããå¿
èŠããããŸãã
ã©ã®ãããã³ã«ãã©ã®ããŒãã«å¯ŸããŠãã©ãããã®ã¢ã¯ã»ã¹ãèš±å¯ããã®ãã
ãã©ããžãã®æ
å ±ã¯ãã»ãã¥ãªãã£ã°ã«ãŒããä»äžãããµãŒããŒïŒENIïŒã察象ãšãªããŸãã
ã€ã³ããŠã³ãã«ãŒã«
ã¢ãŠãããŠã³ãã«ãŒã«
説æ | |
---|---|
ã¿ã€ã | ã»ãã©ãã£ãã¯ãã©ã®çš®é¡ã®ãµãŒãã¹ãŸãã¯ãããã³ã«ã«é¢é£ããŠãããã瀺ã ã»äŸãã°ãHTTPïŒãŠã§ããµãŒããŒãžã®æ¥ç¶ïŒãSSHïŒãªã¢ãŒãã·ã§ã«æ¥ç¶ïŒãªã© |
ãããã³ã« | ã»ãã©ãã£ãã¯ã䜿çšãããããã¯ãŒã¯ãããã³ã«ãæå® ã»äžè¬çãªãããã³ã«ã¯ãTCPãUDPãICMPãªã© |
ããŒãç¯å² | ã»èš±å¯ãããéä¿¡ã®ãããã¯ãŒã¯ããŒãã®ç¯å²ãæå® ã»äŸãã°ãHTTPã¯éåžžããŒã80ããHTTPSã¯ããŒã443ããSSHã¯ããŒã22ãäœ¿çš |
ãœãŒã¹ | ã»èš±å¯ãããéä¿¡ã®ãœãŒã¹ïŒéä¿¡å
ïŒãæå® ã»IPã¢ãã¬ã¹ãIPã¢ãã¬ã¹ç¯å²ããŸãã¯ã»ãã¥ãªãã£ã°ã«ãŒããæå® ã»ã»ãã¥ãªãã£ã°ã«ãŒãã®å Žåã¯ãåãVPCå ã®ãã®ãæå® |
説æ | ã»ãã®ã«ãŒã«ã®ç®çãçšéãèšèŒ |
EC2ã®IPã¢ãã¬ã¹
IPã¢ãã¬ã¹ã®çš®é¡
EC2ã€ã³ã¹ã¿ã³ã¹ãä¿æããIPã¢ãã¬ã¹ã«ã¯ã以äžã®3çš®é¡ããããŸãã
ãã©ã€ããŒãIPã¢ãã¬ã¹
- VPCå éšã§ã®ã¿éä¿¡å¯èœãªIPã¢ãã¬ã¹ã
- AWSå éšã®ãªãœãŒã¹ãä»ã®EC2ã€ã³ã¹ã¿ã³ã¹ããã¢ã¯ã»ã¹ããããã«äœ¿çšãããŸãã
- ãã©ã€ããŒãIPã¢ãã¬ã¹ã¯ã€ã³ã¹ã¿ã³ã¹ãååšããéãå€ãããŸããã
ãããªãã¯IPã¢ãã¬ã¹
- ã€ã³ã¿ãŒãããäžã§ã®éä¿¡ãå¯èœã«ããIPã¢ãã¬ã¹ã
- å€éšããã€ã³ã¹ã¿ã³ã¹ã«ã¢ã¯ã»ã¹ããããã«äœ¿çšãããŸãã
- ãããªãã¯IPã¢ãã¬ã¹ã¯ãã€ã³ã¹ã¿ã³ã¹ã®èµ·åæã«èªåçã«å²ãåœãŠãããã€ã³ã¹ã¿ã³ã¹ãåæ¢ãŸãã¯çµäºãããšãªãªãŒã¹ãããŸãããããã£ãŠãã€ã³ã¹ã¿ã³ã¹ãåæ¢ããŠåèµ·åãããã³ã«ãæ°ãããããªãã¯IPã¢ãã¬ã¹ãå²ãåœãŠãããŸãã
EIPïŒElastic IPïŒ
- EC2ã€ã³ã¹ã¿ã³ã¹ã«ä»äžã§ããåºå®ã®ãããªãã¯IPã¢ãã¬ã¹ã
- IPã¢ãã¬ã¹ãã¢ã«ãŠã³ãã«ããŒã«ããŠããããšãå¯èœã§ãå¿ èŠã«å¿ããŠã€ã³ã¹ã¿ã³ã¹ã®ãããªãã¯IPã¢ãã¬ã¹ãšããŠå©çšã§ããŸãã
- ã€ã³ã¹ã¿ã³ã¹ã®åæ¢ãåèµ·åã«é¢ä¿ãªããäžåºŠå²ãåœãŠããããšã©ã¹ãã£ãã¯IPã¯å€æŽãããŸããã
ãããã«
ãŸãææ¥ãç¶ããæžããŠããäºå®ã§ãïŒ
Discussion