ä»é±æææ¥ï¼2024å¹´8æ5æ¥ï¼ã« Zenn Book ã§å®å ¨ç¡æã®å¦ç¿ã³ã³ãã³ããLocalStack å®è·µå ¥é | AWS ã¢ããªã±ã¼ã·ã§ã³éçºã¯ã¼ã¯ã·ã§ããããå ¬éãã¾ããã¼ð AWS ã¨ãã¥ã¬ã¼ã¿ã¼ã® LocalStack ã«å®è·µçã«å ¥éããã¯ã¼ã¯ã·ã§ããã§ãâï¸ zenn.dev æ¦è¦ ð ã¢ããªã±ã¼ã·ã§ã³ã AWS ä¸ã§ç¨¼åããã¦ãã¦ï¼ããã¼ã¸ããµã¼ãã¹ãä¸å¿ã«çµã¿åããããããã¨ï¼ãã¼ã«ã«ç°å¢ã§ã®éçºããã«ããæãããï¼AWS ãµã¼ãã¹ã«ä¾åããã¢ããªã±ã¼ã·ã§ã³ã³ã¼ãã®åä½ãã¹ãããã«ããæãããã¨ãããã¯ãã§ãð¡ãããªã¨ãã«ã¯ LocalStack ã便å©ã ããðã¨ããæè¡çãªé¸æè¢ãç´¹ä»ãããï¼ã¯ã¼ã¯ã·ã§ããã®éçºãä¼ç»ãã¾ããï¼ ã¢ããªã±ã¼ã·ã§ã³ã³ã¼ã㯠Python (Boto3) ã使ã£ã¦ãã¦ï¼åä½ãã¹ã㯠pytest ã使ã£ã¦ãã¾ãï¼æ¯è¼çç°¡åãªã³ã¼ãã§
AWS æ¥æ¬èªãã³ãºãªã³ Amazon Web Services(AWS) ã® æ¥æ¬èªãã³ãºãªã³ãã¯ã¼ã¯ã·ã§ããããã«ãã´ãªãã¨ã«ã¾ã¨ãã¦ãã¾ãã å³å´ã®ç®æ¬¡ãããããã¼é¨åã®æ¤ç´¢ããã¯ã¹ãããåã³ã³ãã³ãã«ãã©ãçãã¾ãã ã¾ããCtrl + F ã command + F ã使ã£ããã¼ã¸å æ¤ç´¢ããæ´»ç¨ããã ãã¾ãã æéã«ã¤ã㦠ãã³ãºãªã³ã§ä½æãã AWS ãªã½ã¼ã¹ã¯é常ã®æéãçºçãã¾ããä½æãããªã½ã¼ã¹ã®åé¤ãå¿ããã«ãé¡ããã¾ãã ããå¿ãã¦ãã¾ãã¨ãæ³å®å¤ã®æéãçºçããå¯è½æ§ãããã¾ãã ç»é¢ã®å·®ç°ã«ã¤ã㦠ãã³ãºãªã³ã§ç´¹ä»ããã¦ããæé ã¨ãå®éã®æä½æ¹æ³ã«å·®ç°ãããå ´åãããã¾ãã AWS ã¯éæã¢ãããã¼ãããã¦ãããã¿ã¤ãã³ã°ã«ãã£ã¦ã¯ãã³ãºãªã³ã³ã³ãã³ãã追ãã¤ãã¦ããªãäºãããã¾ãã å·®ç°ãããå ´åãAWS Document ãªã©ãæ´»ç¨ããªããé²ãã¦é ãã¾ãã¨å¹¸ã
çé æºä¹ (Tomoyuki Mano) <tomoyukimano@gmail.com> version 1.0, 2020-06-19
LINEããã¢ããªã¸ã®é¢å¿ã社ä¼çã«ãé«ã¾ãã¤ã¤ããã¾ãã ä»åã®ãã³ãºãªã³ã§ã¯ãåºèãªã©ç¾å®ã®ã·ãã¥ã¨ã¼ã·ã§ã³ãæ³å®ãã¦ãLINEããã¢ããªã§ä¼å¡è¨¼çºè¡ã»å ¥éå ´ç®¡çãè¡ãã¢ããªãä½æãã¾ããå ·ä½çã«ã¯ãLINEããã¢ããªã§QRã³ã¼ããçºè¡ããåºèå´ã®QRã³ã¼ããªã¼ãã¼ã§ãããèªã¿è¾¼ãã·ã¼ã³ãæ³å®ãã¦ãã¾ãã
ãã®è¨äºã¯æ°éæ·³ä¸æ°ã®ããã°ãPublickeyãã«æ²è¼ããããAWSã®ä¸»è¦ãµã¼ãã¹ããã¼ã«ã«ã§ã¨ãã¥ã¬ã¼ãããLocalStackãã1.0ã«å°éãï¼2022å¹´7æ25æ¥æ²è¼ï¼ããITmedia NEWSç·¨éé¨ã§ä¸é¨ç·¨éãã転è¼ãããã®ã§ãã LocalStackãå©ç¨ãããã¨ã§å®éã®AWSã«ã¢ã¯ã»ã¹ãããã¨ãªããã¼ã«ã«ã®ç°å¢ã§éçºããã¹ããè¡ããããã«ãªããããè¿ éãªéçºãµã¤ã¯ã«ã®å®ç¾ãAWSã®å©ç¨ã³ã¹ãåæ¸ãªã©ãæå¾ ã§ãã¾ãã LocalStackã¯ãªã¼ãã³ã½ã¼ã¹ã§ãããç¡æã§ä½¿ãããCommunityãçã§ã¯åºæ¬çãªAPI群ãå©ç¨å¯è½ãæé¡28ãã«ããã®æåã¨ãªããProãçã§ã¯å ¨ã¦ã®APIãå©ç¨å¯è½ãããã«ä¸ä½ã®ãTeamãçã¨ãEnterpriseãçãç¨æããã¦ãã¾ãã AWSã®ä¸»è¦ãµã¼ãã¹ãã¨ãã¥ã¬ã¼ã LocalStackã§ã¨ãã¥ã¬ã¼ãã§ããAWSã®ãµã¼ãã¹ã¯ããAmaz
AWSã§ã¯1å¹´éã®ç¡æå©ç¨æéãã¤ãã¦ãã¦ãããã§EC2ã¤ã³ã¹ã¿ã³ã¹ãä½æãã¦è²ã ã¨è©¦ããã¨ãå¯è½ã§ãã EC2ä¸ã«æ§ç¯ããã¢ããªã±ã¼ã·ã§ã³ã®æ¥ç¶ããã¾ããããªãã¨ãã£ããã°ãçºçãã¦ãæ°ãã«ECï¼ã¤ã³ã¹ã¿ã³ã¹ãä½ãç´ãã¨ãã£ãå ´åãããã¾ãã ãããã¯ãECï¼ã¯ãã®ã¾ã¾æ¾ç½®ãã¦ããã¨ãç¡ææéçµäºå¾ãããéãè«æ±ããã¦ãã¾ãã¾ãããããé²ãããã使ããªãEC2ãåé¤ãã¦ãããã¨ã¯ã¨ã¦ãéè¦ã§ããï¼ããªã大äºã§ããæ¬å½ã«è«æ±ããã¾ãï¼ ããã©ããããã»å¤§å¤ããã¨ããå¿ççãã¼ãã«ã¨ã¯è£è ¹ã«ãEC2ã¤ã³ã¹ã¿ã³ã¹ã®åé¤ã¯ã¨ã¦ãç°¡åã§ãã以ä¸ã«EC2ã¤ã³ã¹ã¿ã³ã¹ã®åé¤æé ãã¾ã¨ãã¦ãã¾ãã
ãAWS DevAx::connectã ã¨ã¯ãAWS ããå±ãããéçºè ã®ããã®éçºè ã«ãã Web ã»ããã¼ã·ãªã¼ãºã§ããè¤æ°åã®ã»ãã·ã§ã³ãéãã¦ä¸ã¤ã®ãã¼ããæãä¸ããå®è·µçãªæ å ±ã®æä¾ã QA ãªã©ãéããåå è ã®çæ§ã¨ãã£ã¹ã«ãã·ã§ã³ã«ãããç解ãæ·±ãã¦ãããã¨ãç®çã¨ãã¦ãã¾ãã ã·ã¼ãºã³ 1 ã®ãã¼ãã¯ãã¤ãã³ãé§åãã§ãã ã¯ã©ã¦ããæ´»ç¨ããã¢ãã³ãªã½ããã¦ã§ã¢éçºãé²ãã¦ããã«ãããããã¤ãã³ãããã©ã®ããã«æ±ãããéµã«ãªãã¾ããåæå¦çãåæã¨ããèãæ¹ããé¢ããã¤ãã³ãé§åãã¢ã¼ããã¯ãã£ã«åãå ¥ãããã¨ã§ã¹ã±ã¼ã«ãããããä¿¡é ¼æ§ã®é«ãã·ã¹ãã ãæ§ç¯ã§ãã¾ããã¾ããAWS ã®ãµã¼ãã¹ãæ§ã ãªã¤ãã³ããçºçããã¾ãã ãããããã¾ãæ±ããã¨ã§ããAWS ãã©ãããã©ã¼ã ãããæ´»ç¨ãããã¨ãã§ãã¾ããä»åã¯ã¤ãã³ãé§ååã¢ã¼ããã¯ãã£ã®èãæ¹ãããAWSã®å種ãµã¼ãã¹ã
ãã®åAWSå ¬å¼ã®YouTubeãã£ã³ãã«ã«ã¦ãé¢ç½ãããªã©ã¤ãé ä¿¡ãããã¾ãã AWSã®åç»ã³ã³ãã³ãã¨ããã°ãBlackBeltã®ãããªãµã¼ãã¹ç´¹ä»ã®åç»ãçã£å ã«æãæµ®ãã¶æ¹ãå¤ãã¨æãã¾ãã èªåããã®ä¸äººã§ããããã®åç»ã¯ãããã¯ãã§ã¯ãªããInfrastructure as Codeï¼IaCï¼ã¨ããæ¦å¿µãã«ãã©ã¼ã«ã¹ããã³ã³ãã³ãã§ãã Twitterã§å¦ã³ã¡ã¢ãæ¸ãã¾ããããã¡ããã¨è¨äºã¨ãã¦å¦ã³ãã¾ã¨ãã¦ãããã¨æãã¾ãã ã¾ããåç»ã®å 容ã«é¢é£ããè£è¶³äºé ãè¨äºã®å¾åã«ã¾ã¨ãã¦ããã¾ããã âåç»æ¬ç·¨ã¯ãã¡ãâ âè³æã¯ãã¡ãâ IaCããªã使ãã®ã ç´ç²ã«IaCã¯æ¥½ãããæé æ¸ä½æã¯æ¥½ãããªã ãªãªã¼ã¹ã®ãã³ã«æé æ¸æ´æ° or æ°è¦ä½æããã®ã¯ãæããã¦æ¥½ããã®ã IaCã®ã»ãããªãªã¼ã¹ã¾ã§ã®ãªã¼ãã¿ã¤ã ãçã éç¨ããä¸ã§ã®æè²ã¯ã©ãããï¼ ãããããæè²ãã¯IaCã
Amazon Web Services ããã° AWS åå¦è åãã®åå¼·æ¹æ³ 6 ã¹ãããï¼2022 å¹´çï¼ 2024 å¹´ 4 æ追è¨ï¼æ¬è¨äºã®å 容㯠2024 å¹´ 4 æã«å ¬éããã AWS åå¦è åãã®åå¼·æ¹æ³ 6 ã¹ãããï¼2024 å¹´çï¼ ã¨ããè¨äºã«ã¦ã¢ãããã¼ãããã¦ãã¾ãããªã³ã¯ã®ææ°åã¨åå¼·æ¹æ³ã®è¿½è¨ãè¡ã£ã¦ããã¾ãã®ã§ãã¢ãããã¼ããããè¨äºãã確èªãã ããã ããã«ã¡ã¯ãAWS ãã¯ãã«ã«ãã¬ã¼ãã³ã° ããã¼ã¸ã£ã¼ ã®è¥¿æèªã§ãã çããããããã¯çããã®å¨ãã§ãããªæ¹ã¯ãã¾ãããããAWS ãåå¼·ããããã ãã©ä½ããåå¼·ããã°ããã ãããã©ããã«åå¼·æ¹æ³ãã¾ã¨ã¾ã£ã¦ãªãããªï¼ãã¨ããæ©ã¿ãæ±ãã¦ããæ¹ãã¾ãã¯ãååãé¨ä¸ã« AWS ã®åå¼·ãä¿ãã¦ãããã©ãã¡ããã©è¯ãææã¨ãç¡ãããªï¼ãã¨ããæ©ã¿ãæ±ãã¦ããæ¹ãæ¬è¨äºã¯ãããã£ã AWS ãåå¼·ããéã®æ©ã¿ãæ±ãã
ãä¸çåã®çã«ãªã¼ãã³ã§ã¯ã©ã¦ããã¤ãã£ããª5Gï¼ç¬¬5ä¸ä»£ç§»åéä¿¡ã·ã¹ãã ï¼ãããã¯ã¼ã¯ã ãç±³å½ã«ãããã²ã¼ã ãã§ã³ã¸ã£ã¼ã«ãªãã ãããââã ãã豪èªããã®ã¯ãç±³å½ã®æ°è¦åå ¥äºæ¥è ã§ããç±³Dish Networkï¼ä»¥ä¸ãDishï¼ã§EVP ï¼ Chief Network OfficerãåããMarc Rouanneæ°ã ãå社ã¯2022å¹´ã«ç±³å½ã®ä¸é¨å°åã§æ°ãã«5Gãµã¼ãã¹ãéå§ããè¨ç»ã ã Dishã¯å¤§æã¯ã©ã¦ãäºæ¥è ã§ããç±³Amazon Web Servicesï¼AWSï¼ã®ã¯ã©ã¦ãåºç¤ããã«æ´»ç¨ãã5Gã¤ã³ãã©ã®æ§ç¯ãé²ãã¦ãããã³ã¢ãããã¯ã¼ã¯ããç¡ç·ã¢ã¯ã»ã¹ãããã¯ã¼ã¯ï¼RANï¼ã®ä¸é¨ã¾ã§ãAWSã®ã¯ã©ã¦ãåºç¤ã®ä¸ã«ä»®æ³åãããã¯ã¼ã¯ã¨ãã¦ã¤ããè¨ç»ã ã æ¥æ¬ã§ã¯æ¥½å¤©ã¢ãã¤ã«ã20å¹´ãæºå¸¯é»è©±äºæ¥ã«æ¬æ ¼åå ¥ããã«ããã£ã¦ãã³ã¢ãããã¯ã¼ã¯ããRANã«è³ãã¾ã§ãæ±ç¨ï¼ã¯ãããï¼ãµã¼
ä»ç¤¾ã§éçºä¸ã®ç°å¢ãå ±æãã¦ãããã¨ãã¯ãã©ã®ããã«ããã®ãä¸è¬çãªã®ã§ããããã â AssumeRoleã使ãåèè¨äº â¡IAMã¦ã¼ã¶ã¼ãçºè¡ãã¦ããã ããããã®ã¡ãªããã»ãã¡ãªããã»ä½¿ç¨å ´é¢ã¯ããã¾ãããããããã®èªèãééã£ã¦ãããæãã¦ãã ããã â ã¯ãåèURLã«ããéããCUIã§ã®æä½ããã§ããªããã§ããããã â¡ã¯ãã¦ã¼ã¶ã¼ä½æããã¨ãã«GUIã¸ã®ã¢ã¯ã»ã¹ã許å¯ããã¨ãGUIï¼AWSã³ã³ã½ã¼ã«ï¼ã«ãã°ã¤ã³ã§ãã¦ä¾¿å©ã ã¨æã£ãã®ã§ããããã
2. èªå·±ç´¹ä» ååï¼å¡æ¬ ç§ç ï¼ã¤ããã¨ã¾ããï¼ æå±ï¼æSIer 好ããªAWSãµã¼ãã¹ï¼ ã»AWS CloudFormationï¼ä»¥ä¸CloudFormationã¨ç¥è¨ï¼ ã»AWS Organizationsï¼ä»¥ä¸Organizationsã¨ç¥è¨ï¼ https://www.credly.com/users/makio.tsukamoto https://www.linkedin.com/in/mtsukamoto/ https://twitter.com/tsukamoto http://fb.com/makio.tsukamoto 4. å人ã«ã¨ã£ã¦ã®Organizationsã§å®ç¾ã§ããã㨠ã»ç®¡çã¢ã«ã¦ã³ãã§Organizationså ã®AWSã¢ã«ã¦ã³ããä¸è¦§ã§ãã ã»è«æ±ã»æ¯æããä¸ã¤ã®AWSã¢ã«ã¦ã³ãï¼ç®¡çã¢ã«ã¦ã³ãï¼ã«ã¾ã¨ãããã ã»æ°è¦AWSã¢ã«ã¦ã³ãã®ä½æãç°¡åã«ãªã
åæ¹é¢ã§ã好è©ãããã ãã¦ããæ¬è¬ç¾©è³æã§ããï¼ãã®åº¦å¢è£ã»æ¹è¨ã®ããæ¸ç±ã¨ãã¦åºçãããã¨ã決å®ãããã¾ããï¼ æ¸ç±éå®ã®æ¸ãä¸ããã®ï¼ç« (ç´100ãã¼ã¸åï¼)ãæ°ãã«è¿½å ãã¦ï¼2021å¹´9æ27æ¥ã«çºå£²äºå®ã§ãï¼ ãã®è³æãæ°ã«å ¥ã£ã¦ããã ããæ¹ã¯ï¼æã«åã£ã¦ããã ããã¨ãããããã§ãï¼ ããã§å ¬éãã¦ããè³æã¯å¼ãç¶ããªã³ã©ã¤ã³ã§ç¡æã§èªãã¾ãã®ã§ï¼ãå®å¿ãã ããð
â»é£æ度ã¯JAWS-UGéæ²¢ å°¾å´ãæ ¼ä»ããããã®ã§ã â»ãã³ãºãªã³ã®å 容ãé²è¦§ããæ ¼ä»ããå¤æ´ããå ´åãããã¾ã
AWSåå ¥é2019 ã®è¨äºä¸è¦§ã§ã
Amazon Linux 2ã«ã¯ Extras Library ã¨å¼ã°ããããã±ã¼ã¸ç¾¤ãåå¨ããPythonãGolangãMariaDBãAnsible ãªã©ã®ç¹å®ã®ããã±ã¼ã¸ãããæ°ãããã¼ã¸ã§ã³ã§å©ç¨ãããã¨ãåºæ¥ã¾ãã Extra Packages for Enterprise Linux (EPEL) ã®ãããªä½ç½®ã¥ãã§ãé常ã¯ãã£ã¹ããªãã¥ã¼ã·ã§ã³æ¨æºã®ããã±ã¼ã¸ãå©ç¨ããä¸æ¹ã§ãç¹å®ã®ãã±ã¼ã¸ã§ã¯ããæ°ãããã¼ã¸ã§ã³ã試ãã¾ãã ãã®ç¹å¥ãªããã±ã¼ã¸ã¯ AWS ããã¥ã¬ã¼ãããamazon-linux-extras ã³ãã³ãçµç±ã§ç®¡çãã¾ãã ä»åã¯ãã® Extras Library ãå®éã«ä½¿ã£ã¦ã¿ã¾ãã Extras Library 㯠amazon-linux-extras ã³ãã³ãã§æä½ Extras Library ã¯å°ç¨ããã°ã©ã amazon-linux-ext
WikiLeaksãAmazonã®ãã¼ã¿ã»ã³ã¿ã¼ã®æå¨å°ãæ´é² ãã¾ããããæ°éä¼æ¥ã®æ©å¯æ å ±ã®ãªã¼ã¯ã¯å ¬çæ§ã®ãªãè¡çºã®ããã«æãããã®ã®æ å ±ã¨ãã¦ã¯é¢ç½ãã®ã§æ¥æ¬ãä¸å¿ã«è©³ç´°ãªãã¼ã¿ãè¦ã¦ãããã¨æãã¾ãã WikiLeaks - Map of Amazon's Data Centers ðAWSã® ãªã¼ã¸ã§ã³/AZ ã¨ã¯ ç¥ã£ã¦ãããã¨ããæ¹ã¯èªã¿é£ã°ãã¦ãã ãããã¯ã©ã¦ãã§ã¯ãã¼ã¿ã»ã³ã¿ã¼ãã¢ãã¤ã©ããªãã£ã¾ã¼ã³ããªã¼ã¸ã§ã³ã¨ããè¨èãã§ã¦ãã¾ãããåã¯ã©ã¦ããããã¤ãã«ãã£ã¦è¨èã®ä½¿ãæ¹ãå°ãç°ãªãã¾ããAWS ã§ã¯ä»¥ä¸ã®ããã«å®ç¾©ããã¦ãã¾ãã ãã¼ã¿ã»ã³ã¿ã¼ï¼DCï¼ ç©ççãªãã«ãã¾ãã¯ãã«ç¾¤ AvaliabilityZoneï¼AZï¼ 1ã¤ä»¥ä¸ ã®ãã¼ã¿ã»ã³ã¿ã¼ã§æ§æããã¾ã¼ã³ Region 2ã¤ä»¥ä¸ ã®AZããæãç«ã¤ã°ã«ã¼ã Transit Cernter AZã¨AZå¤
ãAmazon Web Servicesãï¼AWSï¼æ´»ç¨ã«ããã便å©ãªå°æãç°¡æ½ã«ç´¹ä»ããé£è¼ãAWSãã¼ãã·ã¼ãããä»åã¯ããAmazon EC2ãã¤ã³ã¹ã¿ã³ã¹ã«ãã©ã¦ã¶ä¸ã§SSHæ¥ç¶ããæ¹æ³ãç´¹ä»ããã ãAmazon Web Servicesãï¼AWSï¼æ´»ç¨ã«ããã便å©ãªå°æãç°¡æ½ã«ç´¹ä»ããé£è¼ãAWSãã¼ãã·ã¼ãããæ¬ç¨¿ã¯ãAWSåå¦è ã®æ¹ã«ç¹ã«ãè¦ãã®å 容ã§ãã AWSãåãã¦å¦ç¿ããæ¹ã¯ãè¨äºãæ¸ç±ãåèã«ãAmazon EC2ãã¤ã³ã¹ã¿ã³ã¹ãèµ·åãããã¨ãå¤ããã¨æãã¾ãããã®éã«ãTera Termããputtyããå©ç¨ãããSSHï¼Secure Shellï¼æ¥ç¶ã試ã¿ãå ´åãå¤é¨ãã¼ã«ãã¤ã³ã¹ãã¼ã«ããªãã¦ãEC2ã¤ã³ã¹ã¿ã³ã¹ã«æ¥ç¶ãããã¨ãå¯è½ã§ããä»åã¯ããã®æ¹æ³ãç´¹ä»ãã¾ãã ãEC2 Instance Connectãã¨ã¯ ä»åã®æé ã§ã¯ãEC2 Instance
ã¡ã³ããã³ã¹
ãç¥ãã
é害
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}