ã³ã³ãã
ã¿ãã§ã. ãAWSã³ã³ããè¨è¨ã»æ§ç¯ï¼»æ¬æ ¼ï¼½å ¥éããèªãã§ã¦,ECS Fargate ã§è¸ã¿å°ãä½ããã³ãºãªã³ãããã¾ã.ãã®è¸ã¿å°ã³ã³ããã使ã£ã¦ Eureca ããã®è¨äºã§ç´¹ä»ããã¦ããã¼ã«ã«ã® DB ã¯ã©ã¤ã¢ã³ããããã©ã¤ãã¼ããµããããã® Aurora 㸠socat 㧠TCâ¦
ã¿ãã§ã. redash v10 ã10/2ã«ãªãªã¼ã¹ããã¾ãã.ãã¼ã«ã«ã« v8 ãå ¥ãã¦ãã®ã§ãã¼ã¸ã§ã³ã¢ããããã¦ã¿ã¾ãã.ãã®ä½æ¥å 容ããã®è¨äºã«ã¾ã¨ãã¦ããã¾ã.ãªã,ãã¼ã«ã«ã¯æ¬¡ã®ãããªç°å¢ã«ãªãã¾ã. % sw_vers ProductName: Mac OS X ProductVersion: 10â¦
ã¿ãã§ã. ååã®è¨äºã§ Mackerel ã®ã«ã¹ã¿ã ãã©ã°ã¤ã³ã使ã£ãç£è¦ããã£ã¦ã¿ããã§ãã,EC2 ã® Uvicorn ããã»ã¹æ°ã®åå¾ã¨ããã»ã¹ã®ç£è¦ããã¦ã¿ã¾ãã.ä»åã¯ååã®ã«ã¹ã¿ã ãã©ã°ã¤ã³ã使ã£ã¦ ECS Fargate ä¸ã®ããã»ã¹ç£è¦ãããã¦ããã¾ã. sadayosâ¦
ã¿ãã§ã. ãAWS Protonãã GA ããã®ã§,使ã£ã¦ã¿ããã¨æããµã³ãã«ããã¸ã§ã¯ãã使ã£ã¦ã¿ã¦ãã®è¨äºã«ææãªã©ã¾ã¨ãã¦ããã¾ã. AWS announces the general availability of AWS ProtonToday, AWS announces the general availability of AWS Proton, tâ¦
ã¿ãã§ã. åå Amazon Linux2 ã®ä¸ã§ FastAPI ã®ã³ã¼ãã« X-Ray ãä»è¾¼ã¿ã¾ãã.ä»å㯠ECS Fargate ä¸ã§åä½ãã FastAPI ã®ã³ã¼ããã X-Ray ã«ãã¬ã¼ã¹ããæ å ±ãéãæã«è¨å®ããå 容ãããã£ãã®ã§æ´çãã¦ãã¾ã. sadayoshi-tada.hatenablog.com ECS â¦
ã¿ãã§ã. æ¥å㧠ECS Fargate ã®ç£è¦ããã¦ããæã« Mackerel ã®ã³ã³ããã¨ã¼ã¸ã§ã³ããã»ããã¢ããããããæ¹ã確èªãã¾ãã.è¨å®æ¹æ³ããã®è¨äºã§ã¾ã¨ãã¦ããã¾ã. 確èªããç°å¢ ã³ã³ããã¨ã¼ã¸ã§ã³ãã®ã»ããã¢ãã Systems Manager Parmeter Store ã«â¦
ã¿ãã§ã. æè¿ãã£ã±ã ECS å¨ãã触ã£ã¦ãããã§ãã,ã³ã³ããã®ãã°ã CloudWatch Logs ã«åºãã®ã¯ã³ã¹ãçã«é¿ãããã£ãã®ã§ FireLens çµç±ã§ S3 ã«åºãããã«ãã¾ãã.S3 ã«åºãã¡ããã° Athena ãããã°ãã¯ã¨ãªã§ããã¨æã£ã¦ãã£ã¦ã¿ãã®ã§ãã®è¨äºâ¦
ã¿ãã§ã. S3 ãã GCP ã®ã¹ãã¬ã¼ã¸ãµã¼ãã¹ã§ãã GCS ã«å¯¾ãã¦ãªãã¸ã§ã¯ããåæãããããã¨ããã,å®æå®è¡ãããã Fargate ã«ç»é²ãã¦å¦çããããã¨ã«ããã®ã§ãã®è¨å®ãã¾ã¨ãã¦ããã¾ã. S3 ãã GCS ã¸ã®åæææ³ é¢é£è¨äº Fargate ã«ç»é²ãã Dâ¦
ã¿ãã§ã. ãAWS Copilot CLIããv0.4.0ã9/22ã«ãªãªã¼ã¹ããã¾ãã.ãã®è¨äºã§v0.4.0ã®ãªãªã¼ã¹ãã¼ããåç §ãã¦ã©ã®ãããªæ©è½ã追å ãããããæ´çãã¦ããã¾ã. ãªãªã¼ã¹ãã¼ã github.com 1. ãã¤ãã©ã¤ã³ã®æåæ¿èªããµãã¼ã 2. ã¿ã¹ã¯ ID ã«ãããµã¼â¦
ã¿ãã§ã. ãAWS Copilot CLIããv0.3.0ã8/14ã«ãªãªã¼ã¹ããã¾ãã.v0.2.0ãåºãã®ã7/21ã ã£ãã®ã§ä¸ã«æå¾ã«æ°ãããã¼ã¸ã§ã³ããªãªã¼ã¹ããã¦éçºãæ©ããªã¨æãã¾ã.ãã®è¨äºã§v0.3.0ã®ãªãªã¼ã¹ãã¼ããåç §ãã¦ã©ã®ãããªæ©è½ã追å ãããããæ´çãã¦â¦
ã¿ãã§ã. ãAWS Copilotãã®ã³ãã³ãã§copilot pipelineããã¯ãã¾ãã³ãã³ããããã¾ã.ãã®ã³ãã³ãã§ã¯,GitHub ã«ã³ã¼ããããã·ã¥ããæã« CodeBuild,CodePipeline ã«ãããªãªã¼ã¹ãã¤ãã©ã¤ã³ãä½ããã¨ãã§ãã¾ã.ãã®è¨äºã§ã¯,copilot pipelineã³ãâ¦
ã¿ãã§ã. ãAWS Coplilot CLIããv0.2.0ã«ãªã£ãæã«è¿½å ãããcopilot storage initã³ãã³ããããã¾ã.ãã®ã³ãã³ã㧠S3 ããã㯠DynamoDB ã ECS ã®ã¢ããªã±ã¼ã·ã§ã³ã¨é¢é£ã¥ããã,ãããã¤ããæãä¸ç·ã«å±éããã¾ã.ä»åã¯ã¹ãã¬ã¼ã¸ãªã½ã¼ã¹ã追â¦
ã¿ãã§ã. ãAWS Copilot CLIãã®ã³ãã³ãã¨ãã®ãã©ã¡ã¼ã¿ã¼ã§ã¾ã ã¾ã ç¥ããªããã¨ãå¤ãã®ã§ãã®è¨äºã§ã³ãã³ãã¨ãã©ã¡ã¼ã¿ã¼ã確èªãã¦,ãAWS Copilotãã®ç解ãæ·±ãããã¨æãã¾ã. åç §ããããã¥ã¡ã³ã github.com ãªã,CLI ã®ãã¼ã¸ã§ã³ã¯ 0.4.0 ã§â¦
ã¿ãã§ã. ååãCopilot CLIãã®å°å ¥ã¨ Get Started ã®è¨äºãæ¸ãã¾ãã. sadayoshi-tada.hatenablog.com ä»åã¯, ãAWS Copilotã(以ä¸,Copilot)ãç解ããããã«ã©ããªæ¦å¿µãç¨èªããããã確èªãã¦ãã¼ã«ã®ä½¿ãæ¹ãæ´çãã¦ããããã¨æãã¾ã. ãã¼ã«ã®â¦
ã¿ãã§ã. ç¾å¨ãã¼ã¿çã§ãã ECS ã Fargate ã§ã®ã¢ããªã±ã¼ã·ã§ã³ã®ä½æ/ãªãªã¼ã¹/管çããããã®éçºè åããã¼ã«ã§ãããAWS Copilot CLIãã触ã£ã¦ã¿ã¾ãã.ãã®è¨äºã§ãã¼ã«ã®æ¦è¦,ãã¼ã«ã®å°å ¥,ãµã³ãã«ã¢ããªã±ã¼ã·ã§ã³ã®ãããã¤ãéãã¦ãã®ãã¼â¦
ã¿ãã§ã. ã³ã³ããã§ã¢ããªãåããã,ãã®ç°å¢ã Terraform ã§æ§æããçµé¨ãç©ãã§ããããã¨æããã³ã³ããæ代ã®Webãµã¼ãã¹ã®ä½ãæ¹ããè³¼å ¥ãã¾ãã.æ¬æ¸ãèªäºããã®ã§,å¦ã¹ããã¨ã¨ææãã¾ã¨ãã¦ããã¾ã. Booth booth.pm ç®æ¬¡ æ¬æ¸ã§å¦ã¹ãã㨠â¦
ã¿ãã§ã. Terraform ã¨ã³ã³ããã®åå¼·ã®ä¸ç°ã§ãã³ã³ããæ代ã®Webãµã¼ãã¹ã®ä½ãæ¹ããèªãã§ãã¾ã.æ¬æ¸ã§ã¯ CI/CD ã« CircrlCI ã使ãã¾ã.CircleCI ã®å®ç¾©ã§æ¬æ¸ã®å 容ããã®ã¾ã¾è»¢è¨ããéã«ã¨ã©ã¼ãçºçããå ´é¢ãããã¾ãã.CircleCI ã触ããã®ãåâ¦
ã¿ãã§ãã Amazon EKS(以ä¸ãEKS)ãæ¨å¹´æ±äº¬ãªã¼ã¸ã§ã³ã«å¯¾å¿ãã¾ããã aws.amazon.com æ±äº¬ãªã¼ã¸ã§ã³ã« EKS ããããã¨ã§å©ç¨æ¤è¨ããã¦ããæ¹ãå¤ãã®ã§ã¯ãªãã§ããããï¼ ä»åã¯ãEKS ã®å®è·µçãªä½¿ãæ¹ãå¦ã¹ãã¯ã¼ã¯ã·ã§ããã«è§¦ãã¦ã¿ãã®ã§ãã¯ã¼â¦
ã¿ãã§ãã ã ãã¶ä½èª¿ã復調ãã¦ãã¾ããããã¨ããå°ãæ°ãæããã«ç´ãã¦ãã¾ãã Gitã³ãã³ããã¼ãã·ã¼ã Gitã³ãã³ãã使ãæ©ä¼ãå¢ãã¦ãããã§ãããé½åº¦ãããã§èª¿ã¹ã¦ããã®ã§ã¾ã¨ãã¦ããã¾ã ã³ãã³ã 説æ å©ç¨ä¾ config åæè¨å®ã®ã³ãã³ã giâ¦
ã¿ãã§ãã Kubernetes Dockerã®ãªã¼ã±ã¹ãã¬ã¼ã·ã§ã³ãã¼ã«ããKubernetes(ã¯ã¼ãããã£ã¹) Docker Composeãåæ§ã®ãã¼ã«ã ããKubernetesã¯ãã¼ã«ã«ããªã¢ã¼ãã«å¯¾ãã¦ããªã¼ã±ã¹ãã¬ã¼ã·ã§ã³ã§ããã®ãç¹å¾´ æ¦å¿µ Pod : ã³ã³ããã®çä½ãæã Service : â¦
ã¿ãã§ãã æ¯æ¥ä½ãåå¼·ããªãæ¥ãªãã¦ãããã¾ããã ãããªããã§æ¯æ¥å¦ãã ãã¨ã(éã«)ã¢ã¦ãããããã¦ããã·ãªã¼ãºãæ¯æ¥ãã£ã¦ããã¾ããæ¸ãå 容ã¯æ§ã ã§ãã ãããããè¡ã£ã¦ã¿ã¾ãããï¼ Docker Dockerãèµ·åããã¨ãã®ã³ãã³ã à -> docker runâ¦
ã¿ãã§ãã ä»åã¯Dockerå®è·µæ´»ç¨ã¬ã¤ãã®11~13ç« ãèªãã å 容ãã¾ã¨ãã¦ããã¾ãã â»è¨äºã¯ç解ãã§ãããã³ã«ä½åº¦ãã¢ãããã¼ããã¦ãããã¨æãã¾ãã book.mynavi.jp ãªããå¯ææã¨ãã¦ãããã¤ã³ã¹ãã¼ã«ã使ã£ã¦ãããã¨æãã¾ãã ç®æ¬¡ 11ç« 12ç« 1â¦
ã¿ãã§ãã ä»åã¯Dockerå®è·µæ´»ç¨ã¬ã¤ãã®10ç« ãèªãã å 容ãã¾ã¨ãã¦ããã¾ãã â»è¨äºã¯ç解ãã§ãããã³ã«ä½åº¦ãã¢ãããã¼ããã¦ãããã¨æãã¾ãã book.mynavi.jp ãªããå¯ææã¨ãã¦ãããã¤ã³ã¹ãã¼ã«ã使ã£ã¦ãããã¨æãã¾ãã ç®æ¬¡ 10.1~10.2 10.3â¦
ã¿ãã§ãã ä»åã¯3ç« ã§ã www.oreilly.co.jp 3.1 GCPãAzureãAWSã¸ã®Kubernetesã¤ã³ã¹ãã¼ã«ãã GCPã®å ´å GCPã§ã¯ãGoogle Kubernetes Engine(GKE)ãæä¾ãã¦ãã å©ç¨ããã«ã¯GCPã®ã¢ã«ã¦ã³ãã¨ãgcloudãã¤ã³ã¹ãã¼ã«ãããå¿ è¦ããã # è¨å®ãåæå â¦
ã¿ãã§ãã ä»åã¯Dockerå®è·µæ´»ç¨ã¬ã¤ãã®9ç« ãèªãã å 容ãã¾ã¨ãã¦ããã¾ãã â»è¨äºã¯ç解ãã§ãããã³ã«ä½åº¦ãã¢ãããã¼ããã¦ãããã¨æãã¾ãã book.mynavi.jp ãªããå¯ææã¨ãã¦ãããã¤ã³ã¹ãã¼ã«ã使ã£ã¦ãããã¨æãã¾ãã ç®æ¬¡ 9.1 9.2~9.3 9.4â¦
ã¿ãã§ãã ä»åã¯2ç« ã§ã www.oreilly.co.jp 2.1 ã³ã³ããã¤ã¡ã¼ã¸ã¨ã¯ãOSã³ã³ããã®ä¸ã§ã¢ããªã±ã¼ã·ã§ã³ãåããããã«å¿ è¦ãªãã¡ã¤ã«å ¨é¨ãã«ãã»ã«åãããã¤ããªããã±ã¼ã¸ æã人æ°ãªã®ã¯Dockerã¤ã¡ã¼ã¸ ã³ã³ããã¯2ã¤ã®ã«ãã´ãªã«åãããã ã·ã¹ãâ¦
ã¿ãã§ãã ä»åã¯Dockerå®è·µæ´»ç¨ã¬ã¤ãã®8ç« ãèªãã å 容ãã¾ã¨ãã¦ããã¾ãã â»è¨äºã¯ç解ãã§ãããã³ã«ä½åº¦ãã¢ãããã¼ããã¦ãããã¨æãã¾ãã book.mynavi.jp ãªããå¯ææã¨ãã¦ãããã¤ã³ã¹ãã¼ã«ã使ã£ã¦ãããã¨æãã¾ãã ç®æ¬¡ 8.1 8.2 8.3 8.4â¦
ã¿ãã§ãã Dockerã®åå¼·ãã¦ããã®ã§ãããé¢é£æè¡ã®Kubernetesã®æ¬ãè²·ã£ãã®ã§ä¸¦è¡ã§åå¼·ãã¦ããã¾ãã www.oreilly.co.jp ï¼ 1.1 * Kubernetesã®ã³ã¢ã³ã³ã»ãããã¤ãã¥ã¼ã¿ãã«ã§ãããã¨ã宣è¨çè¨å®ããªã³ã©ã¤ã³ã§èªå·±å復ããã·ã¹ãã ã®3㤠* ã¤ãâ¦
ã¿ãã§ãã ä»åã¯Dockerå®è·µæ´»ç¨ã¬ã¤ãã®7ç« ãèªãã å 容ãã¾ã¨ãã¦ããã¾ãã â»è¨äºã¯ç解ãã§ãããã³ã«ä½åº¦ãã¢ãããã¼ããã¦ãããã¨æãã¾ãã book.mynavi.jp ãªããå¯ææã¨ãã¦ãããã¤ã³ã¹ãã¼ã«ã使ã£ã¦ãããã¨æãã¾ãã ç®æ¬¡ 7.1 7.2 7.3~7.1â¦
ã¿ãã§ãã ä»åã¯Dockerå®è·µæ´»ç¨ã¬ã¤ãã®6ç« ãèªãã å 容ãã¾ã¨ãã¦ããã¾ãã â»è¨äºã¯ç解ãã§ãããã³ã«ä½åº¦ãã¢ãããã¼ããã¦ãããã¨æãã¾ãã book.mynavi.jp ãªããå¯ææã¨ãã¦ãããã¤ã³ã¹ãã¼ã«ã使ã£ã¦ãããã¨æãã¾ãã ç®æ¬¡ 6.1 6.2 6.3 6.4â¦