ãããã¯ã©ã¦ãã¨AWSãç§ã®ä½¿ãæ¹ã§æ¯è¼ãã¦ã¿ã
ãããã¯ã©ã¦ããæ°è¦å©ç¨ãéå§ããã®ã§ã試ãã¦ã¿ã¾ãããããã¦ç¾å¨ãç§ã使ã£ã¦ããAmazon Web Services(AWS)ã¨ã³ã¹ããã¡ã¤ã³ã«æ¯è¼ãã¦ã¿ã¾ããã
ç§ã®ã¯ã©ã¦ãã®ä½¿ãæ¹
ç§(EY-Office)ã§ã¯ãç¾å¨éçºç¨ã®ãµã¼ãã¼ã¨ãã¦ã¯ããµã¯ã©VPSã¨AWSã使ã£ã¦ãã¾ãã ãµã¯ã©VPSã¯Redmine, Git repository, Ruby on Railsã®ãã¹ãç¨ãªã©ã«ä½¿ã£ã¦ãã¾ãã
æ¬é¡ã®AWSã®ä½¿ãæ¹ã¯ã
1. Ruby on Railsã¢ããªã®ç¢ºèªç¨ãµã¼ãã¼
åºæ¥ãã¢ããªã®APIæ¥ç¶ãã¹ããã客æ§ã¨ã®ã¬ãã¥ã¼ç¨ãéçºãã®ãã®ã¯ MacãVMWareä¸ã®Linuxã§è¡ãã®ã§APIæ¥ç¶ãã¹ããã客æ§ã¨ã®ã¬ãã¥ã¼ãªã©ã¤ã³ã¿ã¼ãããã«ã¤ãªãã£ã¦ãªãã¨åºæ¥ãªãæã®ã¿ç«ã¡ä¸ãã¦ä½¿ã£ã¦ãã¾ãã
ç¾å¨ãé²è¡ä¸ã®ä»äºã§ã使ã£ãã®ã¯1é±éã»ã©ã§ããããï¼ ã客æ§å´ã®é½åãªã©ãããããã¸ã§ã¯ãèªä½ã¯2ã3ã¶æããã£ã¦ããã®ã§ãããEC2ã¤ã³ã¹ã¿ã³ã¹(ãµã¼ãã¼)ã¯ã»ã¨ãã©ã¯ stoppedç¶æ
ã§ãã
2. Ruby on Railsã®ãããã¤æè²ç¨ãµã¼ãã¼
Ruby on Rails中級者コース ã§å®ç¿ãããããã¤ã®ãããã¤å ãµã¼ãã¼ã
è¬ç¿ã§ãããã¤ãCapistrano ã®å®ç¿ãè¡ãéã®ãããã¤å
ã®ãµã¼ãã¼ã«ä½¿ãã¾ããè¬ç¿ã®éã«ã¯åè¬è
ã®äººæ°åã®å°æ°ãç«ã¡ä¸ãã¦ä½¿ã£ã¦ãã¾ãããããããããã¤ã®è¬ç¿ã¯é·ãã¦ã7ã8æéã§ããçµãã£ããå
¨ã¦ã®EC2ã¤ã³ã¹ã¿ã³ã¹(ãµã¼ãã¼)ã¯æ¶ãã¦ãã¾ãã¾ããå¾ã¯ãµã¼ãã¼ã®ç°å¢ã®ã¤ã¡ã¼ã¸ AMI ãä¿åãã¦ããã®ã¿ã§ãã
ã³ã¹ãã®æ¯è¼
ä¸ã®ï¼ã¤ã®ä½¿ãæ¹ã§ã³ã¹ããæ¯è¼ãã¦ã¿ã¾ãããããµã¼ãã¼ã¯Ruby on Railsãã¾ã¨ãã«åãä¸çªå°ãããµã¼ãã¼ã¨ãããã¨ã§ãAWS ã§ã¯ M1 ã¹ã¢ã¼ã«ã¤ã³ã¹ã¿ã³ã¹ æ±äº¬ãªã¼ã¸ã§ã³ãããã㯠ãã©ã³1 ã§æ¯è¼ãã¾ãã AWS ã¯ãã«å»ºã¦ãªã®ã§ã$1 = 80åã¨ãã¦è¨ç®ãã¾ãã
è¨ç®ã®åæã§ããã
- 1. ã¯ãµã¼ãã¼1å°ã 3ã¶æéåãããµã¼ãã¼ãèµ·åãã¦ããæéã¯1é±é
- 2. ã¯ãµã¼ãã¼5å°ã 8 æéã®ã¿èµ·åãããµã¼ãã¼ã®ã¤ã¡ã¼ã¸ãã£ã¹ã¯ã 3ã¶æä¿æãã¦ããã¨ãã¾ã
ã±ã¼ã¹ | AWS | ããã | AWSå 訳 | ãããå 訳 |
1 | ï¿¥1,440 | ï¿¥1,512 | {ESB} $0.85 * 3 + {EC2} $0.092 * 7 * 24 | {ã¢ã¼ã«ã¤ã} 210 * 3 + {ãµã¼ãã¼} 126 * 7 |
2 | ï¿¥448 | ï¿¥1,260 | {AMI} $0.09 * 3 + {ESB} $0.33 * 5 + $0.85 {EC2} $0.092 * 8 * 5 | {ã¢ã¼ã«ã¤ã} 210 * 3 + {ãµã¼ãã¼} 126 * 1 * 5 |
注) ESB,AMIã®ä¾¡æ ¼ã¯è«æ±æ¸ããå¼ç¨
è¦ã¦ãããéããã±ã¼ã¹1ã¯ã»ã¼åãã§ãããã±ã¼ã¹2ã¯æé課éã®AWSã¯å§åçã«å®ãã§ããããã®ããã«æè²ã®å®ç¿ããçæéã§å¤§éã®CPUã使ã£ãè¨ç®ãªã©ã¯AWSã¯å®ãäºããããã¾ããã
使ãåæ
ã³ã³ã½ã¼ã«ã®ä½¿ãåæã®ææ³ã¯ã
- ä¸ã®ã¹ã¯ãªã¼ã³ã·ã§ããã§åããããã«ãAWSã¯ä»é¢¨ã®UIã§UXããããªãã§ãããããã®æ¹ãAjaxã使ã£ã¦ã¯ããã®ã§ãå¤é¢¨ãªæãã§UXãä»ã²ã¨ã¤ã§ã
- ã¾ãAWSã¯ä¸è¦§ã¨è©³ç´°ãä¸ç»é¢ã§è¡¨ç¤ºåºæ¥ã¦ä¾¿å©ã ã¨æãã¾ãããããã¯å¥ã§ãã
- ãããã®ã³ã³ã½ã¼ã«ã¯ãã«ãã¸ã®ãªã³ã¯ãããã¾ããï¼(å®ã¯å¨ããã©è¦ã¤ãããªãã®ããªï¼) ããã¯ã²ã©ãã¨æãã¾ããæ©æ¥ã«æ¹åãã¦ã»ããã§ããç¹ã«åå¿è ã«ã¯ç¨èªãåãããªãäºããããã«ããé ããã¼ã¸ã«ããã®ã¯è¯ããªãã§ãã
- AWSã¯æ©è½ãè±å¯ã§ãããå¤ãã«ããé¢ãããã¾ããããããã¯ã·ã³ãã«ã§åå¿è ã«ã¯åªããããç¥ãã¾ãããã
- ã³ã³ã½ã¼ã«ã®åå¿é度ããµã¼ãã¼èªä½ã®é度ããããã®æ¹ãæ©ãã¦è»½å¿«ã§ãã
- ããã
çµè«
ãããã¯ã©ã¦ãã¯AWSããå®ãã¨ãããµããã¿ã§ãããæè²å®ç¿ãªã©çæéããèµ·åããªãå ´åã¯AWSã®æ¹ãå®ããªãã¾ããéã«å¸¸æèµ·åãã¦ãããµã¼ãã¹ãªã©ã§ã¯ãããã¯ã©ã¦ãã¯å®ãã§ãã
ã¯ã©ã¦ãããã¼ã³ã¹ãã§ä½¿ãã«ã¯ã¹ãã¬ã¼ã¸ã®ã¹ãããã·ã§ãããã¢ã¼ã«ã¤ããªã©ã¯ã©ã¦ãåºæãªç¥èãå¿
è¦ã«ãªãã¾ããAWSããããå
±ã«æ
å ±ãæä½ãå¿
ãããåãããããã¯ãªãã¨æãã¾ãããã ããå
è¡ãã¦ããAWSã«ã¯ãããä¸ã®æ
å ±ãæ¸ç±ãã³ã³ãµã«ããµãã¼ããå
å®ãã¦ããå¼·ã¿ãããã¾ãã
ãããã¯ã©ã¦ãã«ãéç¨åãæ
å ±ã®å
å®ããã³ã³ã½ã¼ã«ã®ä½¿ãåæã®åä¸ãªã©ãããã°ã£ã¦æ¬²ããã¨æãã¾ãã