ãªã³ã¯ã¢ã³ããã¢ãããã¼ã·ã§ã³ ã½ããã¦ã§ã¢ã¨ã³ã¸ãã¢åãç´¹ä»è³æ / Introduction to Link and Motivation for Software Engineers
ãªã³ã¯ã¢ã³ããã¢ãããã¼ã·ã§ã³ ã½ããã¦ã§ã¢ã¨ã³ã¸ãã¢åãç´¹ä»è³æ / Introduction to Link and Motivation for Software Engineers
AWS 㯠Management Console ã API ã§ãã¹ã¦æä½ã§ãã¾ãï¼Direct Connect ãªã©ä¸é¨ä¾å¤ãããã¾ãï¼ããã¼ã¿ã»ã³ã¿ã¼ã®ç©ççãªã»ãã¥ãªãã£ãªã©ã¯ AWS ã責任ãè² ãã¨ããã§ãã¦ã¼ã¶ã¼ã¯ã¾ã£ããæèããå¿ è¦ã¯ããã¾ããã ãã®ä»£ãããOS ãããã«ã¦ã§ã¢ã®ç®¡çãã¢ããªã±ã¼ã·ã§ã³ã®è¨è¨ãå®è£ ãé©åãªæ¨©é管çãªã©ã¯ã¦ã¼ã¶ã¼ã責任ãè² ãã¨ããã§ãã ä»åã¯ãã¾ãåãä¸ããããªããã©ãããã大äºãªæ¨©é管çã«ã¤ãã¦ã¾ã¨ãã¦ã¿ã¾ãããèªåãä»äºã§é¢ãã£ã¦ãããããã¯ãã§æ¨©é管çãè¦ç´ãã¨ãã«èª¿ã¹ããã¨ããã¼ã¹ã«ãã¦ãã¾ããããã£ã¨è¯ããã©ã¯ãã£ã¹ãããã°ãã²æãã¦ãã ããã AWS ã¢ã«ã¦ã³ãã¯ä½¿ããªã æ®æ®µã®éç¨ã§ AWS ã¢ã«ã¦ã³ãã¯ä½¿ãã¾ããã AWS ã¢ã«ã¦ã³ãã¨ã¯ãæåã«ãµã¤ã³ã¢ããããã¨ãã«ä½ãããã¢ã«ã¦ã³ãã§ãã ãã®ã¢ã«ã¦ã³ã㯠Linux ã§è¨ã
ã¤ãå æ¥ãã©ããã®ãµã¼ãããEC2ã®ãµã¼ãã«å¯¾ãã¦Dosã¢ã¿ãã¯ãåãã¾ããã å¥ã«ããç¨åº¦ã®æ»æãåãããã¨èªä½ã¯æ³å®ãã¦ãµã¼ããå ¬éãã¦ãã¾ãããã Apacheå´ã§ã¯mod_dosdetectorã¨ããDosæ»æãããç¨åº¦åããå ´åãæ¤ç¥åºæ¥ãä»çµã¿ãç¨æãã¦ããã®ã§ç¹ã«åé¡ãªããããã¨æã£ã¦ãã¾ããã stanaka/mod_dosdetector · GitHub ãããããã Apacheå´ã§æ¤ç¥ããã¨ãããã¨ã¯ãWEBãµã¼ãã®ãªã½ã¼ã¹ãçµæ§é£ã£ã¡ãããã§ãããâ¦ã å®éãæ®æ®µ5%以å ã§åã¾ã£ã¦ããCPU Usageããæ»æãé£ãã£ã¦ããé50%ãªã¼ãã¼ããã£ã¨ãã¼ã¯ãã¦ãã¾ããã çãä¸ã®è·³ãã¦ãã°ã©ããæ»æåãã¦ãæéã§ããã ãããã«éå¶ã«æ¯éãåºãã¬ãã«ã ã£ãã®ã§ãåºæ¥ãã°WEBãµã¼ãã®åã«ç«ã£ã¦ããELBã«ã¢ã¯ã»ã¹æ¥ãæç¹ã§ã対象ã®æ»æè IPãå¼¾ãã¦æ¬²ããã£ããã§ãã
ååã 次åã¯ãã¼ã¿ãã¼ã¹ã®ä½æãåæè¨å®ãç´åã¿ã¹ã¯ã¨ãã¦æ¿å ¥ãã¦ãããã«WordPressã®è¨å®ãã¡ã¤ã«ã®æ¸ãæããGitHubããWordPressãã¼ãããã¦ã³ãã¼ãããã¨ããã¾ã§ãã£ã¦ã¿ããã¨æãã¾ãã ã¨ãäºã£ã¦ããã®ã§ãããé½åã«ããCapistrano3ã使ã£ã¦AWSã®EC2ã¤ã³ã¹ã¿ã³ã¹ä½æãè¡ã£ãã®ã§ããã®TIPSãæ®ãã¦ããããã¨æãã¾ãã ä»åã¯ããããã¤ç¨ã®EC2ã¤ã³ã¹ã¿ã³ã¹ããå ¬å¼ã®AMIãå©ç¨ãã¦AvailabilityZonesãç°ãªãã¨ãªã¢ã«ããããEC2ã¤ã³ã¹ã¿ã³ã¹ãç«ã¦ã¦ã¿ã¾ããã試é¨çã«ãAMIã¯ææ°ã®ã¤ã³ã¹ã¿ã³ã¹ã¿ã¤ããt2.microãã«å¯¾å¿ãããAmazon Linux AMI 2014.03.2 (HVM)ããå©ç¨ãã¦ãTokyoãªã¼ã¸ã§ã³ã®1aã¨1cã®AvailabilityZoneã«ãããã2å°ãã¤ãåè¨4ã¤ã³ã¹ã¿ã³ã¹ãåæã«ç«ã¦ã¦ã¿ã¾ãã
ã¿ããªã大好ããªã¯ã©ã¦ããã¹ãã£ã³ã°ãµã¼ãã¹ã®Amazon EC2ã§ãããã¤ã³ã¹ã¿ã³ã¹ããã³ãã³ç«ã¦ããè½ã¨ããããã¦ããã¨ããã¹ãåã®ç®¡çãé¢åã«ãªã£ã¦ãã¾ãããããã¨ãã°ããã£ãç«ã¦ãã¤ã³ã¹ã¿ã³ã¹ã«SSHãããï¼ãã¨æã£ãããconsoleãã²ããã¦ããec2-xxx-xxx-xxx-xxx.compute.us-west-1.compute.amazonaws.comããªPublicDNSãã¿ã¼ããã«ã«ã³ãããã¦â¦ã¿ãããªé¢åãªäºããã£ã¦ãã¾ããã¡ã§ãã ãããé¿ããããã«ã¯ã~/.ssh/configããã¡ã«æ´æ°ãããããã¨ããã®ã§ãããããã¯ãªããªãé¢åãªä½æ¥ã§ããã¤ã³ã¹ã¿ã³ã¹ã¯ä¸æ¦Stopãã¦Runãç´ãã¨ãIPãå¤ãã£ã¦ãã¾ãã¾ããããã ããã§ec2sshã®ç»å ´ã§ã ec2sshã¯ãã¤ã³ã¹ã¿ã³ã¹ã®Nameã¿ã°ãããã¹ãåãçæãã¦ã~/.ssh/configã«æ¸ããããã¼ã«
渡辺ã§ãã å®çªãã¿ãªã®ã§ãã¡ãã¡ã«æ å ±ã¯ãããã¨æãã¾ãããAmazon Linux on EC2ã«Postfix+Dovecotã§ã¡ã¼ã«ãµã¼ããæ§ç¯ããã®ã§è¦ãæ¸ãã§ãã æ§æ Amazon Linuxä¸ã®æ§ç¯ãã¾ãã ãã¡ã¤ã³ã¯example.comãã¡ã¼ã«ãµã¼ã㯠mail.example.comãã¡ã¼ã«ã¢ãã¬ã¹ã [email protected] ã¨ãã¾ãã ã¾ããèªè¨¼ã¯Linuxã®ã¦ã¼ã¶èªè¨¼ã¨åãã¦ã¼ã¶å/ãã¹ã¯ã¼ããå©ç¨ããã¨ãã¾ãã ä»åã¯SSLã®è¨å®ã¯è¡ãã¾ããã EC2ã¤ã³ã¹ã¿ã³ã¹ã®æºå Amazon Linuxã§EC2ã¤ã³ã¹ã¿ã³ã¹ãLaunchãã¾ãã ã»ãã¥ãªãã£ã°ã«ã¼ãã®è¨å®ã¨ãã¦ã¯ãSSHãã°ã¤ã³ã§ãããã¨ã¨ãPOP3(110çªãã¼ãï¼åã³ã«SMTPï¼25çªãã¼ãï¼ãéãã¦ããã¾ãã ã¾ããã°ãã¼ãã«IPãå¿ è¦ã¨ãªãã¾ãã®ã§ãElastic IPãå²ãå½ã¦ç½®ãã¾
ã©ãã大ç§ã§ãã EC2ããEã¡ã¼ã«ãéãã¨ããæ¡ä»¶ãããããããã¾ããããããã¦çµæ§ãªç¢ºçã§ãã©ãããã§ããã(æ¶ç®)ããããªè¦ãçµé¨ããã¹ããã©ã¯ãã£ã¹ã¨ãã¦ã¾ã¨ãã¦ã¿ã¾ãããä¸å¿æè¡çãªã¨ããã¯ç¶²ç¾ ããã¤ããã§ãããã¡ã¼ã«ã»ãã¥ãªãã£ã®å°éã§ã¯ãªãã®ã§ãä¸åãééããããã°ãææãã ããã ã§ã¯ãã¡ã¼ã«éä¿¡ãã©ãã«ã®å å¶ã§ãããã¹ãã ã¡ã¼ã«ã¨ãã®å¯¾çãããç´¹ä»ãã¦ããã¾ãã ã¹ãã ã¡ã¼ã«ã¨ã®éããã¤ã¸ã§ã¹ã Eã¡ã¼ã«ã®æ´å²ã¯ãã¹ãã ã¡ã¼ã«ã¨ã®éãã®æ´å²ã¨è¨ãã¾ãã ä¸ç¹å®å¤æ°ã«éä¿¡ãããã¹ãã ã¡ã¼ã«(æªæ¿è«¾ã®åºåã¡ã¼ã«)ã¯ãã¡ã¼ã«åä¿¡è ã«ä¸å¿«ãªæãããããã¨ã¨ãã«ãã¡ã¼ã«ãµã¼ãã¼ã®ã¡ã¼ã«æµéãççºçã«å¢å ãããé·ããã¡ã¼ã«ãµã¼ãã¼ç®¡çè ãæ³£ããã¦ãã¾ããã ãã®ã¹ãã ã¡ã¼ã«ããªãã¨ãæéãããã¨ãç¾å¨ã§ã¯ä¸»ã«ä»¥ä¸ã®ãããªå¯¾çãè¡ããã¦ãã¾ãã 1. éä¿¡ã¡ã¼ã«ãµã¼ãã¼å´ã®ãããã¯ã¼ã¯
AWS Advent Calendar 2014ã®7æ¥ç®ã§ãããã¨ãå ¨é¨ä¿ºAdvent Calendarãéå¬ä¸ã§ãã éç¨çµ¡ã¿ã§ä½ãæ¸ãã¨å®£è¨ããã®ã§ãAWSã®ã¢ã«ã¦ã³ãéç¨ã«ã¤ãã¦æ¸ãã¦ã¿ã¾ãããã¯ããã¯ãæè¡ãããèãæ¹ã®é¢ã§ã®æ´çã§ãã AWSã®ã¢ã«ã¦ã³ãã®ç¨®é¡ AWSã§å©ç¨ããã¢ã«ã¦ã³ãã¯ï¼ç¨®é¡ããã¾ããAWSã¢ã«ã¦ã³ãã¨IAMã¢ã«ã¦ã³ãã§ããAWSã¢ã«ã¦ã³ãã¯ããã¹ã¿ã¼ã¢ã«ã¦ã³ãã¨å¼ã¶ãã¨ããã£ã¦å¤§å ã®ã¢ã«ã¦ã³ãã«ãªãã¾ããAWSã«ãµã¤ã³ã¢ããæã«ä½ããã®ããAWSã¢ã«ã¦ã³ãã§ï¼ã¤ã ãåå¨ãã¾ããããã«å¯¾ãã¦ãIAMã¢ã«ã¦ã³ãã¯ã¦ã¼ã¶ã¢ã«ã¦ã³ãã§ããAWSã®ç®¡çã³ã³ã½ã¼ã«ãããåã ã®ã¦ã¼ã¶åããªã©ã«ä½æãã¾ãã AWSã¢ã«ã¦ã³ãã®åæ±ã«ã¤ã㦠AWSã¢ã«ã¦ã³ãã¯ãå ¨æ¨©éãæã£ã¦ãã¾ããå¼·åãããã¢ã«ã¦ã³ãã§ãæ¥å¸¸ã®éç¨ã«å©ç¨ããã«ã¯å±éºããã¾ããæ¥å¸¸ã®éç¨ã«ã¯ä½¿ããªãã¨ããã®ã
7 æã«éå¬ããããJAWS-UG ä¸é½ç©èª 2014ãã§ãçºè¡¨ããã¨ãããèªåãé¢ãã£ã¦ãããããã¯ãããªã³ãã¬ãã¹ãã AWS ã«ç§»è¡ãã¾ããã JAWS-UG ä¸é½ç©èª 2014 ã«ç»å£ãã¾ãã 移è¡ã㦠2 ã¶æã»ã©çµã¡ã¾ããããç®ç«ã£ãé害ããªãå®å®ããéç¨ãç¶ãã¦ãã¾ããã¹ã©ã¤ãã§ãå°ã触ãã¦ãã¾ãããããã¾ã§ã®ããæ¹ã大ããå¤ããããã«ã±ã«ããªãã¾ããã ä»åã¯ããªã³ãã¬ãã¹ãã AWS ã«ç§»è¡ãã¦å¤ãã 3 ã¤ã®ãã¨ãã¨é¡ãã¦ã社å¤ã«å ¬éã§ããç¯å²ã§ãç´¹ä»ãã¾ãã 稼åä¸ã®ãµã¼ãã«å¤æ´ã¯å ããªã ãããã Immutable Infrastructure ã®èãæ¹ãåãå ¥ãã¾ãããæåã¯æµè¡ãã«ä¹ãããã£ãã¨ããæ°æã¡ã大ããã£ãã®ã§ãããä»ã§ã¯æã®ããæ¹ã«ã¯ããæ»ãã¾ããã ãªã³ãã¬ãã¹ã§ã¯æ¬çªç¨¼åä¸ã®ãµã¼ãã«ãã°ã¤ã³ãã¦ä½ãå¤æ´ããã¨ãããã¨ãå½ããåã«è¡ããã¦ãã¾ãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}