aws
AWSã®ã¢ã«ã¦ã³ããå®å ¨ã«ä½¿ãããã«ãå¤è¦ç´ èªè¨¼ï¼ä»¥ä¸ãMFAï¼ãè¨å®ããã¨ããæ¹æ³ãããã¾ãã docs.aws.amazon.com MFAãç°¡åã«è¨ãã¨ãã¯ã³ã¿ã¤ã ãã¼ã¯ã³ã§èªè¨¼ããä»çµã¿ã§ãã Androidã®å ´åã¯èªè¨¼ã·ã¹ãã ã¨ããã¢ããªã¨é£æºããäºã§è¨å®ã§ãã¾ãã â¦
ã³ãã³ã(AWS CLI)ããæ軽ã«Lambdaé¢æ°ãå®è¡ãã¦çµæãå¾ãäºãåºæ¥ã¾ãã ãããåæå¼ã³åºãã¨è¨ãã¾ãã å®è¡ãããã¼ã¿ã¯jsonå½¢å¼ã§ä½æãã¦ã¢ãããã¼ããã¦å®è¡ããäºãå¯è½ã§ãã ãªãã·ã§ã³payloadã«ä½æãããã¡ã¤ã«ãæå®ããäºã§å®è¡ã§ãã¾ããâ¦
æè¿ãï¼å¹´ç¨ä½¿ç¨ãã¦ããMacBookãè²·ãæ¿ãã¾ããã support.apple.com æ©é触ã£ã¦ã¿ã¾ãããã便å©ã«ãªãã¾ãããå¦çã軽ããªãã¾ããã è³¼å ¥ããã ãã®ä¾¡å¤ã¯ããã¾ãã æ¬æ ¼çã«æ°ããMacãä»äºã§ä½¿ãã«ããããä»ã¾ã§ä½¿ã£ã¦ããMacã®ç°å¢ã移è¡ããå¿ â¦
Amazon SES(以ä¸ãSES)ã¯ãã¡ã¼ã«ãµã¼ãã¼ã«ããäºãåºæ¥ã¾ãã SESã«ç»é²ãããã¡ã¤ã³ããã°ãç´æ¥ã¡ã¼ã«ãéä¿¡ãããã¨ãå¯è½ãªã®ã§ãã¡ã¼ã«ãµã¼ãã¼ãç¨æããå¿ è¦ãããã¾ããã ï¼ãã¡ãããè¦ä»¶ã«ãã£ã¦ã¯EC2ã§ã¡ã¼ã«ãµã¼ãã¼ãæ§ç¯ããããAWS以å¤ã®â¦
EC2ã§ãµã¼ãã¼ãéç¨ãã¦ããã®ã§ãããæè¿ã¡ã¢ãªä½¿ç¨çããã£ã±ãã«ãªã£ã¦ãã¾ãã¢ããªã±ã¼ã·ã§ã³ãåããªãã¨ããäºãããã¾ããã æ å ±ãéãã¦ããã¨ãæ¬ä¼¼çã«ã¡ã¢ãªãä½ã£ã¦ã¹ã¯ãããããæ¹æ³ã«è¡ãçãã¾ããã ãã¦ã ä»åã¯EC2ã¤ã³ã¹ã¿ã³ã¹ã«ä»®è£ â¦
éçºç°å¢ã®æ§ç¯ã§ã³ã³ãããçµã¿åããã¦ä½¿ããã¨ãå¤ãã®ã§ãããå®éã®ç¢ºèªç°å¢ã«ã使ç¨ãã¦ã¿ããã¨èãã¦ã¿ã¾ããã ä»åã¯AWSã®ç°å¢ã«Dockerã§ã³ã³ããã管çããæ§æããã¦ã¿ããã¨æãã¾ãã ãã®éã«ãã³ã³ããã®ç®¡çãAmazon Elastic Container Regâ¦
æè¿ãµã¼ãã¼ã®å¾©æ§ä½æ¥ãè¡ãæ©ä¼ãããã¾ããã åå ã¯æããã¡ã¢ãªä¸è¶³ã§ãã éå»ã®ã¢ã¯ã»ã¹æ°ããããæ å ±ãç¡ãã£ãããæå°ã®æ§æã§æ§ç¯ãã¾ããããå®éã«ç¨¼åããã¦è¦ãã¨èããããªãã»ã©ã®ã¦ã¼ã¶ã¼ã訪ããããã§ãã åé·åã¯éè¦ã§ããã ãã¦â¦
ç§èªèº«Webæ¥çã«å ¥ã£ã¦ã6å¹´ç®ã«ãªãã¾ããããã®éã«æ§ã ãªåèæ¸ãèªã¿ã¾ããã èªãã æ¬ã®ä¸ã«ã¯æãåºæ·±ãæ¬ãããããããã¾ãã ä»åã¯ãã®æãåºã«æµ¸ãã¤ã¤ãåèæ¸ãè²·ãã¨ãã«èªåãæ°ãã¤ãã¦ãããã¤ã³ãããç´¹ä»ãã¾ãã ãã®è¨äºã§å¾ãããäº â¦
æè¿ãAWSãé »ç¹ã«è§¦ãæ§ã«ãªã£ã¦ãããã°ã«æè¡ç³»ã®è¨äºãæ®ãæ§ã«ãªãã¾ããã æ å ±ã®é²åºãå¤ããªãã»ã©ãèªåãæ å ±æµåºãã¦ããªããã¨ãã被害å¦æ³ã«ãããã¾ãã ããã¯ãå¿é ãããAWSã®ææä½é¨ã調ã¹ã¦ãã¾ãããããããã¾ããã å é§è ã«ã¯ãã¿ã¤â¦
ååã®ç¶ãã§ãã å®éã«Templateãä½æããã®ã§ãã¹ã¿ãã¯ãä½æãã¾ãã ãã ãããªã·ã¼ãè¨å®ãã¦ããªãã£ãã®ã§ãã®æã®å¯¾å¦æ¹æ³ã«ã¤ãã¦ã¾ã¨ãã¾ãã websandbag.hatenablog.com ãã®è¨äºã§å¾ãããäº CloudFormationã§ãã¼ã«ä½æ(iam:CreateRole)ã追â¦
lambdaã®ä½¿ãæ¹ãç¿å¾ããããã«ãlambdaã®ãã³ãºãªã³è³æãå ã«åå¼·ãã¦ãã¾ãã CloudFormationã®åå¼·ãå ¼ãã¦ããã®ã§ãæ§ç¯ã®é¨åãå ¼ãã¦å®æ½ãã¦ããã®ã§ããé¡è¨ã®ã¨ã©ã¼ãåºã¦ãã¾ãã¾ããã 解決ããã®ã§ãã®æã®å 容ãè¨é²ãã¾ãã ãã®è¨äºã§å¾ãâ¦
CloudFormationã®ãã³ãã¬ã¼ãã®ãã¼ãããããã¥ã¡ã³ãå ã§ã©ã®ããã«å¼ã³æ¹ãããã¦ããã®ãã¾ã¨ãã¾ããã åèªãåºã¦ããã¨ããã¥ã¡ã³ã解èªã調æ»ããããããªãã¾ããæ°ããè¨èãçã¿åºãäºãæ¸ããã¨æãã¾ãã ãã®è¨äºã§å¾ãããã㨠CloudFormatiâ¦
ååã®ãµã¼ãã¼ã¬ã¹ã®ã¹ã¹ã¡ S3ã§éçã³ã³ãã³ããµã¼ãã¼ãç«ã¦ãã§ã¯ãAWSã®ã³ã³ããã¼ã«ããã«ããç°å¢ãç«ã¡ä¸ãã¾ããã ä»åã¯ããã®ä½æ¥ãã«ã¼ãã³åãã¦ã¿ã¾ãã ç解ããã®ã«ããªãæéãããã£ã¦ãã¾ãã¾ããããä»ã¾ã§æåã§ãã£ã¦ããä½æ¥ãå¦çâ¦
ã©ããªãã¼ã¸ã§ãå ¬éããæã¯ãµã¼ãã¼ãå¿ è¦ã«ãªãã¾ãã éçãªã¦ã§ããµã¤ãç¨åº¦ã§ããã°ãã©ã®ä¼ç¤¾ã§ãä¸çªå®ããã©ã³ã§ãååãªäºãå¤ãã§ãã ããããä¸è¨ã®ãããªé¢åãçºçãããã¨ãããã¾ãã 1å¹´å¥ç´ãå¿ è¦ã ãã1å¹´ããµã¤ããå ¬éããªãã ãµã¼â¦
ã©ã®ãã¹ãã£ã³ã°ãµã¼ãã¹ã§ããã£ã¦ãããã¨ã¯ã»ã¼åãã§ããã解説çã§ä¼ããæã«ãã®è¨äºãããã¨è² æ ãæ¸ãã®ã§ã¾ã¨ãã¾ãã ãã®è¨äºã§å¾ãããæ å ± 次ã®ãã¹ãã£ã°ãµã¼ãã¹ã«æ¥ç¶ããæ¹æ³ github bitbucket aws codecommit sshéµã®çæ ã¿ã¼ããã«çã§â¦
ãã¼ã«ã«ç°å¢ã§ãdockerãæ§ç¯ã§ããããã«ã¯ãªã£ãã®ã§ããããããå®éã«ãµã¼ãã§éç¨ããæ¹æ³ãããã£ã¦ãã¾ããã§ããã ããã³é£ã競äºãã§ãã³ã¨ç©å¹²ãç«¿ããã£ã¦ãããã³ãã©ããã£ã¦çµã°ãã¦ããã®ãããããªããããªç¶æ ã§ããï¼ããã¾ãã大çã®å¤§â¦