- ä¼å¡éå®
- 2021/04/23 æ²è¼
Amazon S3ã¨ã¯ä½ãï¼é¢é£ç¨èªã¨æä½ã»æ©è½ä¸è¦§ããããã解説
é£è¼ï¼ããããå¦ã¶AWSå ¥é
- ãããã¨ããããã¾ãï¼
- ãããï¼ããè¨äºä¸è¦§ãã¿ã
第1åï¼AWSå ¥é
第2åï¼Amazon EC2å ¥é
第3åï¼Amazon VPCå ¥é
第4åï¼Amazon S3å ¥é
第5åï¼Amazon RDSå ¥é
第6åï¼AWS Lambdaå ¥é
Amazon S3ã¨ã¯ä½ãã3ã¤ã®ç¹é·
ãAmazon Simple Storage Service (以ä¸ãS3)ã¯ãAWSãæä¾ãããªãã¸ã§ã¯ãã¹ãã¬ã¼ã¸ãµã¼ãã¹ã§ããããªãã¸ã§ã¯ãã¹ãã¬ã¼ã¸ã¨ã¯ãå¾æ¥ã®ãã¡ã¤ã«ã¹ãã¬ã¼ã¸ã®ãããªãã£ã¬ã¯ããªæ§é ã¯æããããªãã¸ã§ã¯ããã¼ã«ãããã¼ã¿ãä¸æã«ç¹å®ãã¦ãã¼ã¿ã®åºãå ¥ãããã¦ç®¡çãè¡ãã¹ãã¬ã¼ã¸ã§ããããã¹ããã¼ã¿ãåç»ãé³å£°ãã¡ã¤ã«ã¨ãã£ããæ§é æ å ±ãæããªããã¾ãã¾ãªç¨®é¡ã®ãã¼ã¿ãæ ¼ç´ã§ãã¾ãã
ãS3ã«ã¯ä»¥ä¸ã®ç¹é·ãããã¾ãã
容éç¡å¶é
ããªãã¸ã§ã¯ãï¼å¾è¿°ï¼ããã5TBã¨ããå¶ç´ã¯ãããã®ã®ããªãã¸ã§ã¯ãæ°ããã¼ã¿å®¹éã®å¶éã¯ããã¾ããã
é«ãèä¹ æ§
ãæ¨æºã§ã3ã¤ä»¥ä¸ã®ã¢ãã¤ã©ããªãã£ã¾ã¼ã³ï¼ä»¥ä¸ãAZï¼ã«ãã¼ã¿ãã³ãã¼ããã¾ããAZã¯1ã¤ä»¥ä¸ã®ãã¼ã¿ã»ã³ã¿ã¼ããæ§æããã¦ãããAZéã¯ç©ççã«é¢ãã¦ããããããã¼ã¿ã»ã³ã¿ã¼é害ã¨ãã£ã大ããªé害ã«ãèãããã¨ãã§ãã¾ããAWSã§ã¯99.999999999ï¼ ï¼9Ã11ãã¤ã¬ãã³ãã¤ã³ï¼ã¨ããé«ãèä¹ æ§ã示ãã¦ãã¾ãã
ä½ã³ã¹ã
ãæ±äº¬ãªã¼ã¸ã§ã³ãæ¨æºã®ã¹ãã¬ã¼ã¸ã§ä¿åæéã¯1ãµæããã0.025USD/1GBã¨ãªã£ã¦ãã¾ãï¼2021å¹´4ææç¹ï¼ã1TBã®ãªãã¸ã§ã¯ããæ ¼ç´ããã¨ãæããã25USDã¨ãªãã¾ããå¾ã»ã©ç´¹ä»ããã¹ãã¬ã¼ã¸ã¯ã©ã¹ã®å¤æ´ãè¡ãã¨ãããã«å®ãæéã§ãã¼ã¿ä¿åãå¯è½ã§ãããã®ä»ããã¼ã¿ã®ã¢ãããã¼ããåãåºãã«ã¤ãã¦ã¯ãããã«æéãçºçãã¾ãã
ããªã¬ã¼ã·ã§ãã«ãã¼ã¿ãã¼ã¹ï¼RDBï¼ãµã¼ãã¹ã§ããAmazon Auroraã®ã¹ãã¬ã¼ã¸æéã¯0.12USD/1GBã¨ãªã£ã¦ãããS3ã¯ãã®1/5ã»ã©ã®ã¹ãã¬ã¼ã¸ã³ã¹ãã¨ãªã£ã¦ãã¾ãã
ãé«ãæ¡å¼µæ§ãèä¹ æ§ãä½ã³ã¹ãã¨ããç¹æ§ãããS3ã¯ä»ã®AWSãµã¼ãã¹ãããå¤ã使ããã¾ãã
ããã¨ãã°ãååç´¹ä»ããAmazon VPCã®ãã©ãã£ãã¯ç¶æ³ãä¿åããVPC Flow Logsããã³ã³ãã³ãé ä¿¡ãããã¯ã¼ã¯ï¼CDNï¼ãµã¼ãã¹ã§ããAmazon CloudFrontã®ã¢ã¯ã»ã¹ãã°ãªã©å種ãã°ã®ä¿åå ´æã¨ãã¦S3ã使ç¨ããã¾ãããã®ã»ãã«ããããã¯ã¢ãããã¼ã¿ã®ä¿åãæ©æ¢°å¦ç¿ãµã¼ãã¹ã®ã¤ã³ãããæ å ±ã®æ ¼ç´å ´æãªã©å¹ åºãç¨éã§ä½¿ç¨ããã¾ãã
Amazon S3ã®éè¦ç¨èªï¼ãã±ããããªãã¸ã§ã¯ãâ¦ï¼
ãS3ã使ç¨ããä¸ã§éè¦ãªç¨èªã説æãã¾ããâãã±ãã
ããªãã¸ã§ã¯ãï¼ãã¼ã¿ï¼ãä¿åããå ´æã®ãã¨ã§ããå©ç¨è ã¯ä½æãããã±ããã«ãªãã¸ã§ã¯ããæ ¼ç´ãã¾ãããã±ããã«ä½¿ç¨ããååã¯ãã°ãã¼ãã«ã§ä¸æã§ããå¿ è¦ãããã¾ããã¤ã¾ãããtest-bucketãã¨ããååã§ãã±ãããä½æããããä»ã®å©ç¨è ãå«ããå ¨ãªã¼ã¸ã§ã³å ¨AWSã¢ã«ã¦ã³ãã§åãååã®ãã±ããã¯ä½æã§ãã¾ããã
âãªãã¸ã§ã¯ã
ããã±ããã«æ ¼ç´ããããã¼ã¿æ¬ä½ã§ãããã±ããå ã®ãªãã¸ã§ã¯ãæ°ã¯ç¡å¶éã«ä¿åã§ãã¾ããã1ãªãã¸ã§ã¯ãã®æ大ãµã¤ãºã¯5TBã¾ã§ã¨ããå¶ç´ãããã¾ãã
âãã¼
ãã/ãã¨ããæåãåºåãè¨å·ã«ãã¦ãAWSã®ããã¸ã¡ã³ãã³ã³ã½ã¼ã«ä¸ã§ã¯ãã©ã«ãæ§é ã®ããã«ãªãã¸ã§ã¯ãã表示ã§ãã¾ãã
Amazon S3ã®æä½ï¼GETãPUTâ¦ï¼
ãS3ã«ã¯æä½ç¨ã®APIãç¨æããã¦ããããããå¼ã³åºããã¨ã«ããS3ãã±ããå ã®ãªãã¸ã§ã¯ããæä½ãã¾ãã主è¦ãªæä½ãããã¤ãç´¹ä»ãã¾ããâGET
ãS3ãã±ããããä»»æã®ãã¡ã¤ã«ï¼ãªãã¸ã§ã¯ãï¼ãã¦ã³ãã¼ãããæä½ã®ãã¨ã§ãã
âPUT
ãS3ãã±ããã«ãªãã¸ã§ã¯ããã¢ãããã¼ãããæä½ã®ãã¨ã§ããæ°è¦ã¢ãããã¼ããæ´æ°ï¼ä¸æ¸ãï¼ããã®æä½ã¨ãªãã¾ãã
ã1ã¤ã®PUTæä½ã§ã¯æ大5GBã¾ã§ã®ããããã以ä¸ã®ãã¡ã¤ã«ãã¢ãããã¼ãããå ´åã¯ããã«ããã¼ãã¢ãããã¼ãã¨å¼ã°ããæ©è½ã使ç¨ãã¾ãããã®æ©è½ã使ç¨ãããã¨ã§ãåä¸ã®ãªãã¸ã§ã¯ããè¤æ°ã®ãã¼ãã«åå²ãã¦ä¸¦åã«ã¢ãããã¼ãã§ããæ大5TBã®ãã¡ã¤ã«ãã¢ãããã¼ãã§ãã¾ãã
âLIST
ãS3ãã±ããå ã®ãªãã¸ã§ã¯ããä¸è¦§ã§è¡¨ç¤ºããæä½ã§ãããã¼ã®åæ¹ä¸è´ã§ãã¹æå®ã®ãã£ã«ã¿ãå¯è½ã§ãã
âCOPY
ãS3å ã§ãªãã¸ã§ã¯ãã®ã³ãã¼ãè¡ãã¾ããç°ãªããã±ããããªã¼ã¸ã§ã³éã§ãã³ãã¼ãå¯è½ã§ãã
âDELETE
ãS3ãã±ããå ã®ä»»æã®ãªãã¸ã§ã¯ããåé¤ããæä½ã§ãã
ããããã®æä½ãAWSããã¸ã¡ã³ãã³ã³ã½ã¼ã«ããAWS SDKãçµã¿è¾¼ãã ã¢ããªã±ã¼ã·ã§ã³ãã³ãã³ãã©ã¤ã³ã使ç¨ããAWS CLIãªã©ããå®è¡ãã¾ããä»ã®AWSãµã¼ãã¹ãééçã«å©ç¨è ãè¦ããªãé¨åã§S3ãã±ããã使ç¨ãããã¨ãããã¾ãã
ãS3å ã®ãªãã¸ã§ã¯ãæä½ã¯ãAWS CloudTrailï¼AWSã«ãããã¤ãã³ããè¨é²ãããµã¼ãã¹ï¼ä¸ã«APIå±¥æ´ã¨ãã¦ä¿åã§ãã¾ããS3å ã®ãªãã¸ã§ã¯ãæä½å±¥æ´ãæ®ãã«ã¯ããã¼ã¿ã¤ãã³ãã¨ããAWS CloudTrailã®æ©è½ãæå¹ã«ããå¿ è¦ãããããããã¯æ³¨æãå¿ è¦ã§ãã
ã次ãã¼ã¸ãAmazon S3ã®ä¸»ãªæ©è½ï¼ã¹ãã¬ã¼ã¸ã¯ã©ã¹ãã¢ã¯ã»ã¹å¶å¾¡â¦ï¼
é¢é£ã³ã³ãã³ã
é¢é£ã³ã³ãã³ã
PR
PR
PR