You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
JavaScript(TypeScript)㧠ã¡ãã£ã¢ãµã¤ãã ã¤ã³ãã©ããæ§ç¯ããæ¹æ³ / jsconf-jp-2021
ã½ããã¦ã§ã¢éçºãITã¤ã³ãã©éç¨ãããã¦ãã®å¢çç·ä¸ã«ãããããã¯ãã«ãã¼ããç¹ã«DevOpsãå®ç¾ããããã®èªååããã¹ããã»ãã¥ãªãã£ãçµç¹æåã«ãã©ã¼ã«ã¹ãããDevOpsDaysããããã§ã½ããã¦ã§ã¢ã¨ã³ã¸ãã¢ã®ãã§ã·ã£ç«æ°ããInfrastructure as Code ã®éçãã¹ãæ¦ç¥ãããã¼ãã«ç»å£ãç¶ãã¦ãAWSä¸ã§äºæ¸¬å¯è½æ§ãæ ä¿ããããã®ä»çµã¿ã«ã¤ãã¦ç´¹ä»ãã¾ããååã¯ãã¡ãããã äºæ¸¬å¯è½æ§ã®3è¦ç´ ãã§ã·ã£ç«æ°ï¼ã§ã¯ãAWSã«ããã¦äºæ¸¬å¯è½æ§ãã©ãæ ä¿ãããããããã¡ãã£ã¨å ·ä½çãªã¨ããã«å¯ãã¦èãã¦ã¿ã¾ããããäºæ¸¬å¯è½æ§ã¨è¨ã£ã¦ãã¾ãããããã¡ãã£ã¨å解ãã¦ãã©ãããè¦ç´ ããæãç«ã£ã¦ããããå°ãèãã¦ã¿ããã¨æãã¾ãã ç§ãç«ã¦ããã¼ã¼ã«ããã°ãäºæ¸¬å¯è½æ§ã¯ä»¥ä¸ã®3è¦ç´ ããä½ããã¦ãã¾ãã1ã¤ç®ã¯åç¾æ§ãReproducibilityãåãæä½ã誰ããã£ã¦ãã
AWSãã¨ãã¸ã«ãããJavaScriptå®è¡ç°å¢ã«æ¬æ ¼åå ¥ãCloudflare WorkersãDeno Deployãªã©ã¨ç«¶å㸠Amazon Web Servicesï¼AWSï¼ã¯ãã¨ãã¸ç°å¢ã§è»½éãªJavaScriptã«ããå¦çãå®è¡å¯è½ãªæ°ãµã¼ãã¹ãAmazon CloudFront Functionsããçºè¡¨ãã¾ããã AWSã§ã¯ãã§ã«ã¨ãã¸ã§å¦çãè¡ããLambda@Edgeããæä¾ãã¦ãããããã§Node.jsã¨Pythonã«ããã³ã¼ããå®è¡å¯è½ã§ãã ãããLambda@Edgeã¯13ã«æã®ãªã¼ã¸ã§ãã«ã¨ãã¸ãã£ãã·ã¥ã«ããã¦å¦çãè¡ãããã®ã«å¯¾ããCloudFront Functionsã¯218ã«æ以ä¸ã®CloudFront Edge Locationsã«ããã¦å¦çãè¡ããããããããã¦ã¼ã¶ã¼ã«è¿ãåºç¯å²ãªãã±ã¼ã·ã§ã³ã§å®è¡ããã¾ãã ã¾ããå®è¡æéãLambda@Ed
ããã«ã¡ã¯ã https://boxil.jp ãä½ã£ã¦ããå¾³ç°(haze_it_ac)ã§ãã å æã«ä»é¢¨ï¼ãªæ§æã®APIãæ¥åã§ä½ã£ãã®ã§ããã®ç´¹ä»ããããã¨æãã¾ãã ä½ããã®ã»è¦ä»¶ éãªå³ å¤é¨ã®APIãå©ãããã®ã¢ããªã±ã¼ã·ã§ã³ã§ãã BOXILã®APIãµã¼ãããä»åä½ãAPIãå©ããããããå¤ã®APIãå©ãã¦æ å ±ãåå¾ããããå¦çãããããããã®ã§ãã ç¾æç¹ã§ã¯BOXILã®ã¿ã§ä½¿ããã¦ãã¾ããããã以å¤ããã使ç¨ããããã¨ãäºå®ã»æ³å®ãã¦ãããããBOXILã¨ã¯å¥ã®åºç¤ã§ä½æãã©ãããã§ãå®è¡ã§ããããã«æ§ç¯ããå¿ è¦ãããã¾ãã ãªããä»åã®ãµã³ãã«ãªãã¸ããªã¯ä»¥ä¸ã«ãªãã¾ããã½ã¼ã¹ã³ã¼ãã¨åããã¦èªãã§ã¿ã¦ãã ããã github.com å ¨ä½æ§æ æ¦è¦ éãªæ§æå³ AWS CDKãä¸å¿ã«æ®ãããAWS Lambdaã§å®è¡ãããã¢ããªã±ã¼ã·ã§ã³ã§ãã å®è¡ç°å¢ Webã¢ããªã±
AWSã«ããã¯ã©ã¦ãå ¥é å°ãåã«è©±é¡ã«ãªã£ã¦ããæ±äº¬å¤§å¦ã®è¬ç¾©è³æããã£ã¦ã¿ãã®ã§ãå 容ãææ³ãªã©ã¡ã¢ã è¬ç¾©ã§ä½¿ç¨ããã½ã¼ã¹ã³ã¼ãã¯ãã¹ã¦ Python ã§æ¸ããã¦ãã¾ãããèªåãå®éã«ä½¿ãã¨ããã TypeScript ã§æ¸ãã ãããªã¨æã£ãã®ã§ TypeScript ã§åçµãã¾ããã ããCDK ã®ã³ã¼ãã¯ãã¹ã¦ TypeScript ã§æ¸ãã¾ããããLambda é¢æ°ãåä½ç¢ºèªç¨ã®ã¹ã¯ãªãããªã©ãå ¨ã¦ç½®ãæããã¨ããã¾ã§ã¯è³ãããPython ã®ã¾ã¾ã§ãã åçµãããªãã¸ããªã¯ https://github.com/zaki-yama-labs/intro-aws ã«ã å¦ã¹ãã㨠æ¬è¬ç¾©è³æã«ã¯å ¨é¨ã§5ã¤ã®ãã³ãºãªã³ãããã¾ãã åãã³ãºãªã³ã§å©ç¨ãã AWS ã®ãµã¼ãã¹ã«ã¤ãã¦ã¯ä»¥ä¸ã®éãã å ¨è¬ AWS CDK: Cloud Development Kit CloudFor
AWS CDKã«ã¤ãã¦å¦ãã§ãããã¨ãhttps://cdkworkshop.com/20-typescript.html ããã£ãã CDKãã£ã¡ãããããä»å¾çµ¶å¯¾ä½¿ã£ã¦ããããã¨ããææ³ CloudFormationã§ã¯ãIAMã®ãã¼ã«ãããã¥ã¡ã³ããã«ããã£ãããªããä½ã£ã¦ããã®ãã¼ã«ããã®Lambda Functionã«ä»ä¸ãã¦...ã¿ããã«çµæ§é£ããæããªãããã£ã¦ããã®ããCDKã ã¨ç´æçã«æ¸ãä¸ãã¦ããã£ã ããLambda Function AããLambda Function Bã®invokeã許å¯ããã¨ãã ã£ãããfuncB.grantInvoke(funcA); ã£ã¦æ¸ãã ãã§ãããæãã«IAM Roleã¨ãä½ã£ã¦ä»ä¸ãã¦ããã ã³ã¼ãåããã¦ãã¦è£å®ãå¹ããããããã¥ã¡ã³ãè¦ãªãã¦ãåºæ¥ãããªãã¨ãåããããå®ç¾©ã¸ã£ã³ãããã¨åå®ç¾©ã«ããã¥ã¡ã³ãè¼ã£ã¦ãã cons
CloudWatchã ãã§ã¯å®ç¾ã§ããªãè¶ é«éãªFargateã®ã¹ã±ã¼ã«å¦çãCDKãã¤ãã£ãStep Functionsã§å®è£ ãã¦ãããªãã¸ããªã§ããæ¯éåèã«ãã¦ã¿ã¦ãã ããã ãFargateãããã«æ©ãã¹ã±ã¼ã«ãããããããã«å½ããããç·ãããâ¦ã å æ¥åå ããã»ããã¼ï¼ã³ã³ãã好ã4åãã³ã³ããã®é åãåãåãJAWS-UGã³ã³ããæ¯é¨ã«è¡ã£ã¦ããï¼ã«ãããªç·ãããããã§ããããã®ä»çµãæ¹ãã¦åããæ©ä¼ããã£ãã®ã§ãç´¹ä»ãã¾ãã CloudWatchãå©ç¨ããªãStep Functionsãå©ç¨ããçéã¹ã±ã¼ã«ã®ä»çµã¿ CDKã«ããç°å¢ä¸å¼ã®ããã㤠ã¨ãã両é¢ã§é常ã«åèã«ãªããªãã¸ããªã§ãããã®ãããèå³ãããããã¯æ¯éä¸åº¦ãã®è¨äºãèªãã§ããã ããªããçããã®ç°å¢ã§ãããã¦ããã ãã¤ã¤ãä»å¾ã®Step Functionsã®ä½¿ãæ¹ãCDKã®ãµã³ãã«ã¨ãã¦æ´»ç¨ããã ããã°ã¨æã
Amazon Web Services ããã° AWS CloudFormation ã®ã¢ãããã¼ã â å ¬éã«ãã¬ãã¸ãã¼ãããã㨠CDK ã®ã¨ã£ã¦ãã 2011 å¹´ã®åãã«ãAWS CloudFormation ã AWS CloudFormation â Create Your AWS Stack From a Recipe ããã³ AWS CloudFormation in the AWS Management Console ã¨ãã 2 ã¤ã®è¨äºã§ãã¼ã³ãããã¾ããããã®ãã¼ã³ã以æ¥ãAWS 㯠CloudFormation ãå¹çæ§ãã¹ã±ã¼ã©ããªãã£ããã¤é«å¯ç¨æ§ã確ä¿ã§ããããã«ãæ°å¤ãã® AWS ãªã½ã¼ã¹ã¿ã¤ãã«å¯¾ãããµãã¼ãã追å ããæ°å¤ãã®æ°æ©è½ããã¼ã³ããã¦ãèå°è£ã§ä½æ¥ãç¶ãã¦ãã¾ããã å ¬éã«ãã¬ãã¸ãã¼ãããã CloudFormation ã®ä½¿ç¨ã¯ AWS
AWS News Blog AWS Cloud Development Kit (CDK) â TypeScript and Python are Now Generally Available Managing your Infrastructure as Code provides great benefits and is often a stepping stone for a successful application of DevOps practices. In this way, instead of relying on manually performed steps, both administrators and developers can automate provisioning of compute, storage, network, and appli
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}