Lambda
第1åã§ã¯GETã¯ã§ããããã«ãªã£ãã®ã§POSTãDELETEããã£ã¦ã¿ãã amegaeru.hatenablog.jp ãããããã ã¡ã½ãããä½æããã°ãã話ã§ã¯ãªããããã (´Ðï½ã) âåé¡ç¹ ãã©ã¦ã¶ã®URLããæããããHTTPãªã¯ã¨ã¹ãã¯GETã®ã¿ã®ããåãURLã§ã¯ã¡ã½ããã«ããâ¦
Web API(API Gateway(HTTP API)+Lambda)ã®ä»çµã¿ã§DynamoDBãæä½ããä»çµã¿ãä½ã£ã¦ã¿ãã ããã㨠é©å½ãªWindows端æ«ããcurlã³ãã³ããæã¡ãAPI Gateway(HTTP API)ããããã¯ã¨ã³ãã®Lambda(Python)ãDynamoDBã«æ¥ç¶ãæä½ããã â»curlã³ãã³ãã¯äºåã«â¦
ãã©ã¦ã¶ãããããããªæä½ãã§ããã¨ä¾¿å©ãªã®ã§è©¦ãã«DynamoDBãæä½ããä»çµã¿ãä½ã£ã¦ã¿ããâ»ã¿ã¤ãã«ãé·ããã âããã㨠ãã©ã¦ã¶ã®URL(https://xxx.com/[resource]?[key]=[value]ã®ãããªå½¢)ã§API Gateway(REST API)ã«æ¥ç¶ããããã¯ã¨ã³ãã®Lambda(â¦
ããæè¿API Gatewayã触ãå§ãã¦ãããLambdaãããã·çµ±åã¨ããããããããªãé ç®ãããã®ã§èª¿ã¹ã¦ã¿ãã âLambdaãããã·çµ±åã¨ã¯ docs.aws.amazon.com Amazon API Gateway Lambda ãããã·çµ±åã¯ãåä¸ã® API ã¡ã½ããã®ã»ããã¢ãã㧠API ãæ§ç¯ããâ¦
Serverlessã®Webã¢ããªã±ã¼ã·ã§ã³ãä½ããããã«ãªã£ããã¤ã±ã¦ãã¨æã£ãã®ã§ãã£ã¦ã¿ã *1 âããã㨠ã»Lambdaé¢æ°ãä½æ ã»APIGatewayãREST APIã§ä½æ ã»ä½æããAPIGatewayããLambdaé¢æ°ã«æ¥ç¶ âæ§æ âå®è·µï¼ ï¼ï¼Lambdaé¢æ°ä½æ ï¼ã¼ï¼ï¼Lambdaã³ã³ã½â¦
GUIã§ã½ã¡ã½ã¡ããã®ã¯ãã³ã»ã³ã¹ã ã¨ä¸å¸ã«è¨ãããã®ã§Lambdaé¢æ°ä½æãã³ã¼ãåãã¦ã¿ã¾ãã(´âï½)ォェー âããã㨠CloudShellããCLIã§Lambdaé¢æ°ãä½æ(+ IAM Role,Policy) âæ§æ âå®è·µï¼ ï¼ï¼ããªã·ã¼ä½æ # aws iam create-policy --policy-name MyFuncâ¦