AWS
ã¯ããã« ãä¹ ãã¶ãã§ãã 以åã®è¨äºã§æ¸ããéãããªããªãä½èª¿ä¸è¯ãè¯ããªãããã¾ãååããéã空ãã¦ãã¾ãã¾ããã ã§ãåå¹´ã¶ãã®æè¡ããã°ã§ãããä»åã¯CDK Pipelinesã®self-mutateã«ã¤ãã¦ã«ãªãã¾ãã ãªããã®è¨äºã¯ AWS CDK Advent Calendaâ¦
ã¯ããã« ãã¡ããã¡ããä¹ ãã¶ãã§ãã ä½èª¿ä¸è¯ï¼ç¹ã«ã¡ã³ã¿ã«ä¸èª¿ãèªå¾ç¥çµå¤±èª¿çï¼ï¼ãã²ã©ããæ°ãæéã¾ã¨ãã«ããã°ããæ¸ãã¾ããã§ããã ä¹ ã ã®ããã°ã¨ãªãä»åã¯ãã¾ãã«æ¬æ¥ãJAWS Pankration 2024ãã§ç»å£ããã®ã§ããã®è©±ã§ãã JAWS Pankraâ¦
ä»åã®è¨äºã®æ¦è¦ AWS CDKï¼ä»¥ä¸ãCDKãï¼ã§IAMãã¼ã«ã«IAMããªã·ã¼ãã¢ã¿ããããéã®ã¢ã¿ããæ¹æ³ã«ããæåã®éããæ¤è¨¼ãã ã¯ããã« IAMãã¼ã«ï¼ä»¥ä¸ããã¼ã«ãï¼ã使ç¨ããéãããã¼ã«ã«IAMããªã·ã¼ï¼ä»¥ä¸ãããªã·ã¼ãï¼ãã¢ã¿ãããã¦æ¨©éãè¨å®ããâ¦
æ¬æ¥ã®ãé¡ AWS CDKï¼ä»¥ä¸ãCDKãã¨è¨è¼ï¼ã«ããã¦ãæ¢åã®S3ãã±ãããå¥ãã±ããã®ããµã¼ãã¼ã¢ã¯ã»ã¹ãã°ãã®éä¿¡å ã«è¨å®ããã¨ãCloudFormationï¼ä»¥ä¸ãCFnãã¨è¨è¼ï¼ã«ãããã¤ããéã«ã¨ã©ã¼ã«ãªã 詳細 ï¼Webãã¹ãã£ã³ã°ãè¡ã£ã¦ããS3ãã±ãããªã©â¦
â»3/25 17:00 å 容ãä¸é¨ä¿®æ£ãã¾ãã ä»åã®ãé¡ Amazon DynamoDB(以ä¸ãDynamoDBã)ãããªã½ã¼ã¹ããªã·ã¼ã§ã®ã¢ã¯ã»ã¹å¶å¾¡ã«å¯¾å¿ããã®ã§ã試ãã¦ã¿ã æ¬é¡ 3/21(æ¥æ¬æé)ã«ãDynamoDBã«ãªã½ã¼ã¹ããªã·ã¼æ©è½ã追å ããããã¨ãAWSå ¬å¼ããçºè¡¨ããã¾ããâ¦
æ¬æ¥ã®ãé¡ AWSç°å¢ã§ãAWS Secret Manager(以ä¸ãSecret Managerã)ã使ç¨ãã¦ãAmazon RDS(以ä¸ãRDSã)ã®ã·ã¼ã¯ã¬ããæ å ±ç®¡çï¼ã·ã¼ã¯ã¬ãããã¼ãã¼ã·ã§ã³ã使ç¨ãã¦ããå ´åã«ãAWS CloudFormation(以ä¸ãCFnã)ã§ãããã¤ãå®æ½ããã¨ãä¸è¨ã¨ã©ã¼ãâ¦
ã¯ããã« ãã®è¨äºã¯ AWS CDK Advent Calendar 2023 23æ¥ç® ã®è¨äºã§ãã qiita.com æ¦è¦ AWS CDKã¯ãAWSå ¬å¼ã®IaC(Infrastructure as Code)ãã¼ã«ã¨ãããã¨ããããAWSã§IaCã使ã£ãã¤ã³ãã©æ§æ管çãè¡ãããå ´åã«ãè¦ãã§ãããã°ã©ãã³ã°è¨èª(TypeScrâ¦
ä»åã®ãé¡ ã¿ã¤ãã«éããAWS CDKã§Lambdaå®ç¾©ãæ¸ãéã«ã¡ãã£ã¨ãã工夫ã§CloudFormationãªã½ã¼ã¹æ°ãåæ¸ããæ¹æ³ãç´¹ä»ãã¾ãã æ®æ®µã¯ããã¾ã§ç¥çµè³ªã«ãªãå¿ è¦ã¯ããã¾ããããæ¥åãªã©ã§å¤æ°ã®ãªã½ã¼ã¹ãAWS CDKã§ç®¡çãã¦ããå ´åã«å½¹ã«ç«ã¤ãããâ¦
ã¯ããã« ããã«ã¡ã¯ã æè¿re:Inventããã£ã¦ããAWSã®ã¢ãããã¼ãããã®ããããã¨ã«ãªã£ã¦ã¾ããã ãããªä¸ã11/16(æ¨) ã«Lambdaã®ãã°å¨ãã«é¢ããä¸è¨ã¢ãããã¼ããçºè¡¨ããã¾ããã aws.amazon.com æ¦è¦ã¨ãã¦ã¯ä¸è¨ã®éãã§ãã JSONã§ã®ãã°åºåâ¦
ä»åã®ãé¡ åã åãåã³ååã«ããããLambdaãDockerã¤ã¡ã¼ã¸ã§ãããã¤ããæ¹æ³ãã«ã¤ãã¦è¨è¼ãã¾ããã ä»åã¯ãã®æçµç·¨ã¨ãããã¨ã§ãååç´¹ä»ããããããã©ãããã®ç¶ããè¨è¼ãããã¨æãã¾ãã ãªãä»å触ããäºé ã¯ãåã åã«å°ã触ãããã¤ã³ãâ¦
ä»åã®ãé¡ ååãLambdaãDockerã¤ã¡ã¼ã¸ã§ãããã¤ããæ¹æ³ã®åç·¨ã¨ãã¦ãAWS CDKã®å®ç¾©ãã«ã¤ãã¦æ¸ãã¾ããã ä»åã¯ãã®å¾ç·¨ã¨ãã¦ãDockerfileã®å®ç¾©ï¼ãããã©ãããã«ã¤ãã¦è¨è¼ãããã¨æãã¾ãã åç·¨ï¼AWS CDKã®å®ç¾©ï¼ããã¯ååï¼ å¾ç·¨ï¼Dockerfâ¦
ä»åã®ãé¡ ã¿ã¤ãã«ã®éãã§ãããAWSã«ããã¦Lambdaé¢æ°ãDockerã¤ã¡ã¼ã¸ã¨ãã¦ãããã¤ããæ¹æ³ã§ãã ãªãä»åã®ãé¡ã¯åç·¨ã»å¾ç·¨ã«åããã¦ãããä»åã¯åç·¨ã«ãªãã¾ãã åç·¨ï¼AWS CDKã®å®ç¾©ï¼ä»åã¯ããï¼ å¾ç·¨ï¼Dockerfileã®å®ç¾©ï¼ãããã©ããï¼ãâ¦
æ¬æ¥ã®ãé¡ ååããGitHubããAWSã«èªè¨¼ãè¡ã(OIDCã使ç¨)ãã¨ããã®ãAWS CDKã§å®è£ ãã¾ããã ä»åã¯ãã®éã§ããAWSããGitHubã«èªè¨¼ãè¡ããã¨ããã®ãAWS CDKã§å®è£ ãã¾ãã(AWS CodePipelineã§CI/CDãæ§æããéã«å¿ è¦ã«ãªãã¾ã) ãªãããã使ããâ¦
æ¬æ¥ã®ãé¡ CD/CDãªã©ã§GitHub Actionããcdk deployã³ãã³ããå®æ½ããéã«ãOIDCã使ç¨ãã¦(IAM Userã®ã¢ã¯ã»ã¹ãã¼ï¼ã·ã¼ã¯ã¬ããã¢ã¯ã»ã¹ãã¼ã§ã¯ãªã)IAM Roleã§AWSã¨èªè¨¼ãè¡ãæ¹æ³ ä¸è¨ãAWS CDKã§å®è£ ããæ¹æ³ ä¸è¨ãå®æ½ããéã«å¿ è¦ãªæé IAM OIDâ¦
ã¯ããã« å°ãåã®è©±ã«ãªãã¾ããã2023/6/22(æ¨) ï½ 2022/6/23(é)ã«AWS Dev Day 2023ããããã¦ãã®ç¿æ¥ã®6/24(å)ã«Reject Day 2023ãéå¬ããã¾ããã ããããä»äºããç»å£ããã§ãã¿ãã¿ãã¦ãã¾ãã¾ããããåå ããææ³ãªã©ãç°¡æ½ã«æ¸ããã¨æãã¾ãâ¦
æ¬æ¥ã®ãé¡ Serverless Frameworkï¼ä»¥ä¸ãSFWãï¼ã«ããã¦ãAPI Gatewayã®APIãã¼ãä½æããæ¹æ³ãåã³ãã®éã®æ³¨æç¹ã«ã¤ãã¦ã ãªãä»åã¯é·ããªããããªã®ã§ãä¸è¨ã®ããã«åç·¨ã¨å¾ç·¨ã®2åã«åãã¦ãã¾ãã åç·¨ï¼ä½ææ¹æ³ï¼ä»åã¯ã³ã³ï¼ å¾ç·¨ï¼æ³¨æç¹ã¨â¦
æ¬æ¥ã®ãé¡ Serverless Frameworkï¼ä»¥ä¸ãSFWãï¼ã«ããã¦ãAPI Gatewayé¢é£ãã°ã®åºåæ¹æ³ã«ã¤ãã¦ã *1 åè Serverless Frameworkå ¬å¼ãã¼ã¸ ããæ¹ provider.logsã»ã¯ã·ã§ã³å ã®åéä¿¡æ¹å¼(httpApi, restApi, websocket)ã«API Gatewayé¢é£ãã°ã®ããããâ¦
ä»åã®ã話 AWSã®è«æ±é¢é£ã®ããªã·ã¼ã«ã¤ãã¦ãä»å¹´(2023å¹´)7æ6æ¥ããé©ç¨ãããæ°ããããªã·ã¼ã«æ´æ°ããæ¹æ³ 詳細ã«ã¤ã㦠AWSã§è«æ±é¢é£ã®æ å ±*1ãæ±ãIAMããªã·ã¼ã«ã¤ãã¦ãä»å¹´ã®1æ10æ¥ã«æ°ãããã®ããã¼ã³ããããããã¤ãã®ããªã·ã¼ã追å /å»æ¢ãâ¦
ã¯ããã« ãä¹ ãã¶ãã§ãã åã åã®AWS Summit 2023ã®ããã°ã§ãå°ã触ããããããã¾ããããAWSã½ãªã¥ã¼ã·ã§ã³ã¢ã¼ããã¯ãã¢ã½ã·ã¨ã¤ã試é¨(SAA-C03ã以ä¸ãSAAãã¨è¡¨è¨)ãåé¨ããç¡äºåæ ¼ãã¾ããã®ã§ããã®ä½é¨è¨ï¼æ å ±ãªã©ãããã°ã«æ®ããã¨æãã¾â¦
ã¯ããã« ãä¹ ãã¶ãã§ãã YAPC::Kyoto 2023ãçµãã£ã¦ãããæ¥åããã¡ããã¡ãå¿ããã£ãããAWSã½ãªã¥ã¼ã·ã§ã³ã¢ã¼ããã¯ã試é¨ãåé¨ãã¦ããã§ãå ¨ç¶ããã°ãæ¸ãæéãããã¾ããã§ããã ã§ãä¹ ãã¶ãã®è¨äºã§ããã4/20(æ¨)ï½4/21(é)ã«å¹å¼µã¡ãã»â¦
ã¯ããã« ååãAWS Advent Calendar 2022ã®é¢é£è¨äºã¨ãã¦ãCloudWatchã®ã¡ããªã¯ã¹ã«é¢ããè¨äºãæ¸ãã¾ããã ä»åã¯ãã®ç¶ãï¼ã¨ãããã¨ã§ãCloudWatchã¢ã©ã¼ã ã«ãããæ¬ è½ãã¼ã¿ã®å¦çãã«ã¤ãã¦ã§ãã ã¡ãªã¿ã«ããæ¬ è½ãã¼ã¿ã®å¦çãã¯CloudWatchã¢â¦
ã¯ããã« â»ãã®è¨äºã¯ãAWS Advent Calendar 2022ã®è¨äºã§ãã æè¿ãä»äºã§ä¹ ã ã«CloudWatchãã¬ãããªè§¦ã£ã¦ããã¾ãã ãã CloudWatchã«è§¦ããéãæ¯åãã¡ããªã¯ã¹å¨ããè¯ããããã...ãã¨ãªãã®ã§ãä»åã¡ããªã¯ã¹å¨ãã«ã¤ãã¦ãã£ãã調ã¹ã¦ã¿ã¾ããâ¦
ä»åã®å 容 ä»ã¾ã§ä½åº¦ãAWSã®CloudWatchãä»äº&ãã©ã¤ãã¼ãã§è§¦ã£ã¦ãã¾ãããCloudWatchã£ã¦ããªãããéããããªã...ãã¨æããã¨ãå¤ãã£ãã®ã§ãCloudWatchã®æéã«ã¤ãã¦èª¿ã¹ããã¨ã«ãã¾ããã ãªããèªåã®èªèã誤ã£ã¦ããå¯è½æ§ãããã®ã§ãå¿ ãâ¦
ã¯ããã« ä»å¹´(2022å¹´)1ææ«ã«ãServerless Frameworkãã¡ã¸ã£ã¼ãã¼ã¸ã§ã³ã¢ãããããversion3ããªãªã¼ã¹ããã¾ããã ä»ã¾ã§ãªããªã触ãæ©ä¼ããªãã£ãã®ã§ãããå æ¥å°ã触ãæ©ä¼ããã£ãã®ã§ãversion3ã®æ°æ©è½ãè¨è¼ãããã¨æãã¾ãã ã¾ããversionâ¦
ä»åã®è¨äº Japan AWS User Group(JAWS-UG)ãéå¬ããã¤ãã³ããJAWS DAYSãä»å¹´ãéå¬ããããã¨ã決ã¾ãã¾ããã(å ¬å¼ãµã¤ãã¯ä¸è¨) note.com ããã«é¢ãã¦ãéå¶ã®æ¹ãããä»å¹´ç»å£ãæ¤è¨ãã¦ããæ¹åãã«ãæ¨å¹´ç»å£ããä½é¨è«ãæ¸ãã¦ã»ãããã¨ããä¾é ¼â¦
ä»åã®å 容 ååãAWS SDK for JavaScript v3(以ä¸v3)ã§DynamoDBãæ±ãLambdaãæ¸ãã¨ããããã°ãæ稿ãã¾ããã ä»åã¯ãã®ç¬¬äºå¼¾ã§ãS3ãæ±ãLambdaãæ¸ãã¦ã¿ã¾ãã S3ã¯AWSã®ãªã½ã¼ã¹ã®ä¸ã§ãæ±ãæ©ä¼ããããã¯ã©ã¹ã«å¤ã(ã¨æã)ã®ã§ãè¦ãã¦æã¯ãªãâ¦
ä»åã®å 容 AWS LambdaãAWS SDK for JavaScript v3(以ä¸ãv3ãã¨è¨è¼)ã§æ¸ã ç¾å¨ã¡ã¸ã£ã¼(ã ã¨æã)ã®ã¯AWS SDK for JavaScript v2(以ä¸ãv2ãã¨è¨è¼) ãµã³ãã«ã¨ãã¦ãDynamoDBã®ãã¼ã¿ãåå¾ããã³ã¼ããæ¸ã åèãµã¤ã AWS SDK for JavaScript v3 (AWSâ¦
ã¯ããã« å æ¥ã®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以å¤ã«ãèªè¨¼ãè¡ãæ¹æ³ã¯ããã¤ãããã¾ãã ä»åã¯ãã®ä¸ãããååã®â¦