Cloud Native Days Tokyo 2022 Session: https://event.cloudnativedays.jp/cndt2022/talks/1518
Amazon ECS ã§ã®ã³ã³ãããããã¤ã®é«éå ãã®è¨äºã¯ååã® Nathan Peck (@nathanpeck)ãæ¸ããè¨äº âSpeeding up Amazon ECS container deploymentsâ ã翻訳ããå çã»ä¿®æ£ãããã®ã§ã. å è¨äºã ECS ã¦ã¼ã¶ã«ç´¹ä»ããæ©ä¼ãä½åããã£ãã®ã§ããã£ãããªã®ã§ç¿»è¨³ãããã¨ã«ãã¾ãã. ã³ã³ããã®ãªã¼ã±ã¹ãã¬ã¼ã·ã§ã³ã¯é常ã«è¤éãªåé¡ã®ä¸ã¤ã§ã. ã¢ããªã±ã¼ã·ã§ã³ã³ã³ããã®ãããã¤ã®ããã«ãç¸äºã«ããåããè¡ãè¤æ°ã®ç°ãªãã³ã³ãã¼ãã³ããåå¨ãã¾ã. ããªãã®ã¢ããªã±ã¼ã·ã§ã³ãå®è¡ãããªã¼ã±ã¹ãã¬ã¼ã¿ã¯ããã®å®è¡ãããã¢ããªã±ã¼ã·ã§ã³ã Web ãã©ãã£ãã¯ãåãåãç¨æãã§ãã¦ãããã©ããã«ã¤ãã¦å¤æããå¿ è¦ãããã¾ã. ãã®å¾ãã®ã¢ããªã±ã¼ã·ã§ã³ã¯ã¹ã±ã¼ã«ãã¦ã³ããããããããã¯æ°ãããã¼ã¸ã§ã³ã®ã¢ããªã±ã¼ã·ã§ã³
çããå æ°ã§ããï¼ï¼SREãã¼ã ã®@adachin0817ã§ããå»å¹´ããè¡ã£ã¦ãã移è¡ããã¸ã§ã¯ãã§ãã°ã«ã¼ãä¼ç¤¾ã§ãããã·ã¯ããã¼ã±ãã£ã³ã°æ ªå¼ä¼ç¤¾ã®ããã®ã¦ããããããVPSããAWSã¸ç§»è¡ãã¾ãããä»åã移è¡èæ¯ãECS/Fargateã§ã®ã³ã³ããéç¨ã«ã¤ãã¦ç°¡åã«ãç´¹ä»ã¨æ¯ãè¿ããè¡ã£ã¦ã¿ããã¨æãã¾ãã ãªãAWSã¸ç§»è¡ããã®ã AWSã¸ç§»è¡ããã¨åé·æ§ã®æ ä¿ãªã©ãæãããã¾ãããä¸çªã¯éçºç°å¢ãã¤ã³ãã©ãªã©ããã¹ã¦ã©ã³ãµã¼ãºã«çµ±ä¸ãããã¨ãããã¨ã第ä¸ã®ç®çã§ããããã«ä¼´ãããã®ã¦ãèªä½ã®ãµã¼ãã¹ãã·ã³ãã«ãªã¤ã³ãã©æ§æã¨ãããã¨ããããã¤ã³ãã©éç¨ã®æéããªããããã¨ãããã¨ãããECS/Fargateã§åã®å¤é¨ãµã¼ãã¹ã¨ãã¦ã³ã³ããéç¨ã«ãã£ã¬ã³ã¸ãã¦ã¿ããã¨ãªãã¾ããã ç®çã¨ã³ã³ããåã«ããã¡ãªãã ã»å é¨çµ±å¶å¯¾å¿ ã»S3ãRDSãå©ç¨ããããã¯ã¢ãã ã»CloudWa
ããã£ã±ãâ¦ã¿ã¹ã¯ãå¤ãªåããã¦ãæãDockerã³ãã³ã使ããããªããããããã人éã£ã¦ããããâ¦ã ECSï¼on EC2ï¼ã®ç°å¢ã§ãã³ã³ãããå¦ãªèµ·åããã¦ããã¨ãããã®ãã¹ãã¤ã³ã¹ã¿ã³ã¹ã«ãã°ã¤ã³ãã¦Dockerã³ãã³ãã§åå 追æ±ãããã¨ãæ¥å¸¸ã®ãªãã¬ã¼ã·ã§ã³ã¨ãã¦å®æ½ããã¦ããç¾å ´å¤ãã¨æãã¾ããFargateã§ã¯ã§ããªããdocker execãå©ç¨ãã調æ»ãæãã¾ãããããããªçæ§ã«å¾ æã®ã¢ãããã¼ãã§ãã AWS Systems Manager Agent ã Amazon ECS ç¨ã«æé©åããã Linux 2 AMI ã«ããªã¤ã³ã¹ãã¼ã« SSMã¨ã¼ã¸ã§ã³ããããªã¤ã³ã¹ãã¼ã«ãããã¨ãããã¨ã¯ãã»ãã·ã§ã³ããã¼ã¸ã£ã¼ã使ããã¨ãããã¨ã§ããã¨ãããã¨ã¯ããã¹ãã¤ã³ã¹ã¿ã³ã¹ãã°ã¤ã³ã®ããã®ãè¸ã¿å°ãµã¼ãã®è¨ç½®ãã»ãã¥ãªãã£ã°ã«ã¼ãã®éæ¾ãSSHãã¼ã®ç®¡çãªã©ãå ¨ã¦ä¸è¦ã«ãªã
CircleCIãAWSãGoogle CloudãKubernetesãªã©ã¸èªåãããã¤ããããã®å ±æããã±ã¼ã¸ãOrbããå ¬éãã¯ã©ã¦ãã¸ã®èªåãããã¤ã容æã« ãã«ãããã¹ãã®ããã»ã¹ãèªååãããããããç¶ç¶çã¤ã³ãã°ã¬ã¼ã·ã§ã³ï¼Continuous Integrationï¼ã®æ©è½ããµã¼ãã¹ã¨ãã¦æä¾ããCircle CIã«ã¯ããOrbãã¨å¼ã°ãããè¨å®ãã¡ã¤ã«ãªã©ãå«ãCircleCIåãããã±ã¼ã¸ã®å ±ææ©è½ãããã¾ãã Orbã¯ãCircleCIã®Webãµã¤ãä¸ã®å ¬éã¬ã¸ã¹ããªçãªãµã¼ãã¹ã«ãã£ã¦ã¾ãã¾ãªè¨å®ãå ¬éããã¦ãã¾ãã ä¾ãã°ãCircleCIã«AWSã³ãã³ãã©ã¤ã³ãã¼ã«ãçµ±åããè¨å®ãã½ã¼ã¹ã³ã¼ãããã«ããã¦Dockerã¤ã¡ã¼ã¸ãçæããããDockerã¬ã¸ã¹ããªã«ç»é²ããæä½ãèªååããè¨å®ãªã©ãããã¾ãã ããããOrbãå©ç¨ãããã¨ã§ãCircleCIã§ãã¾ã
ãã¡ã㯠Gunosy Advent Calendar 2018ã7æ¥ç®ã®è¨äºã§ãããªããæ¨æ¥ã®è¨äºã¯ @yutanim ããã® RxSwiftã«ãããå«ããã®ç¥ç¶æ¯åè¡ ã§ããã qiita.com ã¯ããã« ããã«ã¡ã¯ãåºåæè¡é¨ã® ï½·ï½³ï¾ï½¨ï¾ï½½ï¾ï¾(人工ç¥è½) (@Civitaspo) / Twitter ã§ãã Gunosy ã«å ¥ç¤¾ãã¦ããæ©ããã®ã§1å¹´ãçµã¡ã¾ãããæ¨å¹´ã® Gunosy Advent Calendar ã§ã¯åã¯èªãå°éã ã£ãã®ã§ããããGunosyã®ãã¼ã½ãã©ã¤ãºãæ¯ããæè¡ -ã¯ã¼ã¯ããã¼ç·¨-ããèªãã§é常ã«æéãåããã®ãè¦ãã¦ãã¾ãã tech.gunosy.io ããã§ã¯ãã®ã¨ãæéãåããè¨èãç´¹ä»ãã¦ããã¾ãã ã¯ã¼ã¯ããã¼ã¯ãããã°ã·ã¹ãã ä¸ã«ãããå µç«ã¨ãã£ã¦ãããã§ãããããæ¦äºã®ããã¯å µç«ãèªããæ¦äºã®ç´ 人ã¯æ¦ç¥ãèªããã¨ããåè¨ããããããã§
åºåæè¡é¨ã®UT@mocyutoã§ãã ã¤ãã«æ¡ãéè±ãããã£ã¨æ¥ã®è¨ªããæãã¯ããã¾ãããã å¤ã§æ°æã¡ãã飲ã¿ããå£ç¯ã«ãªã£ã¦ãã¾ããã ã¯ããã« ã·ã¹ãã æ¦è¦ ãªã移è¡ããã®ã Celeryããããã LevelDBããããã 移è¡è¨ç» ã¢ã¼ããã¯ã㣠ECS Athena CI/CDããã¼ Pluginãèªåå®è£ ã 移è¡å¾ ããã£ãã㨠ã¾ã¨ã ã¯ããã« ä»åã¯EC2ä¸ã®Pythonã®ããããECSã®Digdagã«ç½®ãæãã話ããã¾ãã ã·ã¹ãã æ¦è¦ ä»åã®ç§»è¡å¯¾è±¡ã¯åºåé ä¿¡ã«é¢ãããããå¦çãè¡ãã·ã¹ãã ã§ããã å½¹å²ã¨ãã¦ã¯ä»¥ä¸ã®ãããªãã®ãããã¾ãã åºåã®é ä¿¡åè£ãä½æ åºåã®æ æ å ±ãä½æ ã¯ãªãã¯ãªã©ã®ã¤ãã³ãã®éè¨ ãªã移è¡ããã®ã 大ããåãã¦ä»¥ä¸ã®ï¼ã¤ã®çç±ãããã¾ããã Celeryããããã LevelDBããããã Celeryããããã ä»ã¾ã§ã¯ãããã«ã¯P
2018å¹´11æ28æ¥ãã¯ãã¯ãããæ ªå¼ä¼ç¤¾ã主å¬ããã¤ãã³ããCookpad Tech Kitchenããéå¬ããã¾ããã第20åã¨ãªãä»åã®ãã¼ãã¯ãã¯ãã¯ãããã®ãã¤ã¯ããµã¼ãã¹ãã©ãããã©ã¼ã ç¾ç¶ããã¯ãã¯ããããéçºãè¡ã£ã¦ãããã¤ã¯ããµã¼ãã¹ãã©ãããã©ã¼ã ã®ä»ã¨ããã®ä»çµã¿ã«ã¤ãã¦è§£èª¬ãã¾ãããã¬ã¼ã³ãã¼ã·ã§ã³ãAmazon ECS ã®å®å®éç¨ã®ããã«ãã«ç»å£ããã®ã¯ãé´æ¨åº·å¹³æ°ãã¯ãã¯ãããã«ãããAmazon ECSã®éç¨äºä¾ã¨å·¥å¤«ãã¦ãããã¨ã«ã¤ãã¦è§£èª¬ãã¾ããè¬æ¼è³æã¯ãã¡ã Amazon ECSã®å®å®éç¨ é´æ¨åº·å¹³æ°ï¼ãAmazon ECSã®å®å®éç¨ãã¨ããã¿ã¤ãã«ã§çºè¡¨ãããã¨æãã¾ããä»åã®ã¢ã¦ãã©ã¤ã³ã¨ãã¦ã¯ããECSãã©ã使ãããã¿ãããªè©±ã§ã¯ãªãã¦ããã®ECSãéç¨ãã¦ããä¸ã§ãããªãã¨ãã£ã¦ãã¾ããã¨ãããã¨ã話ãã¦ãããã°ãªã¨æãã¾ãã å 容ã¨ãã¦ã¯ã
One of the following is required: -n | --service-name Name of service to deploy -d | --task-definition Name of task definition to deploy Required arguments: -k | --aws-access-key AWS Access Key ID. May also be set as environment variable AWS_ACCESS_KEY_ID -s | --aws-secret-key AWS Secret Access Key. May also be set as environment variable AWS_SECRET_ACCESS_KEY -r | --region AWS Region Name. May al
ããã«ã¡ã¯ãã¤ã³ãã©ã¨ã³ã¸ãã¢ã®æ°¸äº(shnagai)ã§ãã ä»åã¯ãFargateãæ¬çªæå ¥ã1ã¶æå¼·ãéããã®ã§ãéç¨ããä¸ã§æ°ä»ããç¹ã«ã¤ãã¦æ¸ããã¨æãã¾ãã 以åæ¸ãããFargateã«é¢ãã調æ»ã®ã¾ã¨ãè¨äºã¯ãã¡ãã tech.connehito.com å 容ã¯ãã£ããä¸è¨3é ç®ã§ãã ãããªãFargateã¯ãã¼ãã«ãé«ã è¯ãã£ãç¹ ã³ã³ããã®ãªã½ã¼ã¹ãã£ãã·ãã£ãç°¡åã«å¤æ´åºæ¥ã ãªã¼ãã¹ã±ã¼ãªã³ã°ãã·ã³ãã«ã«çµãã å®å®éç¨ ã¤ããç¹ ã¿ã¹ã¯ã®èµ·åé度ãEC2ããã¯ã¨ã³ãã¨æ¯ã¹ãã¨ãã¯ãé ã æéé¢ ãããªãFargateã¯ãã¼ãã«ãé«ã Fargateå°å ¥ãéãã¦ä¸çªæããã®ã¯ãæ°è¦ã«ã³ã³ããåããã¢ããªã±ã¼ã·ã§ã³ãECSã§åããå ´åãEC2ããã¯ã¨ã³ãã§è©¦é¨ããã¹åºæ¥ãç¶æ ã¾ã§æã£ã¦ãã£ãå¾ã«ãæå¾ã«Fargateã§åãããã¿ã¼ã³ãããããã¨ãããã¨ã§ãã ä»åã®F
ããã«ã¡ã¯ãã¤ã³ãã©ã¨ã³ã¸ãã¢ã®æ°¸äº(shnagai)ã§ãã ã³ãããã§ã¯ãéçºç°å¢ã«ç¶ããç¶ã ã¨æ¬çªãµã¼ãã¹ã«ãDockerãå°å ¥ãã¦ãã¾ãã ä»åã¯ãä¸ã éç¨ã大å¤ãªcronã§ã¹ã±ã¸ã¥ã¼ã«ç®¡çãããããªå®æçãªãããå¦çããAmazon ECSã®ScheduledTaskã使ã£ã¦Dockeré§åãªç°å¢ã§æ§ç¯ãã話ã§ãã ä»ã®æ¹æ³ã¨ã®æ¯è¼ãã©ã®ããã«å®ç¾ãã¦ããã®ãã«ã¤ãã¦ç´¹ä»ãããã¨æãã¾ãã ä»å対象ã¨ãããããã®ç¨®é¡ ä»å対象ã¨ãããããå¦çã¯ãä¿ã«è¨ãã¹ã±ã¸ã¥ã¼ã«ç³»ã®ãããå¦çã§ãæ¯æ¥00æ00åã10åæ¯ã«ãµã¤ã¯ã«èµ·åçãäºåã«å®ç¾©ããæéã«æ£ç¢ºã«åããã¨ãæå¾ ããã¦ãããã®ã§ãããâ»ã¸ã§ããã¥ã¼å½¢å¼ã®ãããã ã¨ãAWS BatchãEBã®Workerãããã¯ãSQS + Cron on EC2ã§å¦çããã»ããã¹ãã¼ããã¨æãã¾ãã å®è¡æ¹å¼ã®é¸å® ä¸è¨è¦ä»¶ã®ããããå®ç¾ããåº
æ¦è¦ 以åECSã®è¨äºãå¹¾ã¤ãæ¸ãã¾ãããã Terraformã§ECSç°å¢ã®æ§ç¯ - Carpe Diem Terraformã§ECSç°å¢ã®æ§ç¯ããªã¼ãã¹ã±ã¼ã«ç·¨ã - Carpe Diem å½æã®ECSã¯ï¼ã¤ã³ã¹ã¿ã³ã¹ï¼ã³ã³ããã«ããªãã¨ãã¼ãã競åãã¦åã種é¡ã®ã³ã³ãããè¼ãããã¨ã¯ã§ãã¾ããã§ããã ãããä»ã§ã¯ALBãå°å ¥ãããåçãã¼ããããã³ã°ã¨ãã£ã¦ã³ã³ããå´ã®ãã¼ãã¯80ã§ããã¹ãå´ã«ãããã³ã°ããéã¯åçã«å¤ãã¦ãããããã£ã¦ããããALBã¯ãã®åçãªãã¼ãã«ç´ã¥ãã¨ããæ©è½ãä»ãã¦ãã¾ãã ããã«ãã£ã¦ï¼ã¤ã³ã¹ã¿ã³ã¹ã«åã種é¡ã®ã³ã³ãããããã¤ããã¦ãããããã«ãªãã¾ããã ç°å¢ terraform 0.11.0 terraform-provider-aws 1.3.1 ææç© ä»åã®ã³ã¼ãã¯ãã¡ã github.com ã³ã¼ã ã¤ã³ã¹ã¿ã³ã¹ã®è¨å® Auto Scal
ããã«ã¡ã¯ãæè¿æ°ã«ãªã£ã¦ããåºä¹³é¡ã¯ãªãªã³ã®ã¼ããªãéçºé¨ã®å¡©å´ã§ãã ç§ã®æå±ãã¦ããMarketingAutomationãã¼ã ã§ã¯RealtimeMarketingã·ã¹ãã ã®éçºéç¨ãè¡ã£ã¦ããã¾ãã ãã®ã·ã¹ãã ã¯ZOZOTOWNã®ã¦ã¼ã¶ã¼ã«å¯¾ãã¦ã¡ã¼ã«ãLINEãªã©ã®ã³ãã¥ãã±ã¼ã·ã§ã³ãã£ã³ãã«ã使ãæ å ±ã®é ä¿¡ãè¡ããã®ã§ãã ã¡ã«ãã¬ã®é ä¿¡æ°ãéå°æ°ãªã©ã®æ°å¤ã¯èªåçã«éè¨ãããBIãã¼ã«ã§ããRedashã«ãã£ã¦ã¢ãã¿ãªã³ã°ããã¦ãã¾ãã ãã®Redashã¯ç¤¾å PCã«ãã£ã¦ãã¹ãã£ã³ã°ããã¦ãã¾ããããéç¨é¢ã§è¾ãé¨åãå¤ã ãã£ããããããªãã¯ã¯ã©ã¦ãã«ç§»è¡ãã¾ããã 移è¡å ã®ã¯ã©ã¦ãã¯awsãé¸æããRedashããã¹ãã£ã³ã°ããããã®ãµã¼ãã¹ã¯ECS/Fargateãé¸æãã¾ããã ãã®è¨äºã§ã¯awsã«æ§ç¯ããç°å¢ãã移è¡ä½æ¥ãªã©ãç´¹ä»ãã¾ãã 移è¡åã®Redash 移
Amazon ECSï¼ä»¥ä¸ECSï¼ã¨Fargateãç¨ãã¦ãä»ã¾ã§EC2ã§éç¨ããã¦ãããµã¼ãã¹ãã³ã³ããåãã¦ECSä¸ã§ç¨¼åãããããã¸ã§ã¯ãããã¾ããã ç¹ã«ãFargateã¯2018å¹´7æ3æ¥ã«Tokyoãªã¼ã¸ã§ã³ã§ä½¿ããããã«ãªã£ãã°ãããªã®ã§ãæ å ±ãã¾ã ã¾ã å°ãªãææ¢ãã®ç¶æ³ã§ããã Posted On: Jul 3, 2018 AWS Fargate is now available in Asia Pacific (Tokyo) region. https://aws.amazon.com/about-aws/whats-new/2018/07/aws-fargate-now-available-in-tokyo-region/ ECS/Fargateã§å®ç¾ããã¢ã¼ããã¯ãã£ã»ãããã¤æ¹æ³ã®å ¨å®¹ã¨ãã®å®è£ æ¹æ³ãè¨ãã¦ããã¾ãã以ä¸ã®ã¹ã©ã¤ãã«ãã¾ã¨ãã¦ããã®ã§ãã²ã覧ãã ãã
ã¢ãã¤ã«ã¢ããªã¨ã³ã¸ãã¢ã®å±±ä¸ï¼@yamshtaï¼ã§ãã ä»åã¯ãAWSã®ä»¥ä¸ã®ãµã¼ãã¹ãç¨ãã¦ã³ã³ãããããã¤åºç¤ã®æ§ç¯ã試ãã¦ã¿ã¾ããã CodePipeline CodeBuild ECR ECS Fargate AWSã®ããã¥ã¡ã³ãã¯ä¸å¯§ã§æ å ±ãè±å¯ã§ããããµã¼ãã¹æ¯ã«æé ãæ¸ããã¦ããããä¸é£ã®æµããã¾ã¨ãã¾ãããCLIã§ã®æä½ã®ã¿ã§æé ãé²ãã¦ãã¾ãã ãªãã¢ããªã¨ã³ã¸ãã¢ããããã¤åºç¤ãæ§ç¯ããã®ã çåã«æã£ãæ¹ãããã£ãããã¨æãã®ã§æçã«æ¸ããã¦ããã ãã¾ãã LCLã®ã¨ã³ã¸ãã¢ãã¼ã ã¯ã¹ãã·ã£ãªã¹ãéå£ã¨ããããã¯ã¼ãã©ãªã¹ãéå£ã«è¿ããç¹å®ã®æè¡ã«ç¸ãããªãæåã¨ãããæ¨å¥¨ããç°å¢ã«ãªã£ã¦ãã¾ãããã®ãããã¡ã¤ã³ã«æ±ãæè¡åã伸ã°ããªãããå¥ã®æè¡ãç¿å¾ãããã¨ãã§ãã¾ãã ä»åã®çµç·¯ã§ãããç§å人ã¨ãã¦ã¯ã¤ã³ãã©ã«ã¯èå³ãããã¾ããã§ãããããããDockerã¯ç°
ãã³ã³ããå°å ¥ã£ã¦ã©ããããã£ããããããããâ¦ã Amazon ECSããªãªã¼ã¹ããã¦ãããæ©4å¹´ãDockerèªä½ã®é²æ©ãç®è¦ã¾ãããå¨è¾ºã®ãªã¼ã±ã¹ãã¬ã¼ã·ã§ã³ãã¼ã«ãé¢é£ããOSSãªã©ãç®ãè¦å¼µããããªå¢ãã§é²åãã¦ãã¾ãã以åã¯éçºç°å¢ã§ã®å©ç¨ã主æµã ã£ãã³ã³ããããä»ã§ã¯æ¬çªç°å¢ã§ã®æ¡ç¨äºä¾ãå¢ãã¦ãã¾ãããããã«ãFargateã®æ±äº¬ãªã¼ã¸ã§ã³ãªãªã¼ã¹ãEKSã®ä¸è¬å ¬éãªã©ã話é¡ã«ã¯äºæ¬ ãã¾ããã ã¢ããªã±ã¼ã·ã§ã³ã®ã³ã³ããåã«ã¯æ§ã ãªã¡ãªãããããã¾ãããå®éã«æ¬çªç°å¢ã«å°å ¥ããã«ã¯å¾æ¥ã®ã¢ããªã±ã¼ã·ã§ã³ã®èãæ¹ã¨ã¯éãé¨åããããç°¡åã«ã¯ããã¾ããããã®è¾ããä¹ãè¶ãã¦ããã£ã¨å¤ãã®äººã«ã³ã³ãããæ´»ç¨ãã¦ããããããã¨ããæ³ããããã®ã»ãã·ã§ã³ã«è¾¼ãã¾ããã AWSã¯å©ç¨ãã¦ãããã¢ããªã±ã¼ã·ã§ã³ãã³ã³ããåããã¡ãªããããã¾ãæããããªã人ããã³ã³ããã«é¢ããæ å ±éãå¤ã
AWS Fargateæ©ãæ±äº¬ã«æ¥ã¦ããã¨ããé¡ããããã¦ãæ±äº¬ã§1ã¤ã§ãäºä¾ãå¢ãããã¨è¨äºãæ¸ãã¦ãããå ¬éããåã«AWS Fargateãæ±äº¬ã«æ¥ããã¨ãå æ¥çºè¡¨ããã¾ããï¼ãã§ããã§ããã¢ãªãäºæ¥é¨ã®å¹³ç°ã§ãã ä»æ¥ã¯ARINEã§ä½¿ã£ã¦ãã(ãããããªã) AWS Fargate ã使ã£ãRSpecã®å®è¡ç°å¢ã®è©±ã¨ãDocker Compose使ã£ã¦ãããªãFargateããããããã¾ããããã¨ãã話ããã¾ãã èæ¯ ã¢ãªãäºæ¥é¨ã§ã¯ããªãããèªåããã£ã¨è¦ã¤ããç¾å®¹ã¡ãã£ã¢ ARINE ãéç¨ãã¦ãã¾ãã ARINEã®ãµã¼ããµã¤ãã¯Rubyã§æ¸ããã¦ãããã¦ã§ãã¢ããªã±ã¼ã·ã§ã³ãã¬ã¼ã ã¯ã¼ã¯ã¯Ruby on Railsãæ¡ç¨ãããã¹ãã«ã¯RSpecã使ã£ã¦ãã¾ãã ãã¹ãã¯å¾ã ã«å¢ãã¦ããç¾å¨ãã¹ãã1000件ã»ã©ã§ããã¹ãã«ãããæéãå¾ã ã«é·ããªããå®èµ°ããã®ã«10å以ä¸ãã
ã¯ããã« ã¯ã¦ãªãµãã¼ã¤ã³ã¿ã¼ã³2018ã®å¤§è¦æ¨¡ã·ã¹ãã éçºã³ã¼ã¹ã®ææå ±åããã¾ãã ä»å¹´ã¯ãã¡ã³ã¿ã¼ã®id:cohalzãããid:wtatsuruããã®ä¸ãå®éã«ä½¿ããã¦ãããµã¼ãã¹ãAmazon ECS(Elastic Container Service)ã«ãããã¤ããåºç¤ãæ§ç¯ãã¾ããã ã³ã³ããã§ãµã¼ãã¹ãæ¬çªéç¨ããããã«ãAutoScaleã®æ¤è¨¼ãããããã¤æéã®è¨æ¸¬ãæ¹åçã®æ¤è¨¼ãè¡ãã¾ãããã¾ããéçºããããã¤ããã¼ã楽ã«ããããã«ãAWS CodeBuildãCodePipelineã使ã£ã¦CI/CDã®æ§ç¯ãè¡ãã¾ãããããã«ãããPullRequestãã¨ã«CIãèµ°ããmasterã«ãã¼ã¸ããããèªåã§ECSã«ãããã¤ãããã¨ãã§ããããã«ãªãã¾ããé«éãªãããã¤åãæ¿ããè¡ãããã«ãBlue-Green Deploymentã®æ¤è¨ãè¡ãã¾ããã ä»ã«ããMicro
ããã³ãã¨ã³ãã¨ã³ã¸ãã¢ã®å°æã§ããä»æ¥ã¯ã¹ãã¼ã¹ãã¼ã±ããã®ããã³ãã¨ã³ãç°å¢ã®deployåºç¤ããç´¹ä»ãã¾ãã èæ¯ ã¹ãã¼ã¹ãã¼ã±ããã®ããã³ãã¨ã³ãã¢ããªã±ã¼ã·ã§ã³ã¯Node.jsã§æ¸ããã¦ãããECSä¸ã§åãã¦ãã¾ããããæè¿ã¯Swiftãkotlinãæ¸ãã¦ããã¢ããªã¨ã³ã¸ãã¢ãã¡ã¤ã³ã§ããã³ãã¨ã³ãã®ã³ã¼ããæ¸ãããã«ãªãã¾ããã deployã¯docker image bulidãµã¼ãã«å ¥ã£ã¦ä¸è¨ã³ãã³ããå®è¡ããæ¹å¼ã§ããã 1. ææ°ã³ã¼ãã®åå¾ 2. docker image build 3. ECRã«docker imageãpush 4. ecs-deployã使ã£ã¦ECSãæ´æ° ãã¦ECSã«åæ ããæ¹å¼ã§ããã èª²é¡ ã¢ããªã¨ã³ã¸ãã¢ã«ãµã¼ãã«sshãã¦deployãã¦ããããã¨æã£ã¦ããã®ã§ããããµã¼ãã®ç¥èãdeployã®ç¥èãªã©ãèªåã®ä¸ã«ãããªãå±äººåã
æ¨æ¶ã¨ããªã¼ã®å åã§ããDELISH KITCHENã®ãµã¼ããµã¤ããæ å½ãã¦ãã¦ãAPIãµã¼ãã®éçºã¨éç¨ãããã·ã¥éç¥ã¾ãããªã©ã®æ¥åãè¡ã£ã¦ãã¾ãã ç°¡åã«èªåã®ããã¯ã°ã©ã¦ã³ããç´¹ä»ãã¾ãã¨ãå¤ãã¯æãã½ã³ã³éä¿¡ãµã¼ãã¹ã®éçºããã®å¾ã¤ãã¼ã§ç¤¾å ãã©ãããã©ã¼ã ã®éçºãä»ã¯ç¡ãé æºãããã§ã»ã«ã¤ã«ã¡ã©ã¨ãããµã¼ãã¹ã®éçºããªã©ããã¦ãã¾ããã ãã®å¾ç¸ãã£ã¦ã¨ããªã¼ã«å ¥ç¤¾ãDELISH KITCHENã®éçºãæ å½ãããã¨ã«ãªãã¾ããã ä»æ¥ã¯ãããã£ãæ¥åã®ä¸ãããã¤ã³ãã©ã«é¢é£ããå 容ãã話ãããã¨æãã¾ããAmazon Elastic Container Service(ECS)ãç¨ããéç¨ã§ããã¿ãªããã®åèã«ãªãã°å¹¸ãã§ãã æè¿ AWS Fargateãçºè¡¨ãããã®ã§ããã絡ããã話ãã§ããã°ããã£ãã®ã§ããããã®å¯¾å¿ãããã®ã¯æ°ã¶æåã®ãã¨ãªã®ã§ã容赦ãã 以åã®æ§æã«ã¤
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}