2018-10-01ãã1ã¶æéã®è¨äºä¸è¦§
å°ãã¿ã§ãã AWSã§ã¯Billingã®è¨å®ã§ç¬èªã«å®ç¾©ããã¿ã°ã«å¯¾ãã¦ã³ã¹ããç®åºãããã¨ãã§ãã¾ãããã®æ©è½ã«ãã£ã¦ä¾ãã°ãããã¸ã§ã¯ãæ¯ãã·ã¹ãã æ¯ã®AWSæéã確èªã§ããããã«ãªãã¾ããæéã¯AWS Cost Explorer ããCost & Usage Report(CUR)ã¨ããCâ¦
ä»åã¯çãã§ã ITãOSSãã¯ã©ã¦ãã«éãããè±èªã主ä½ã®ããã¥ã¡ã³ãã§ããå ´åãæ¥æ¬èªè¨³ãç¡ããã¨ãå¤ãã§ãã è±èªè¦æãªäºº(ç§ã)ã¯ã¤ãã¤ãæ¥æ¬èªè¨³ãæ¢ãããã第ä¸è ã®ããã°è¨äºãæ¢ãã¦ãã¾ããã¨ãããã®ã§ãããä¸æ¬¡ã½ã¼ã¹ãã¡ããã¨èªããã¨ãâ¦
æè¿ãã¡ããã¡ãããã¹ããæ¸ãã¦ãªããã¼ã«ãä½ã£ã¦ã°ããã§ããä»åãæè¿ä½ã£ãã³ãã³ããã¼ã«ãç´¹ä»ãã¾ãã ããã¯ä½ï¼ github.com GCP ããã¼ã¸ãã¤ã³ã¹ã¿ã³ã¹ã°ã«ã¼ãã®ã¤ã³ã¹ã¿ã³ã¹ãµã¤ãº(æå°ãæ大)ã ããå¤æ´ããã³ãã³ãã©ã¤ã³ãã¼ã«ã§ãã ãªâ¦
AWSã¨GCPã¨ã®éããã©ã¤ãã¼ãã«éä¿¡ãããå ´åãVPNæ¥ç¶ãèãããã¾ãã éå»ã«ããã¤ãã®åèè¨äº(å¾è¿°ãã¾ã)ãããã®ã§ããã帯åå¹ ã«ã¤ãã¦è§¦ãã¦ãããã¨ãå°ãªããããæ°ã«ãªã£ã¦èª¿ã¹ã¦ã¿ã¾ããã AWS ãããã質å - Amazon VPC | AWS ã«æ¸ãã¦ããâ¦
ä¹ ãã¶ãã®AWSãã¿ã§ãã Goè¨èªã§AWSãªã½ã¼ã¹ãæä½ããå ´åã AWS SDK for Go ã使ããã¨ãå¤ãã¨æãã¾ãã ããã°ã©ã ã½ã¼ã¹ãæ¸ãããå½ç¶(ï¼)ãã¹ããæ¸ããã¨ãéè¦ã«ãªã£ã¦ãã¾ããã(ã§ãããï¼)ã ãã®ã¨ãã«AWS SDK for Goã使ã£ã¦ã®ãã¹ãã£ã¦ã©â¦
æ¨æ¥ã¯ Timecamp ã使ã£ã¦Trelloã¨Todoistã®ã¿ã¤ã ãã©ããã³ã°ããã¨ä¾¿å©ã¨ããè¨äºãæ¸ãã¾ããã blog.jicoman.info Timecampã使ãç®çã®ä¸ã¤ã«ãæ¥åã«è²»ãããå·¥æ°(=æé)ã¸ã®å ±åãããã®ã§ãããTimecampã®ç»é¢ããä¸æ¥ã®ã¿ã¹ã¯ã«è²»ãããæéãéè¨â¦
ã¿ã¹ã¯ç®¡çã¨ãã¦Trelloã¨Todoistã使ã£ã¦ãã¾ããTrelloã¯Iceboxã¨ãç©èªæ¬ãããã°è¨äºã®ãã¿ã¹ããã¯ãªã©æéã決ã¾ã£ã¦ããªãã¿ã¹ã¯ã管çããTodoistã¯æéã決ã¾ã£ã¦ããã¿ã¹ã¯ã管çããç¨éã§åãã¦ãã¾ãã ä»äºã§ã両æ¹ä½¿ã£ã¦ãã¾ããTrelloã¯ãã¼â¦
ä½ã£ãã®ã¯å年以ä¸åã ããã¾ã ç´ããªãããããªãã¨ãããããã®ã§ãããæ®æ®µã®æ¥åã§ããªãéå®ãã¦ããã®ã§ç´¹ä»ãã¾ãã ä½ãä½ã£ã akm (Aws access Key Manager) ã¨ãããAWSã¢ã¯ã»ã¹ãã¼ã便å©ã«ç®¡çããã³ãã³ãã©ã¤ã³ãã¼ã«ãä½ãã¾ãããGoè¨èªã§â¦
å æ¥ãGCPã§NATã¤ã³ã¹ã¿ã³ã¹ãæ§ç¯ããè¨äº ãæ¸ããã°ããã§ããããªãã¨ããã¼ã¸ãNATãµã¼ãã¹ Cloud NATããã¼ã¿çã§ãªãªã¼ã¹ããã¾ããã cloud.google.com ãªãªã¼ã¹ãããã®ã§ããã¥ã¡ã³ããèªãã§æ°ã«ãããã¤ã³ããæ´ç & å®éã«è©¦ãã¦ã¿ã¾ããã GCPâ¦
GCPã«éããAWSãªã©ä»ã®ãããªãã¯ã¯ã©ã¦ãã«ãè¨ãã¾ãããæ°è¦ã¢ã«ã¦ã³ãä½ææããããã©ã«ãã§ã¯ä½æã§ãããªã½ã¼ã¹æ°ã«ããªãã®å¶éãããããã¦ãã¾ããããã¯ã¢ã¯ã»ã¹ãã¼ããã¼ã¯ã³ãªã©ã®èªè¨¼æ å ±ãæ¼æ´©ããå ´åå°ãã§ã被害ãæå°éã«ãããªã©ã¨ãâ¦
ããã¾ãããã°ã§å®£ä¼ããããªãæ¹éã§ãã¤æå±å ãåãããããªãã¨ã¯ãã¾ãæ¸ããªãã£ãã®ã§ããããã¾ã«ã¯ããããªã¨ã å¼ç¤¾åã¨ãªãããã¯ã«ã³ãã¡ã¬ã³ã¹ãããã¾ãã jp.corp-sansan.com æ¥ç¨ï¼2018å¹´11æ10æ¥(å) éå¬æéï¼13:00ã19:00ï¼12:30ããåâ¦
Google Cloud Load Balancer(GCLB) ã§ããã¼ã¸ãã®SSL証ææ¸ããããªãã¯ãã¼ã¿ã§ãªãªã¼ã¹ããã¾ããã åæã«Managed TLS証ææ¸ã GCEã® HTTPS LB ã§ãµãã¼ãããã¾ãããhttps://t.co/YFsxBIlSHV#gcpjaâ Yuta.H (@yutah_3) 2018å¹´10æ11æ¥ Creating and Usâ¦
çããã¯ãµã¼ãã«ãã°ã¤ã³ããã¦ã¼ã¶ãã©ã®ããã«ç®¡çãã¦ã¾ããï¼ãµã¼ãæ¯ã«ã¦ã¼ã¶ãä½ããLDAPãActive Directoryãæãããã¾ãã ç§ãã¡ã¯ãããªãã¯ã¯ã©ã¦ãã使ã£ã¦ããã®ã§ããµã¼ãã«ãã°ã¤ã³ããã¦ã¼ã¶ã¨ã¯å¥ã®ã¦ã¼ã¶ãå¿ è¦ã«ãªãã¾ããã¢ã«ã¦ã³ãã®â¦
ããæ°æ¥Google Cloud Platform (GCP)ã«é¢ããè¨äºãæ¸ããã調ã¹ã¦ãããã¨ãå¤ãã§ããããã¥ã¡ã³ãã大äºãªã®ã¯è¨ãã¾ã§ããªãã§ãããããã¥ã¡ã³ãã¯ç´°ããä»æ§ã調ã¹ã¦ããã®ã«åãã¦ããã®ã§ãã©ããåããã¥ããã£ãããµã¼ãã¹ã俯ç°ãããã¨ãã«ã¯ãâ¦
CloudEndure ã§Amazon EC2ã¤ã³ã¹ã¿ã³ã¹ããGCEã¤ã³ã¹ã¿ã³ã¹ã«ç§»è¡ããè¨äºã®ä¸ã§ããGCEã¤ã³ã¹ã¿ã³ã¹ã®èµ·åãæ©ããããæ¹æ³ãç´¹ä»ãã¾ããã blog.jicoman.info é常ã§ããã°ãLinuxã®GCEã¤ã³ã¹ã¿ã³ã¹ã®èµ·åã¯1åç¨åº¦ã§SSHæ¥ç¶ã§ããã®ã§ãããCloudEndure â¦
æè¿ãæ°ãã人ãå ¥ã£ã¦ãã¦ã¡ã³ã¿ã¼ããã£ã¦ãã¾ããå¾è¼©ããã®é¢åãè¦ãã®ã¯æ°åã§å ¥ã£ãã¨ãã«å¦çã¤ã³ã¿ã¼ã³ãè¦ãã¨ã以æ¥ãªã®ã§ãçç¡ã¨ãã£ã¦ããã§ãã ã¡ã³ã¿ã¼ã¨ãã§ãããããªäººæãã¹ãã«ãããã¨ã¯æããªããã©ãåè·ä¸å¸ããæ ¹æ ã¯åããã¾ãâ¦
ã¡ã«ãã¤ã主å¬ãã¦ããGopheréå ´ã®èª²å¤å¦ç¿ã¨ãã¦DDDï¼ãã¡ã¤ã³é§åè¨è¨ï¼ã®åå¼·ä¼ããã£ãã®ã§åå ãã¦ãã¾ããã mercari.connpass.com Gopheréå ´ã«ã¤ãã¦ã¯éå»è¨äºãã覧ãã ããã blog.jicoman.info ä¼å ´ã«çãã¨ãé ã¨ç¾å³ãã軽é£ãç¨æããã¦ãâ¦
GCPã®Google Cloud Load Balancer(GCLB)ã§ç¹å®ã®IPã¢ãã¬ã¹ã®ã¿ã¢ã¯ã»ã¹ã許å¯ãããå ´åãããã¾ããããããã¨ãã¾ãã GCPã§IPã¢ãã¬ã¹å¶éãããå ´åã¯ããã¡ã¤ã¢ã¦ã©ã¼ã« ã«ã¼ã« ãæãæµ®ãã¹ãã¨æãã¾ãããããã¯GCEã«å¯¾ãã¦ã®è¨å®ã§ãããããGCLBâ¦
ã³ãã³ãã©ã¤ã³ï¼gcloudã³ãã³ãï¼ã§GCP Autoscaler *1 ãè¨å®ããã¨ãã®ã¡ã¢ã§ãã詳細ã®èª¬æã¯çãã¦ãã¾ãã Autoscalerãè¨å®ããããã«ãã¤ã³ã¹ã¿ã³ã¹ãã³ãã¬ã¼ããããã¼ã¸ãã¤ã³ã¹ã¿ã³ã¹ã°ã«ã¼ããGoogle ãã¼ããã©ã³ãµï¼GCLBï¼ã®ä½æãè¡ãã¾ããâ¦
以åã«AWSã®è«æ±ã¢ã©ã¼ããAWS CLIã§è¨å®ããè¨äºãæ¸ãã¾ããã blog.jicoman.info è«æ±ã¢ã©ã¼ããè¨å®ãããã¨ã§ãæãã¬ã³ã¹ãå¢ã®æå¶ã«ãªãã¾ãããç´°ããè¨å®ã«å¯¾å¿ã§ãã¾ããã ä¾ãã°ã ç¹å®ã®ãªã½ã¼ã¹ï¼S3ãªã©ï¼ã ãã«çµã£ã¦è«æ±ã¢ã©ã¼ããè¨å®ããâ¦