2017-01-01ãã1ã¶æéã®è¨äºä¸è¦§
rubyã¨ãrailsã¨ãRSpecã®ã㨠class << self Rubyist Magazine - Ruby åç´è ã®ããã® class << self ã®è©± (ã¾ãã¯ç¹ç°ã¯ã©ã¹ã¨ã¡ã¿ã¯ã©ã¹) class << selfã§å®ç¾©ããã¯ã©ã¹ã¡ã½ãããmoduleãincludeããã¨ãã«å¼ã¹ãªãã moduleãªããscalaã®traitã¨ãswifâ¦
åºå®ãã¼ãã ã¨ã¤ã³ã¹ã¿ã³ã¹ã®æ°ä»¥ä¸ã«ã³ã³ãããå¢ãããªã ECSä¸ã§fluentdãè¤æ°ã³ã³ããã§åããã¦éç´ãµã¼ãã¼ã¨ãã¦åãããã¨ãã¦ããã æåã ãã試ãã«autoscaling groupã§1ã¤ã®ã¤ã³ã¹ã¿ã³ã¹ã ãç«ã¡ä¸ãã¦ãã³ã³ããã2ã¤(desired count = 2)ãªãµâ¦
github.com time_slice_formatã®å¤ãexampleã«å¾ã£ã¦ã%Y%m%d-%Hã«ãããã ãã©ããªããªãs3ã«ã¢ãããããªãã buffered_pathã«ã¯åããã¦ããã ãã©ãªããªãS3ã«ã¯ä¸ãã£ã¦ããªãã instanceã®policiyããªã¼ã¨ãs3ã®bucketã®policiyããªã¼ã¨ãè²ã è¿·ã£ã¦ã¦â¦
ãã°ã ã£ãããã ãmergeãããã®ã§ãã®ãã¡ä¿®æ£çããªãªã¼ã¹ãããã¯ããããã¾ã§ã¯"${replace(aws_ecr_repository.test.repository_url, "https://", "")}"ã§ãã®ãã github.com è¿½è¨ terraform v0.8.5 ã§åãè¾¼ã¾ããã
ããèªåã§ä¸ããä½ã£ã¦ã¿ãã¨ã»ã»ã» ä»ã¾ã§äººãä½ã£ãECSä¸ã§ãµã¼ãã¹ã®ä½æã¨ãæ´æ°ã¨ããã¿ã¹ã¯ã®æ´æ°ã¨ããã£ã¦ãã¦ãªãã¨ãªã使ãã¦ããã©ã ããèªåã§ä¸ããä½ã£ã¦ã¿ãã¨ããããã®è¦ç´ ãã©ããªã£ã¦ãã®ãä½ãåãã£ã¦ãªããã¨ã«æ°ã¥ããã ä»ã¾ã§ã¯Eâ¦
社å ã®ããã¸ã§ã¯ãã®ãåèã«ã§ããæµã¾ããç°å¢ãªã®ã§ã¾ãã¯ãããè¦ãã ä»ã«ãterraformå ¬å¼ãªãã¸ããªã«ããexampleãåèã«ãªã£ãã terraform/examples at master · hashicorp/terraform · GitHub
ä»ã®æã ããã§ããã¤ã³ãã©ã¨ã³ã¸ãã¢ã¯ãã¼ããã£ã¹ã¯ãã¨ãã±ã¼ãã«ãã¨ãã¬ããªãã¤ãããªãã¦ãå種ã¹ã¿ãã¯ãçµã¿åããã¦æ§ç¯ãããããã®ãã¤ã ããã°ã©ãã³ã°æ´=ã»ã¼ç¤¾ä¼äººæ´ã§ãiOSéçºãã¡ã¤ã³ã§ä¸çªé·ãã£ãããã®ãã¨Scalaã§ãµã¼ãã¼ãµã¤ããâ¦
ç§ã§ãã å ¬å¼ã®ãããåããããã docs.aws.amazon.com
åºæ¬çã«ã¯ãµãã¼ãããã¦ãªãã ãã©ããã¡ãã®æ¹ã®ããæ¹ãåèã«ãã¦ããããªé¢¨ã«ããã°ã§ããã£ã¡ãã§ããã If you set count to 1 on a resource, you get one copy of that resource and if you set count to 0, that resource is not created at allâ¦
AWS STSãåãããªãã£ã AWS Security Token Serviceã®ãã¨ã aws stsã§ã°ã°ã㨠ãã®ããã¥ã¡ã³ããåºã¦ãã¦ãã¼ã£ã¨èªãã§ãªããCLIãããã¨ãã«ä½¿ãã®ãï¼ã¿ãããªãããã§ãã£ããããªãã£ãã docs.aws.amazon.com EC2ãµã¼ãã¹ãä¿¡é ¼ããã¨ããæ¦å¿µ ãâ¦
ãµããã¨ç´ç¨ã®ã¯ã³ã¹ãããã®ãã¤ãèªæ²»ä½ã«ãã£ã¦å°åãã¦ããã¦ããè¿ä¿¡ç¨å°çå ¥ãã¦ããã¦ãããã¦ã¿ããªãããªãã°ããã®ã«ã¨æã£ããã ãã©ããããµã¼ãã¹ãããã¦ãªããæå¾ ãããã¨ã«ãããèªåãå·¡ãå·¡ã£ã¦æ®æ¥ãæ¥æ¬ã®çç£æ§ã®ä½ä¸ãçã¿åºãã¦ãâ¦