ã¯ããã«ï¼ãæ¨æ¶
ã¯ããã¾ãã¦ï¼2013å¹´4æããä¸éå ¥ç¤¾ãããã¾ãã @mana_cat ãã¨å¹³ã§ããã¨ã³ã¸ãã¢ããã°ã®è¨äºã«ã¤ãã¦ãå®æçã«ã¢ãããã¦ããäºå®ã§ãã®ã§ãã©ãããããããé¡ããã¾ãã
ã¾ãã¯ç°¡åã«èªå·±ç´¹ä»ããã¦é ãã¾ãã1æã®åã©ããè²ã¦ãªããããã¨ã³ã¸ãã¢ããã¦ãã¾ãã1å¹´åã»ã©ãåè²ã¦ã®ããã«ãä»äºãä¼æ¥ãã¦ãã¾ãããä»äºã¨åè²ã¦ã両ç«ãã¤ã¤ããã¨ã³ã¸ãã¢ã¨ãã¦ä¸ã®ä¸ã«è²¢ç®ãã¦ããããæ³ããããã転è·ã決æãç¾å¨ã«è³ãã¾ãã ã¾ãã対å¤æ´»åã¨ãã¦ãåå¼·ä¼ã³ãã¥ããã£ãLinux女åé¨ãã主宰ããããLPI-Japan主å¬ã®ãLPICåå¼·ä¼ãã§ãã¥ã¼ã¿ã¼ã®ãæä¼ããããããã¦ãã¾ãã
趣å³ã¯åçãä¼æ¥ã¯å®¶æã§ã®ãã³ããæ£æ©ããªããåçãæ®ã£ã¦ãã¾ããåºèº«ã¯ãã¾ããã®å½ãçæ¬ã夫ã®åºèº«ã¯åæµ·éãªã®ã§ãåå½ç¬èªã®ã«ã«ãã£ã¼ã«åºæ¿ãåããªãã楽ãã夫婦çæ´»ãéã£ã¦ãã¾ãã(æè¿ã¯ããããããã£ã¦ããæ¹è¨ãå¦ã³ã¾ãã)
è²å ã«ã¤ãã¦ã¯æ¥ã 奮éä¸ã§ããåã©ãã¯ä»æã§1æ7ã¶æã«ãªãã¾ãããç·ã®åã ãããªã®ããã¨ã£ã¦ãå æ°ãã£ã±ãã§ããã¡ãã§ããä¸ç·ã«éã¶ã¨ãã¯å ¨åã§éã¶ããç²ãã¡ããäºããããã©ãåã©ãã®ç¬é¡ã«çãããããã¤ãå æ°ããããã¾ãã
èªè ã®çæ§ã¸
ç§ã®æ å½ããè¨äºã§ã¯ããAWSã®æ´»ç¨ãããã¼ãã«ãã¦ããã©ã¤ãã¼ãã§ã®è³¢ã使ãæ¹ãããã¸ãã¹ã¸ã®å¿ç¨ã¾ã§ãåããããã解説ãã¦ããäºå®ã§ããã¾ã AWSã使ã£ããã¨ãç¡ãèªè ã®æ¹ãããã²æ°è»½ã«èªãã§è²°ããã¨å¬ããã§ãã ãã®ã¨ã³ã¸ãã¢ããã°ãAWSãå§ãããã£ããã«ãªã£ããããã楽ããAWSãæ´»ç¨ã§ããæ å ±æºã«ãªãã¾ããã幸ãã§ãã
ã¡ãªã¿ã«ãç´1å¹´åã¶ãã«Windowsã¦ã¼ã¶ã¼ã«æ»ãã¾ãã(1å¹´åã»ã©ãFedoraã®ã¿ã®ç活・・・)ãã¨ã³ã¸ãã¢ããã°ã®æ å½è¨äºã§ã¯ãã¯ã©ã¤ã¢ã³ãã®ç«¯æ«ã¯Windows 7ã使ããã¨åæã§è§£èª¬ãã¦ããã¾ãã
Amazon Simple Storage Service (Amazon S3)ã§åç管çã®ãæ©ã¿è§£æ±º
åçãã¼ã¿ä¿åå ã®æ©ã¿
åçãæ®ãã®ã大好ããªäººã¯ã以ä¸ã®ãããªç®¡çæ¹æ³ãããã¦ããæ¹ãå¤ãã¨æãã¾ãã以åã®ç§ãããã§ããããã¼ãPCã«åãè¾¼ãã åçããå¤ä»ãã®ãã¼ããã£ã¹ã¯ããå ±æãã£ã¹ã¯ã«å®æçã«ããã¯ã¢ãããåã£ã¦ãã¾ããã
å®ã¯æ©ã¿ããããã§ããåçãæ®ã£ã¦ããèªå® ã§ã¯å®å ¨ãªä¿åå ãç¡ããã§ã・・・ãæè¿ãããã¯ã¢ããç¨ã®SSDã3ã¶æã§å£ãã¦ãã¾ãã¾ãããããæé ã«è²·ããä¾¡æ ¼ã«ãªã£ãã¨ã¯ãããèä¹ æ§ãå¿é ã§ãããã
ã¾ããããã¯ã¢ããå ã®èä¹ æ§ãå¿é ãã¦ãä½éã«ãããã¯ã¢ãããã¦ä¿ç®¡ãã¦ãã¦ããä»åº¦ã¯ãåã©ãããã¼ããã£ã¹ã¯ã¨SSDãç©ã¿æ¨ä»£ããã«ãã¦éã¶ãåé¡ãçºçãã¦ãã¾ããããããé²æ¢æµãå°å ¥ãã¦ããè¸ã¿å°ãå©ç¨ãããã£ããªãæ»ç¥ããã¦ãã¾ãã¾ããåã©ãã®æé·ã¯å¬ããåé¢ãã¡ãã£ã¨å°ã£ã¦ãã¾ãã
ã¯ã©ã¦ãç°å¢ã§ããã¯ã¢ããããæ¹æ³
ãã®ããã«ã大åãªãã¼ã¿ã®ä¿åå ãé¸ã¶ã®ã ã£ãããå®å ¨ãã¤ä¿¡é ¼ã§ããä¿åå ´æã§ãããã¨ã¯å¤ããªãæ¡ä»¶ã§ãããããã¡ãããè²»ç¨ãæãããã
ãããªããªãã«ãã¹ã¹ã¡ï¼ã¯ã©ã¦ãç°å¢ã§åçã管çããæ¹æ³ããããã§ãããã§ããã©ãããã°è¯ãããã©ã®ç¨åº¦è²»ç¨ãããããåãããªã人ã¯å¤ãã¨æãã¾ããåãããªãããå¿é ã§ãããã
ã§ã大ä¸å¤«ããã®ã¨ã³ããªã¼ã§è§£èª¬ãã¦ããã¾ããAmazon Simple Storage Service (以ä¸ãAmazon S3)ãªãã99.999999999% ã®å
ç¢æ§ã¨ã99.99% ã®å¯ç¨æ§
ãæä¾ããããã«è¨è¨ããã¦ãã¾ãã®ã§ãå®å¿ãã¦å¤§åãªãã¼ã¿ãä¿åã§ãã¾ãã
ããã§ãèªå® ã§ã®åçããã¯ã¢ããã®æ©ã¿ã解決ããã¾ãï¼
使ã£ãåã ãï¼åãããããæéä½ç³»
Amazon S3ã®æé¡è²»ç¨ããå®ã¯ãå¾ãªãã§ããAWSã®ãªã½ã¼ã¹ã使ã£ãåã ãã®è«æ±ã ããã¨ã£ã¦ãåãããããããAWSãæ°è¦ã«å©ç¨ãããªãæåã®1å¹´éã¯1ã¶æããã5GBã®ç¡æå©ç¨æ
ãããã®ã§å®å¿ã
ãã¡ããã1å¹´éã®ç¡ææéãéãã¦ãã5GBã®å©ç¨ãªãæé¡ç´1ãã«ã§ãã50GBã®å©ç¨ãªããæé¡4.59ãã«ã«ãªããæ¥æ¬åã«æç®ããã¨ãã ãããé»ãã¾ã«ãã§ã©ã1æ¯åã§ãã
(â»2013å¹´4æ22æ¥ç¾å¨ã®æéä½ç³»ãããå©ç¨ç¶æ³ããå¤åãããã¾ãã®ã§ãç®å®ã¨ãã¦åèã«ãã¦ãã ããã)
ã¡ãªã¿ã«ãä»åã¯åçã®ç®¡çãä¾ã«ãã¦ãã¾ãããAmazon S3ã§ã¯åç以å¤ã®ãã¼ã¿ãä¿åã§ãã¾ãã®ã§ãæ¥å¸¸ã®ããã¯ã¢ããã«ãæ´»ç¨ã§ãã¡ããã¾ãï¼ã¾ããAmazon S3ã®åæè¨å®ã§ã¯ãã¢ãããã¼ãããåçãã¼ã¿ãªã©ã¯å ¬éãããªãè¨å®ã«ãªã£ã¦ãã¾ãã®ã§ããã©ã¤ãã¼ãã®åçããã®ä»ãã¡ã¤ã«ãå®å¿ãã¦ã¢ãããã¼ããããã¨ãã§ãã¾ãã
ãã®ããã«è³ããå°½ãããã®S3ããã®æ©è½ã¯ããã©ã¤ãã¼ãã§ããã¸ãã¹ç¨éã§ãååã«çºæ®ã§ãã¾ããç¡æå©ç¨æ ã¯1å¹´éãããã®ã§ãã¾ãã¯ã試ãã§Amazon S3ãå§ãã¦ã¿ã¾ãããï¼
Amazon S3ã®è©³ç´°ãªæéãã©ã³ã¯ã以ä¸ã®AWSå ¬å¼ãµã¤ããã確èªãã ããã¾ãã
- ç¡æå©ç¨æ ã®è©³ç´° (AWSå ¬å¼ãµã¤ã)
- Amazon S3 æé表 (AWSå ¬å¼ãµã¤ã)
- AWS ç°¡æè¦ç©ããã¼ã«(AWSå ¬å¼ãµã¤ããè±èª)
Amazon S3ãå§ãã¦ã¿ãã
AWSã¢ã«ã¦ã³ããæã£ã¦ããªãæ¹ã¯ãAWS å ¬å¼ãµã¤ããåç §ããã¢ã«ã¦ã³ããä½æãã¦ã¿ã¾ãããã
æ¢ã«ã¢ã«ã¦ã³ããæã£ã¦ããæ¹ã¯ãAWS ã³ã³ã½ã¼ã«ç»é¢ãéãã¦ãAmazon S3ã®ãµã¼ãã¹ãé¸æãã¦ã¿ã¾ãããã
Amazon S3ã®ã³ã³ã½ã¼ã«ç»é¢ãéããããåçãªã©ã®ãã¼ã¿ãæ ¼ç´ããããã±ããããä½æããããããCreate Bucketããé¸æãã¾ãã
ãã±ããåã«èªåã®ä»ãããåå(ä»åã¯"mana-cat"ã¨ãã¦ãã¾ã)ãå ¥åãããCreateããé¸æã
"mana-cat"ãã±ãããã§ãã¾ããï¼æ©éãããã«ãæ°ã«å ¥ãã®åçãã¢ãããã¼ããã¦ããã¾ãããããUploadããã¿ã³ãé¸æãã¾ãã
ãAdd Filesããé¸æãã»ã»ã»
ã¢ãããã¼ããããåçãé¸ãã§ããã¾ããããCtrlãã¼ãæ¼ããªããè¤æ°é¸æããäºãã§ãã¾ãã
ãStart Uploadããé¸æããã¨ã¢ãããã¼ãéå§ã§ãã
ã¢ãããã¼ããå®äºãã¾ããï¼
åçãããã«ã¯ãªãã¯ãã¾ãã¯å³ã¯ãªãã¯ãã¦ãOpenããé¸ã¶ã¨ãåçã表示ãããã¨ãã§ãã¾ãã
åçã®åé¤
ãåçãééãã¦ã¢ãããã¼ããã¡ãã£ãï¼ããªã©ãä¸è¦ãªåçãã¼ã¿ãåé¤ãããæãããããããã¾ããããããªã¨ãã¯ãåé¤ãããåçãã¯ãªãã¯ãã¦é¸æãããActionsãâãDeleteãã§åé¤ã§ãã¾ãã
社å ã§åçé¨ãä½ã£ã¦ãAmazon S3ã§åçãå ±æï¼
Amazon S3ããã£ã¨ä¾¿å©ã«ä½¿ã£ã¦ã¿ã¾ãããã
社å ã§åçé¨ãçµæããAmazon S3ãå©ç¨ãã¦æ´»åãåºãã¦ããæåã®ã¹ãã¼ãªã¼ãä¾ã«ãã¦ã解説ãã¦ããã¾ãã
- 社å ã§åçé¨ãçµæãé¨å¡ãããããå¢ãã¦ããäºå®ï½¥ï½¥ï½¥âª
- åçé¨å¡ã¯ãé¨å¡å°ç¨ã®Amazon S3ã®ãã±ããã«ã¯ã¢ã¯ã»ã¹ã§ãã¦ããã®ä»ã®ãã±ããã«ã¯ã¢ã¯ã»ã¹ã§ããªãããã«ããã
- 社å ããã®ã¿ã¢ã¯ã»ã¹ã§ããããã«ãã¦ãä»ããã®ã¢ã¯ã»ã¹ã¯é®æããã(ã¢ã¯ã»ã¹å ã®IPã¢ãã¬ã¹ãå¶éãã)
- ç°¡åã«ã¢ãããã¼ãã§ãããã¼ã«ãCloudBerryãã使ããã
ä¸è¨ã®æ¹æ³ãã次åæ´æ°åãAmazon S3ã§å§ããåç管ç â å¿ç¨ç·¨ãã§è§£èª¬ãããã¾ããã楽ãã¿ã«(â©Â´âï½)â©