Amazon Web Services (AWS)ã®ã¹ãã¬ã¼ã¸ãµã¼ãã¹(S3)ã§Webãã¼ã¸ãæä¾ããæé
åæ
- AWSã¢ã«ã¦ã³ãä½ææ¸ã¿
åé¡
- Webãã¼ã¸ãå ¬éããã
解決
- 1. Amazon Web Services (AWS) ã® Simple Storage Services (S3) ã使ãã
- 2. Bucketãä½ãã
- 3. index.htmlãã¢ãããã¼ãããã
- 4. index.htmlãå ¬éããã
詳細
- S3 Management Consoleã¸è¡ãã
- Create Bucketsã§ãã±ãããä½ããèªåä¿æã®ãã¡ã¤ã³åãªã©ã使ã£ã¦ã¦ãã¼ã¯ãªååãä»ããã
- ãã¨ãã° bucket.example.com ã®ããã«ã
- [Upload]ãã¿ã³ãæ¼ã
- [Add Files]ã§ãã¡ã¤ã«ãã¢ãããã¼ãããã¨ãã°ä»¥ä¸ã®index.htmlãã¢ãããã¼ãããã
<!DOCTYPE html> <html> <head> <title>Hello, S3!</title> <h1>Hello, S3!</h1> <body> </body> </html>
- ã¢ãããã¼ããããã¡ã¤ã«ä¸ã§å³ã¯ãªãã¯ããMake Publicãããããã§å ¬éãããã
- ãã¡ã¤ã«ä¸ã§å³ã¯ãªãã¯ãã¦Propertiesãã¯ãªãã¯ãããããã§URLããããã
- ãã¨ãã° https://s3-XXXXXXX.amazonaws.com/bucket.example.com/index.html ã®ããã«ã
- ãã®URLã«ãã©ã¦ã¶ã§ã¢ã¯ã»ã¹ããã¨ãHello, S3! ã¨è¡¨ç¤ºãããã
- ãªã«ãã®ã·ã³ãã«ãï¼
åç §
- ãããã¤ã³ã¹ãã¼ã« Amazon Web Servicesã®åºç¤ - #15 ã¹ãã¬ã¼ã¸ãµã¼ãã¹ã使ã£ã¦ã¿ãã
- æé¡10åãã§ã¬ã³ã¿ã«ãµã¼ãã¼ãã¯ãããæ¹æ³
- æé¡10åã - Amazon S3ã§ã¦ã§ããµã¤ãããã¹ãã£ã³ã°ããæ¹æ³