{"id":44583,"date":"2023-02-14T12:58:22","date_gmt":"2023-06-29T05:44:11","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90aws%e3%80%91%e5%88%9b%e5%bb%bago-lambda%e7%9a%84%e6%9c%ac%e5%9c%b0%e5%bc%80%e5%8f%91%e7%8e%af%e5%a2%83%ef%bc%88aws-sam-cli-m1mac%ef%bc%89\/"},"modified":"2024-04-29T14:35:28","modified_gmt":"2024-04-29T06:35:28","slug":"%e3%80%90aws%e3%80%91%e5%88%9b%e5%bb%bago-lambda%e7%9a%84%e6%9c%ac%e5%9c%b0%e5%bc%80%e5%8f%91%e7%8e%af%e5%a2%83%ef%bc%88aws-sam-cli-m1mac%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90aws%e3%80%91%e5%88%9b%e5%bb%bago-lambda%e7%9a%84%e6%9c%ac%e5%9c%b0%e5%bc%80%e5%8f%91%e7%8e%af%e5%a2%83%ef%bc%88aws-sam-cli-m1mac%ef%bc%89\/","title":{"rendered":"\u3010AWS\u3011\u521b\u5efaGo Lambda\u7684\u672c\u5730\u5f00\u53d1\u73af\u5883\uff08aws-sam-cli + M1mac\uff09"},"content":{"rendered":"<h1>\u9996\u5148<\/h1>\n<p>\u5982\u679c\u4f7f\u7528aws-sam-cli\uff0c\u53ef\u4ee5\u5728\u672c\u5730\u7ec8\u7aef\u4e2d\u590d\u5236Lambda\u7684\u6267\u884c\u73af\u5883\uff0c\u8fdb\u884c\u64cd\u4f5c\u9a8c\u8bc1\u3002<br \/>\n\u56e0\u4e3a\u53ef\u4ee5\u5728\u73b0\u573a\u8fdb\u884c\u4ee3\u7801\u4fee\u6539\u548c\u52a8\u4f5c\u786e\u8ba4\uff0c\u6240\u4ee5\u53ef\u4ee5\u51cf\u5c11\u90e8\u7f72\u548cLambda\u8d39\u7528\u3002<br \/>\n\u5728\u4f17\u591anodejs\u548cpython\u7684\u5bfc\u5165\u6b65\u9aa4\u4e2d\uff0c\u6211\u89c9\u5f97Golang\u7684\u6587\u6863\u8f83\u5c11\uff0c\u6240\u4ee5\u5728\u8fd9\u91cc\u603b\u7ed3\u4e00\u4e0b\u3002<\/p>\n<h3>\u505a\u7684\u4e8b\u60c5 (zu\u00f2 de<\/h3>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u958b\u767a\u7528\u306barm\u7248Golang\u3092\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/ul>\n<\/li>\n<\/ul>\n<p>aws-sam-cli\u3067\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u306bLambda\u3068APIGateway\u3092\u69cb\u7bc9\u3059\u308b<\/p>\n<h3>\u524d\u63d0<\/h3>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">arm\u7248(M1\u30c1\u30c3\u30d7)\u306emacOS\u74b0\u5883\u3092\u30d9\u30fc\u30b9\u306b\u8aac\u660e\u3059\u308b (goenv\u5c0e\u5165\u90e8\u5206\u4ee5\u5916\u306f\u5927\u5dee\u306a\u3044\u306f\u305a)<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Z shell (zsh) \u3092\u30d9\u30fc\u30b9\u306b\u8aac\u660e\u3059\u308b (\u74b0\u5883\u5909\u6570\u306e\u901a\u3057\u65b9\u4ee5\u5916\u306f\u5927\u5dee\u306a\u3044\u306f\u305a)<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">Docker\u306f\u65e2\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3042\u308b\u3082\u306e\u3068\u3057\u3066\u8aac\u660e\u3059\u308b<\/ul>\n<h1>\u76ee\u5f55<\/h1>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u5b89\u88c5Golang<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u5b89\u88c5aws-sam-cli<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\u5728\u672c\u5730\u73af\u5883\u4e2d\u542f\u52a8Lambda<\/ol>\n<h1>1. \u914d\u7f6eGolang<\/h1>\n<h3>1-1. \u5b89\u88c5goenv<\/h3>\n<p>\u5982\u679c\u76f4\u63a5\u4f7f\u7528brew\u5b89\u88c5goenv\uff0c\u53ea\u80fd\u83b7\u5f97\u65e7\u7248\u672c\u3002<br \/>\n\u56e0\u6b64\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u5f3a\u5236\u83b7\u53d6\u6700\u65b0\u7248\u672c\u3002<\/p>\n<pre class=\"post-pre\"><code>% brew uninstall goenv &amp;&amp; brew install --HEAD goenv\r\n% goenv -v\r\ngoenv 2.0.0beta11\r\n<\/code><\/pre>\n<p>\u4ee5\u4e0b\u662f\u5728ARM\u7248\uff08M1\u82af\u7247\uff09\u7684macOS\u4e0a\u83b7\u53d6ARM\u7248Go\u7684\u8bbe\u7f6e\u3002<br \/>\n\u5982\u679c\u4e0d\u9700\u8981\u7684\u8bdd\u53ef\u4ee5\u8df3\u8fc7\u3002<\/p>\n<pre class=\"post-pre\"><code>% echo 'export GOENV_ROOT=\"$HOME\/.goenv\"' &gt;&gt; ~\/.zshrc\r\n% echo 'export PATH=\"$GOENV_ROOT\/bin:$PATH\"' &gt;&gt; ~\/.zshrc\r\n% echo 'eval \"$(goenv init -)\"' &gt;&gt; ~\/.zshrc\r\n% cat ~\/.zshrc\r\nexport GOENV_ROOT=\"$HOME\/.goenv\"\r\nexport PATH=\"$GOENV_ROOT\/bin:$PATH\"\r\neval \"$(goenv init -)\"\r\n<\/code><\/pre>\n<h3>1-2. \u5b89\u88c5Golang<\/h3>\n<pre class=\"post-pre\"><code>% goenv install -l\r\nAvailable versions:\r\n  1.2.2\r\n  1.3.0\r\n    \u2026\r\n  1.17.5\r\n  1.17.6\r\n  1.18beta1\r\n<\/code><\/pre>\n<p>\u8bf7\u6ce8\u610f\uff0c\u4ec5\u652f\u63011.16.0\u7248\u672c\u53ca\u4ee5\u540e\u7684arm macOS\u3002<\/p>\n<pre class=\"post-pre\"><code>% goenv install 1.17.6\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>% goenv global 1.17.6\r\n<\/code><\/pre>\n<p>\u8bf7\u786e\u8ba4\u662f\u5426\u53ef\u4ee5\u53c2\u8003\u6240\u9700\u7684(AMD\u7248\/ARM\u7248)\u7684\u7248\u672c\u3002<\/p>\n<pre class=\"post-pre\"><code>% exec $SHELL\r\n% go version\r\ngo version go1.17.6 darwin\/arm64\r\n<\/code><\/pre>\n<h1>2. \u5b89\u88c5aws-sam-cli<\/h1>\n<h3>\u5b89\u88c5 aws-sam-cli\u3002<\/h3>\n<p>\u5728 macOS \u4e2d\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528 brew \u6765\u5b89\u88c5 aws-sam-cli\u3002<\/p>\n<p>\u5728\u9664\u4e86macOS\u4ee5\u5916\u7684\u73af\u5883\u4e2d\u8fdb\u884c\u8bbe\u7f6e\u7684\u6b65\u9aa4\u3002<\/p>\n<pre class=\"post-pre\"><code>% brew tap aws\/tap\r\n% brew install aws-sam-cli\r\n% sam --version\r\nSAM CLI, version 1.37.0\r\n<\/code><\/pre>\n<h3>\u83b7\u53d6aws-sam\u7684\u5b98\u65b9\u793a\u4f8b\u3002<\/h3>\n<pre class=\"post-pre\"><code>% docker --version\r\nDocker version 20.10.12, build e91ed57\r\n<\/code><\/pre>\n<p>\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u83b7\u53d6AWS\u5b98\u65b9\u7684\u793a\u4f8b\u6587\u4ef6\u96c6\u3002<br \/>\n\u53ea\u9700\u7b80\u5355\u5730\u8fd0\u884c\uff05sam init\u547d\u4ee4\uff0c\u5373\u53ef\u4ee5\u4ea4\u4e92\u65b9\u5f0f\u8fdb\u884c\u5404\u79cd\u8bbe\u7f6e\u3002<\/p>\n<pre class=\"post-pre\"><code>% mkdir lambda_go_test\r\n% cd lambda_go_test\r\n% sam init --package-type Image --base-image amazon\/go1.x-base --name golang-sam-sample\r\n<\/code><\/pre>\n<h1>\u5728\u672c\u5730\u73af\u5883\u4e2d\u542f\u52a8 Lambda<\/h1>\n<p>\u8fdb\u5165\u751f\u6210\u7684\u6837\u672c\u6587\u4ef6\u7ec4\u7684\u6839\u76ee\u5f55\uff0c\u5e76\u70e7\u5f55DockerImage\u3002<\/p>\n<pre class=\"post-pre\"><code>% cd golang-sam-sample\r\n% sam build\r\n<\/code><\/pre>\n<p>\u7b49\u5f85\u56fe\u50cf\u5b8c\u6210\u540e\uff0c\u5c1d\u8bd5\u8fd0\u884cLambda\u548cAPIGateway\u3002<\/p>\n<pre class=\"post-pre\"><code>% sam local start-api\r\nMounting HelloWorldFunction at http:\/\/127.0.0.1:3000\/hello [GET]\r\nYou can now browse to the above endpoints to invoke your functions. You do not need to restart\/reload SAM CLI while working on your functions, changes will be reflected instantly\/automatically. You only need to restart SAM CLI if you update your AWS SAM template\r\n2022-01-30 18:31:58  * Running on http:\/\/127.0.0.1:3000\/ (Press CTRL+C to quit)\r\n<\/code><\/pre>\n<p>\u5982\u679c\u4f7f\u7528curl\u547d\u4ee4\u53d1\u9001\u8bf7\u6c42\u5e76\u83b7\u5f97\u4e86\u95ee\u5019\uff0c\u90a3\u5c31\u662f\u6210\u529f\u4e86\u3002<\/p>\n<pre class=\"post-pre\"><code>% curl http:\/\/127.0.0.1:3000\/hello\r\nHello, xxx.xxx.xxx.xxx\r\n<\/code><\/pre>\n<p>\u968f\u540e\u53ef\u4ee5\u9002\u5f53\u7f16\u8f91main.go\u6587\u4ef6\uff0c\u6539\u53d8Lambda\u7684\u5904\u7406\u5185\u5bb9\uff0c\u4e5f\u53ef\u4ee5\u7f16\u8f91template.yaml\u6587\u4ef6\u4ee5\u589e\u52a0Lambda\u7684\u6570\u91cf\uff0c\u5e76\u8fdb\u884c\u4e00\u4e9b\u5b9e\u9a8c\u3002<\/p>\n<h1>\u6545\u969c\u6392\u9664<\/h1>\n<h3>\u65e0\u8bba\u91cd\u8bd5\u591a\u5c11\u6b21\uff0cArm\u7248\u7684Golang\u4ecd\u7136\u65e0\u6cd5\u4e0b\u8f7d\u3002<\/h3>\n<p>\u4f60\u662f\u4e0d\u662f\u901a\u8fc7Rosetta 2\u542f\u52a8\u4e86Terminal\u5417\uff1f (\u662f\u7684\uff0c\u6211\u662f\u8fd9\u6837\u505a\u7684)\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148 \u5982\u679c\u4f7f\u7528aws-sam-cli\uff0c\u53ef\u4ee5\u5728\u672c\u5730\u7ec8\u7aef\u4e2d\u590d\u5236Lambda\u7684\u6267\u884c\u73af\u5883\uff0c\u8fdb\u884c\u64cd\u4f5c\u9a8c\u8bc1\u3002 \u56e0\u4e3a\u53ef\u4ee5\u5728\u73b0 [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-44583","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010AWS\u3011\u521b\u5efaGo Lambda\u7684\u672c\u5730\u5f00\u53d1\u73af\u5883\uff08aws-sam-cli + M1mac\uff09 - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u3010aws\u3011\u521b\u5efago-lambda\u7684\u672c\u5730\u5f00\u53d1\u73af\u5883\uff08aws-sam-cli-m1mac\uff09\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010AWS\u3011\u521b\u5efaGo Lambda\u7684\u672c\u5730\u5f00\u53d1\u73af\u5883\uff08aws-sam-cli + M1mac\uff09\" \/>\n<meta property=\"og:description\" content=\"\u9996\u5148 \u5982\u679c\u4f7f\u7528aws-sam-cli\uff0c\u53ef\u4ee5\u5728\u672c\u5730\u7ec8\u7aef\u4e2d\u590d\u5236Lambda\u7684\u6267\u884c\u73af\u5883\uff0c\u8fdb\u884c\u64cd\u4f5c\u9a8c\u8bc1\u3002 \u56e0\u4e3a\u53ef\u4ee5\u5728\u73b0 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u3010aws\u3011\u521b\u5efago-lambda\u7684\u672c\u5730\u5f00\u53d1\u73af\u5883\uff08aws-sam-cli-m1mac\uff09\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-06-29T05:44:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-29T06:35:28+00:00\" \/>\n<meta name=\"author\" content=\"\u65b0, \u97f5\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u65b0, \u97f5\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90aws%e3%80%91%e5%88%9b%e5%bb%bago-lambda%e7%9a%84%e6%9c%ac%e5%9c%b0%e5%bc%80%e5%8f%91%e7%8e%af%e5%a2%83%ef%bc%88aws-sam-cli-m1mac%ef%bc%89\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90aws%e3%80%91%e5%88%9b%e5%bb%bago-lambda%e7%9a%84%e6%9c%ac%e5%9c%b0%e5%bc%80%e5%8f%91%e7%8e%af%e5%a2%83%ef%bc%88aws-sam-cli-m1mac%ef%bc%89\/\",\"name\":\"\u3010AWS\u3011\u521b\u5efaGo Lambda\u7684\u672c\u5730\u5f00\u53d1\u73af\u5883\uff08aws-sam-cli + M1mac\uff09 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-06-29T05:44:11+00:00\",\"dateModified\":\"2024-04-29T06:35:28+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90aws%e3%80%91%e5%88%9b%e5%bb%bago-lambda%e7%9a%84%e6%9c%ac%e5%9c%b0%e5%bc%80%e5%8f%91%e7%8e%af%e5%a2%83%ef%bc%88aws-sam-cli-m1mac%ef%bc%89\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90aws%e3%80%91%e5%88%9b%e5%bb%bago-lambda%e7%9a%84%e6%9c%ac%e5%9c%b0%e5%bc%80%e5%8f%91%e7%8e%af%e5%a2%83%ef%bc%88aws-sam-cli-m1mac%ef%bc%89\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90aws%e3%80%91%e5%88%9b%e5%bb%bago-lambda%e7%9a%84%e6%9c%ac%e5%9c%b0%e5%bc%80%e5%8f%91%e7%8e%af%e5%a2%83%ef%bc%88aws-sam-cli-m1mac%ef%bc%89\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010AWS\u3011\u521b\u5efaGo Lambda\u7684\u672c\u5730\u5f00\u53d1\u73af\u5883\uff08aws-sam-cli + M1mac\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9\",\"name\":\"\u65b0, \u97f5\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g\",\"caption\":\"\u65b0, \u97f5\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunxin\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90aws%e3%80%91%e5%88%9b%e5%bb%bago-lambda%e7%9a%84%e6%9c%ac%e5%9c%b0%e5%bc%80%e5%8f%91%e7%8e%af%e5%a2%83%ef%bc%88aws-sam-cli-m1mac%ef%bc%89\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u3010AWS\u3011\u521b\u5efaGo Lambda\u7684\u672c\u5730\u5f00\u53d1\u73af\u5883\uff08aws-sam-cli + M1mac\uff09 - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/\u3010aws\u3011\u521b\u5efago-lambda\u7684\u672c\u5730\u5f00\u53d1\u73af\u5883\uff08aws-sam-cli-m1mac\uff09\/","og_locale":"zh_CN","og_type":"article","og_title":"\u3010AWS\u3011\u521b\u5efaGo Lambda\u7684\u672c\u5730\u5f00\u53d1\u73af\u5883\uff08aws-sam-cli + M1mac\uff09","og_description":"\u9996\u5148 \u5982\u679c\u4f7f\u7528aws-sam-cli\uff0c\u53ef\u4ee5\u5728\u672c\u5730\u7ec8\u7aef\u4e2d\u590d\u5236Lambda\u7684\u6267\u884c\u73af\u5883\uff0c\u8fdb\u884c\u64cd\u4f5c\u9a8c\u8bc1\u3002 \u56e0\u4e3a\u53ef\u4ee5\u5728\u73b0 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u3010aws\u3011\u521b\u5efago-lambda\u7684\u672c\u5730\u5f00\u53d1\u73af\u5883\uff08aws-sam-cli-m1mac\uff09\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-06-29T05:44:11+00:00","article_modified_time":"2024-04-29T06:35:28+00:00","author":"\u65b0, \u97f5","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u65b0, \u97f5","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90aws%e3%80%91%e5%88%9b%e5%bb%bago-lambda%e7%9a%84%e6%9c%ac%e5%9c%b0%e5%bc%80%e5%8f%91%e7%8e%af%e5%a2%83%ef%bc%88aws-sam-cli-m1mac%ef%bc%89\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90aws%e3%80%91%e5%88%9b%e5%bb%bago-lambda%e7%9a%84%e6%9c%ac%e5%9c%b0%e5%bc%80%e5%8f%91%e7%8e%af%e5%a2%83%ef%bc%88aws-sam-cli-m1mac%ef%bc%89\/","name":"\u3010AWS\u3011\u521b\u5efaGo Lambda\u7684\u672c\u5730\u5f00\u53d1\u73af\u5883\uff08aws-sam-cli + M1mac\uff09 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-06-29T05:44:11+00:00","dateModified":"2024-04-29T06:35:28+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90aws%e3%80%91%e5%88%9b%e5%bb%bago-lambda%e7%9a%84%e6%9c%ac%e5%9c%b0%e5%bc%80%e5%8f%91%e7%8e%af%e5%a2%83%ef%bc%88aws-sam-cli-m1mac%ef%bc%89\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90aws%e3%80%91%e5%88%9b%e5%bb%bago-lambda%e7%9a%84%e6%9c%ac%e5%9c%b0%e5%bc%80%e5%8f%91%e7%8e%af%e5%a2%83%ef%bc%88aws-sam-cli-m1mac%ef%bc%89\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90aws%e3%80%91%e5%88%9b%e5%bb%bago-lambda%e7%9a%84%e6%9c%ac%e5%9c%b0%e5%bc%80%e5%8f%91%e7%8e%af%e5%a2%83%ef%bc%88aws-sam-cli-m1mac%ef%bc%89\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u3010AWS\u3011\u521b\u5efaGo Lambda\u7684\u672c\u5730\u5f00\u53d1\u73af\u5883\uff08aws-sam-cli + M1mac\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9","name":"\u65b0, \u97f5","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g","caption":"\u65b0, \u97f5"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunxin\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90aws%e3%80%91%e5%88%9b%e5%bb%bago-lambda%e7%9a%84%e6%9c%ac%e5%9c%b0%e5%bc%80%e5%8f%91%e7%8e%af%e5%a2%83%ef%bc%88aws-sam-cli-m1mac%ef%bc%89\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/44583","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=44583"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/44583\/revisions"}],"predecessor-version":[{"id":85855,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/44583\/revisions\/85855"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=44583"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=44583"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=44583"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}