2021-01-01ãã1å¹´éã®è¨äºä¸è¦§
ã¯ããã« ä»åãVue.jsãã¿ãã(æ¬å½ã¯ãã£ã¨AWSãServerless Frameworkãªã©ããã¯ã¨ã³ãçãªãã¿ãæ¸ããããã¦ãä»äºã§ãããããã...) æè¿ãããã³ãå´ã触ãæ©ä¼ãããã®ã§ãããã³ã³ãã¼ãã³ããã¼ã¹ã§ã®éçº(ãããããã³ã³ãã¼ãã³ãé§åéçº(CDD)â¦
â» 2021/12/10 19:00 ä¸é¨å 容ãè¨æ£ãã¾ãã ã¯ããã« ååã«ç¶ããä»åãVue.jsãã¿ãã é åãªã©ã®å¤ã<template>å ã§è¡¨ç¤ºããå ´åãv-forãªã©ã®ã«ã¼ããç¨ãããã¨ã¯å¤ãã¨æãã¾ãã ããã¦ãã®éãé åã®ãã¼ã¨ãªãå¤(âkey)ãéè¤ãã¦ããå¤ãããã¨ãduplicated </template>â¦
ã¯ããã« Vue.jsã§ã¯ãdata()é¢æ°ã®æ»ãå¤ã«è¨å®ãããªãã¸ã§ã¯ãã®ãã¼(以ä¸ãdataå¤æ°ãã¨è¨è¼)ã«ã¤ãã¦ãmethodå ã®åé¢æ°ãªã©ã§å¤ãå¤æ´ããã¨ããããç»é¢ã«å³åº§ã«åæ ããã¾ãã <script> export default { data() { return { hoge: 'aaa' } }, methods: { exa</script>â¦
ã¯ããã« å æ¥ã®2021/11/20(å) ~ 2021/11/21(æ¥)ã«ãAWS User Group Japan(é称JAWS-UG)主å¬ã®ã¤ãã³ããJAWS PANKRATION 2021ããéå¬ããã¾ããã jawspankration2021.jaws-ug.jp ããã¦ãã®ã¤ãã³ãã§ãAPI Gateway 㨠AWS AppSync ã®ä½¿ãåããã¨ããã¿â¦
ã¯ããã« ååãããã³åã åã®è¨äºã§ãAWS AppsSync(以ä¸ãAppSyncã)ã®OpenID Connectèªè¨¼ãããã³Lambdaèªè¨¼ã«ã¤ãã¦æ¸ãã¾ããã ã¨ãªãã°ä»åã¯IAMèªè¨¼ããª...ã¨ãæã£ããã§ãããä»åã¯ã¡ãã£ã¨è©±é¡ãå¤ãã¦ãèªåã大好ããªServerless Frameworkã§Apâ¦
ã¯ããã« ååã®è¨äºã«ã¦ãAuth0ã¨OIDC(OpenID Connect)èªè¨¼ã§AWS AppSync(以ä¸ãAppSyncã)çµç±ã§GraphQLã¯ã¨ãªãå®è¡ããæ¹æ³ã«ã¤ãã¦æ¸ãã¾ããã ãã ãããã¡ããAppSyncã«ã¯OIDC以å¤ã«ãèªè¨¼ãè¡ãæ¹æ³ã¯ããã¤ãããã¾ãã ä»åã¯ãã®ä¸ãããååã®â¦
ã¯ããã« å æ¥ãåãã¦æ¥åã§AWS AppSync(以ä¸AppSync)ã¨GraphQLã使ãã¾ããã ãµãã¹ã¯ãªãã·ã§ã³ã使ããããã¯ã©ã¤ã¢ã³ãå´ãããã£ã¼ã«ãæå®åºæ¥ããã§ããã®ãè¯ãæãã§ãã ãã¨ãã¨ã³ããã¤ã³ãã®ç®¡çãAPI Gatewayãã楽ã§ããã(ç¡è«ããã¡ãªãâ¦
ã¯ããã« ãä¹ ãã¶ãã§ããã ãã¶éãéãã¦ãã¾ãã¾ããã ååããè²ã ããã¾ãã¦ãçµæã¨ãã¦8æããæ°ããå°±æ¥å ã§åãã¦ã¾ãã(ãã®è¾ºã¯ã¾ãå¥ã®æ©ä¼ã«æ¸ãã¾ã) ã§ãæ°ããç°å¢ã§ãAWSã«æºãã£ã¦ãã¾ããã ã³ã¼ãã¬ãã¥ã¼ãªã©ãéãã¦ã(ç¥ã£ã¦ãã¤ãâ¦
ã¯ããã« å æ¥(2021/6/28)ããNodeå¦å 36æéç® ãªã³ã©ã¤ã³ãã¨ããã¤ãã³ãã§ãNode16ã®æ°æ©è½ã®ç´¹ä»ãã¨ããå 容ã§çºè¡¨ããã¦é ãã¾ããã(è¦è´ï¼ãªã¢ã¯ã·ã§ã³ãã ãã£ãæ¹ã ããããã¨ããããã¾ãã) nodejs.connpass.com ãã®ä¸ã®çºè¡¨è³æã§Sleepæ©è½(â¦
ã¯ããã« 2021å¹´4æã«ãNode.jsã®version10ããµãã¼ãçµäºã¨ãªããAWSããããLambdaã®ãã¼ã¸ã§ã³ãæ´æ°ãã¦ãã ãããã¨ããæ¡å ãæ¥ã¦ã¾ããã ããã¦ãããã¨åãã¿ã¤ãã³ã°ã§version16ããªãªã¼ã¹ããã¾ããã ä»å¹´ã®10æã«ã¹ãã¼ã¿ã¹ãActiveã«ãªãã¾ãâ¦
ã¯ããã« 2ãæ以ä¸åã«ãªãã¾ããããCloudFormationãã³ãã¬ã¼ã(Serverless Frameworkã®serverless.ymlå«ã)ã§ã®ãªã½ã¼ã¹ã®ã¾ã¨ãæ¹ãã«ã¤ãã¦ãããã«ãåä¸ããã¸ã§ã¯ãã§ç®¡çããå ´åãã®ã¡ãªããã»ãã¡ãªãããæ¸ãã¾ããã ãããã2ãæãã ãã¶éâ¦
ã¯ããã« ååã®è¨äºã§AWS S3 Object Lambda(以ä¸S3OL)ã«ã¤ãã¦ã³ã³ã½ã¼ã«ä¸ã§è¨å®ããåä½ãããã¨ããã¾ã§æ¸ãã¾ããã ãã®ç¶ç·¨ã¨ãã¦ä»åã¯ãååã®æå¾ã«æ¸ããéããS3OLãCloudFormation(以ä¸Cfn)ã§å®ç¾©ããããã¤ãã...ãè¡ããã¨æãã¾ãã ãªãä»â¦
ã¯ããã« 3/19(é)ã«ãAmazon S3 Object Lambdaãã¨ããS3ã®æ°æ©è½ãGAã«ãªãã¾ããã aws.amazon.com ããã¯ä¸è¨å ¬å¼ãµã¤ãã«ã ãS3 ããåå¾ãããã¼ã¿ãã¢ããªã±ã¼ã·ã§ã³ã«è¿ãåã«ç¬èªã®ã³ã¼ãã追å ãã¦å¦çã§ããæ°æ©è½ã ã¨ããããã«ãä¾ãã°S3ãã±â¦
ã¯ããã« 2021/03/20(å) ã«ãªã³ã©ã¤ã³ã§ãJAWS DAYS 2021 -re:Connect-ãã¨ãããJAWS-UG(Japan AWS Users Group)ã®ã¤ãã³ããéå¬ããã¾ããã jawsdays2021.jaws-ug.jp å°ãåããåç¥ãã¦ãã¾ãããããã®ã¤ãã³ãã§ãAWS Lambdaã®ãã¹ãã§å½¹ç«ã¤å種ãâ¦
ã¯ããã« ã¿ãªãããCroudFormation(以ä¸ãCfnã¨è¨è¼ã)使ã£ã¦ã¾ããï¼ ã¢ããªç°å¢ãã¯ã©ã¦ãã§æ§ç¯ããéãæ§æããªã½ã¼ã¹ããã³ãã¬ã¼ããã¡ã¤ã«ã§å®ç¾©ãããã¨ãå¢ãã¾ããã(ãããããIaC(Infrastructure as Code)ã) ãããåãã®ãã¡ã¯ã¨ããããè¦æ¨¡â¦
ã¯ããã« ã¤ãå æ¥(2/3)ãAWS LambdaãNode.js 14ã®ãµãã¼ããéå§ãã¾ããã AWS Lambda ã Node.js 14 ã®ãµãã¼ããéå§ Node.js 10ã4ææ«ã§EOL(æ°è¦Lambdaä½æã¯3ææ«ãããã¾ã§)ã«ãªãã®ã§ããã®ã¿ã¤ãã³ã°ã§Node.js 14(ã¾ãã¯12)ã¸ã®ç§»è¡ãæ¤è¨ãã¦ãâ¦
æ¦è¦ JavaScriptã®ã½ã¼ã¹ãåä½ãã¹ãããéãJestã使ã£ã¦ãã人ãå¤ãã¨æãã¾ãã jestjs.io ã§ãããé¢æ°ã®ãã¹ããããéã«ããã®é¢æ°ãå¼ã¶å¥ã®é¢æ°ãä¸æçã«mocké¢æ°ã«ãããå ´åãããã¾ãã Jestã§ã¯ããããspyOn()ã¨ããã¡ã½ããã使ããã¨ã§å®â¦
ã¯ããã« æ°å¹´ããã¾ãã¦ããã§ã¨ããããã¾ãã(ãã1/25ã ãã©) å»å¹´ãããããããã¾ããããä»å¹´ãæ£æä¼ã¿ãçµããããããã平常é転ã«ãæ £ãã¦ããã®ã§ãããã°ã®æ¹ãéå§ãããã¨æãã¾ããã ã§ãæ°å¹´ä¸çºç®ã®ãã¿ã§ãããæåã¯å®å®ã®Serverless Fâ¦