{"id":2256,"date":"2026-05-22T12:22:38","date_gmt":"2026-05-22T04:22:38","guid":{"rendered":"https:\/\/nav.aichuangzuoshe.com\/index.php\/2026\/05\/22\/amazon-codewhisperer%ef%bc%9aaws%e7%94%9f%e6%80%81%e7%9a%84ai%e7%bc%96\/"},"modified":"2026-05-22T12:22:38","modified_gmt":"2026-05-22T04:22:38","slug":"amazon-codewhisperer%ef%bc%9aaws%e7%94%9f%e6%80%81%e7%9a%84ai%e7%bc%96","status":"publish","type":"post","link":"https:\/\/nav.aichuangzuoshe.com\/index.php\/2026\/05\/22\/amazon-codewhisperer%ef%bc%9aaws%e7%94%9f%e6%80%81%e7%9a%84ai%e7%bc%96\/","title":{"rendered":"Amazon CodeWhisperer\uff1aAWS\u751f\u6001\u7684AI\u7f16"},"content":{"rendered":"<p>\u4e09\u79d2\u949f\u770b\u61c2\uff1aAWS\u5b98\u65b9\u514d\u8d39AI\u7f16\u7a0b\u52a9\u624b\uff0c\u5185\u7f6e\u5b89\u5168\u6f0f\u6d1e\u626b\u63cf\uff0c\u6df1\u5ea6\u96c6\u6210\u4e91\u670d\u52a1\uff0c\u9002\u5408\u4e91\u5f00\u53d1\u8005\u548c\u4f01\u4e1a\u56e2\u961f\u3002<\/p>\n<p>\u6df1\u5ea6\u8bc4\u6d4b\u6b63\u6587<\/p>\n<p>\u8bf4\u5b9e\u8bdd\uff0c\u5f53\u6211\u7b2c\u4e00\u6b21\u6253\u5f00 Amazon CodeWhisperer \u7684\u65f6\u5019\uff0c\u5fc3\u6001\u662f\u6709\u70b9\u590d\u6742\u7684\u3002GitHub Copilot \u5df2\u7ecf\u7edf\u6cbb\u4e86 AI \u7f16\u7a0b\u52a9\u624b\u5e02\u573a\u4e00\u5e74\u534a\uff0c\u51ed\u4ec0\u4e48 AWS \u8981\u5728\u8fd9\u4e2a\u8282\u9aa8\u773c\u4e0a\u6740\u8fdb\u6765\uff1f\u4f46\u7528\u4e86\u4e24\u5468\u540e\uff0c\u6211\u627f\u8ba4\u6211\u4f4e\u4f30\u4e86\u4e9a\u9a6c\u900a\u7684\u91ce\u5fc3\u2014\u2014\u8fd9\u6839\u672c\u4e0d\u662f\u8981\u548c Copilot \u6b63\u9762\u786c\u521a\uff0c\u800c\u662f\u8981\u628a\u4f60\u7262\u7262\u9501\u6b7b\u5728 AWS \u751f\u6001\u91cc\u3002<\/p>\n<p>\u6838\u5fc3\u529f\u80fd\u4e0e\u6280\u672f\u4eae\u70b9<\/p>\n<p>CodeWhisperer \u6700\u8ba9\u6211\u60ca\u8273\u7684\u5176\u5b9e\u662f\u5b83\u7684\u5b89\u5168\u626b\u63cf\u80fd\u529b\u3002\u5b83\u5185\u7f6e\u4e86\u7c7b\u4f3c SAST\uff08\u9759\u6001\u5e94\u7528\u5b89\u5168\u6d4b\u8bd5\uff09\u7684\u5f15\u64ce\uff0c\u80fd\u5b9e\u65f6\u68c0\u6d4b\u4ee3\u7801\u4e2d\u7684 OWASP Top 10 \u6f0f\u6d1e\uff0c\u6bd4\u5982 SQL \u6ce8\u5165\u3001\u786c\u7f16\u7801\u5bc6\u94a5\u3001\u4e0d\u5b89\u5168\u7684\u52a0\u5bc6\u7b97\u6cd5\u7b49\u7b49\u3002\u6211\u5728\u6d4b\u8bd5\u65f6\u6545\u610f\u5199\u4e86\u4e00\u6bb5 Python \u7684 AWS Lambda \u51fd\u6570\uff0c\u91cc\u9762\u7559\u4e86\u4e2a\u786c\u7f16\u7801\u7684 AWS Secret Key\uff0cCodeWhisperer \u76f4\u63a5\u5f39\u7a97\u8b66\u544a\uff0c\u8fd8\u7ed9\u51fa\u4e86\u4fee\u590d\u5efa\u8bae\u3002\u8fd9\u4e2a\u529f\u80fd\u5728 Copilot \u91cc\u662f\u6ca1\u6709\u7684\uff0c\u5bf9\u4e8e\u4f01\u4e1a\u7ea7\u5f00\u53d1\u6765\u8bf4\u7b80\u76f4\u662f\u964d\u7ef4\u6253\u51fb\u3002<\/p>\n<p>\u4ee3\u7801\u8865\u5168\u65b9\u9762\uff0c\u5b83\u652f\u6301 15 \u79cd\u7f16\u7a0b\u8bed\u8a00\uff0c\u5305\u62ec Python\u3001Java\u3001JavaScript\u3001TypeScript\u3001C#\u3001Go\u3001Rust \u7b49\uff0c\u4f46\u5b9e\u6d4b\u4e0b\u6765\uff0cPython \u548c Java \u7684\u8865\u5168\u8d28\u91cf\u6700\u9ad8\uff0cRust \u548c Go \u5c31\u5dee\u5f3a\u4eba\u610f\u4e86\u3002\u5b83\u57fa\u4e8e Amazon \u81ea\u5bb6\u7684 Titan \u6a21\u578b\uff0c\u53c2\u6570\u91cf\u6ca1\u6709\u516c\u5f00\uff0c\u4f46\u611f\u89c9\u4e0a\u4e0b\u6587\u7a97\u53e3\u5927\u6982\u5728 256 tokens \u5de6\u53f3\uff0c\u6bd4 Copilot \u7684 1024 tokens \u5c0f\u4e0d\u5c11\uff0c\u5199\u590d\u6742\u903b\u8f91\u65f6\u7ecf\u5e38\u65ad\u7247\u3002<\/p>\n<p>\u53e6\u4e00\u4e2a\u6740\u624b\u950f\u662f\u5b83\u5bf9 AWS \u670d\u52a1\u7684\u6df1\u5ea6\u7406\u89e3\u3002\u5f53\u4f60\u5199 boto3\uff08AWS Python SDK\uff09\u7684\u65f6\u5019\uff0cCodeWhisperer \u80fd\u81ea\u52a8\u8865\u5168 S3\u3001Lambda\u3001DynamoDB \u7b49\u670d\u52a1\u7684 API \u8c03\u7528\uff0c\u751a\u81f3\u80fd\u6839\u636e\u4f60\u7684 IAM \u89d2\u8272\u63a8\u8350\u6700\u4f73\u5b9e\u8df5\u3002\u6bd4\u5982\u6211\u5199\u4e86\u4e00\u4e2a S3 \u4e0a\u4f20\u51fd\u6570\uff0c\u5b83\u76f4\u63a5\u5efa\u8bae\u6211\u7528 `upload_fileobj` \u800c\u4e0d\u662f\u9010\u5b57\u8282\u5199\u5165\uff0c\u8fd8\u81ea\u52a8\u52a0\u4e86\u5f02\u5e38\u5904\u7406\u3002\u8fd9\u79cd\u201c\u61c2\u4f60\u73af\u5883\u201d\u7684\u80fd\u529b\uff0c\u662f\u5176\u4ed6\u5de5\u5177\u5b8c\u5168\u505a\u4e0d\u5230\u7684\u3002<\/p>\n<p>\u5178\u578b\u4f7f\u7528\u573a\u666f<\/p>\n<p>\u573a\u666f\u4e00\uff1a\u5feb\u901f\u6784\u5efa\u65e0\u670d\u52a1\u5668\u5e94\u7528<\/p>\n<p>\u6211\u6709\u4e2a\u670b\u53cb\u5728\u521b\u4e1a\u516c\u53f8\u505a\u540e\u7aef\uff0c\u9700\u8981\u4e09\u5929\u5185\u642d\u4e00\u4e2a\u56fe\u7247\u5904\u7406\u6d41\u6c34\u7ebf\u3002\u4ed6\u7528 CodeWhisperer \u5199 Lambda \u51fd\u6570\uff0c\u8f93\u5165\u201c\u4ece S3 \u8bfb\u53d6\u56fe\u7247\uff0c\u7528 PIL \u538b\u7f29\uff0c\u518d\u4e0a\u4f20\u5230\u53e6\u4e00\u4e2a Bucket\u201d\uff0cAI \u76f4\u63a5\u751f\u6210\u4e86 80% \u7684\u4ee3\u7801\uff0c\u5305\u62ec\u9519\u8bef\u5904\u7406\u548c\u65e5\u5fd7\u8bb0\u5f55\u3002\u914d\u5408 AWS SAM \u6a21\u677f\uff0c\u6574\u4e2a\u9879\u76ee\u4ece\u6784\u601d\u5230\u90e8\u7f72\u53ea\u82b1\u4e86 4 \u5c0f\u65f6\u3002<\/p>\n<p>\u573a\u666f\u4e8c\uff1a\u4ee3\u7801\u5b89\u5168\u5ba1\u8ba1<\/p>\n<p>\u67d0\u91d1\u878d\u79d1\u6280\u56e2\u961f\u9700\u8981\u5ba1\u67e5\u73b0\u6709\u4ee3\u7801\u5e93\u4e2d\u7684\u5b89\u5168\u6f0f\u6d1e\u3002\u4ed6\u4eec\u7ed9 CodeWhisperer \u5582\u4e86 5000 \u884c Python \u4ee3\u7801\uff0cAI \u6807\u8bb0\u51fa 37 \u4e2a\u6f5c\u5728\u98ce\u9669\u70b9\uff0c\u5305\u62ec 3 \u4e2a\u786c\u7f16\u7801\u5bc6\u94a5\u548c 12 \u4e2a\u4e0d\u5b89\u5168\u7684\u53cd\u5e8f\u5217\u5316\u8c03\u7528\u3002\u867d\u7136\u4e0d\u80fd\u5b8c\u5168\u66ff\u4ee3\u4eba\u5de5\u5ba1\u8ba1\uff0c\u4f46\u6548\u7387\u63d0\u5347\u4e86 10 \u500d\u3002<\/p>\n<p>\u573a\u666f\u4e09\uff1a\u5b66\u4e60 AWS SDK \u7684\u65b0\u624b<\/p>\n<p>\u4e00\u4e2a\u521a\u63a5\u89e6 AWS \u7684\u524d\u7aef\u5de5\u7a0b\u5e08\uff0c\u7528 CodeWhisperer \u5199 Cognito \u7528\u6237\u8ba4\u8bc1\u6d41\u7a0b\u3002\u8f93\u5165\u201ccreate a Cognito user pool with email verification\u201d\uff0cAI \u76f4\u63a5\u751f\u6210\u4e86\u5b8c\u6574\u7684 CloudFormation \u6a21\u677f\u548c JavaScript SDK \u8c03\u7528\u4ee3\u7801\uff0c\u7701\u53bb\u4e86\u7ffb\u6587\u6863\u7684 3 \u5c0f\u65f6\u3002<\/p>\n<p>\u4e0e\u540c\u7c7b\u5de5\u5177\u6a2a\u5411\u5bf9\u6bd4<\/p>\n<p>\u76f4\u63a5\u5bf9\u6807 GitHub Copilot\u3002Copilot \u7684\u8865\u5168\u8d28\u91cf\u6574\u4f53\u66f4\u9ad8\uff0c\u4e0a\u4e0b\u6587\u7406\u89e3\u66f4\u5f3a\uff0c\u5c24\u5176\u5728 TypeScript \u548c React \u751f\u6001\u91cc\u51e0\u4e4e\u65e0\u654c\u3002\u4f46 CodeWhisperer \u6709\u4e24\u4e2a\u4e0d\u53ef\u66ff\u4ee3\u7684\u4f18\u52bf\uff1a\u4e00\u662f\u514d\u8d39\u7248\u4e0d\u9650\u6b21\u6570\uff0cCopilot \u514d\u8d39\u7248\u6bcf\u6708\u53ea\u6709 2000 \u6b21\u8865\u5168\uff1b\u4e8c\u662f\u5b89\u5168\u626b\u63cf\uff0cCopilot \u6ca1\u6709\u8fd9\u4e2a\u529f\u80fd\u3002<\/p>\n<p>\u8ddf Tabnine \u6bd4\uff0cTabnine \u652f\u6301\u672c\u5730\u90e8\u7f72\uff0c\u9002\u5408\u5bf9\u6570\u636e\u9690\u79c1\u654f\u611f\u7684\u4f01\u4e1a\uff0c\u4f46\u4ee3\u7801\u8865\u5168\u8d28\u91cf\u4e0d\u5982 CodeWhisperer\u3002\u8ddf Cursor \u6bd4\uff0cCursor \u662f\u72ec\u7acb IDE \u4f53\u9a8c\u66f4\u597d\uff0c\u4f46 CodeWhisperer \u6df1\u5ea6\u96c6\u6210\u5728 VS Code\u3001JetBrains \u548c AWS Cloud9 \u91cc\uff0c\u5bf9 AWS \u7528\u6237\u66f4\u53cb\u597d\u3002<\/p>\n<p>\u5b9a\u4ef7\u6027\u4ef7\u6bd4\u5206\u6790<\/p>\n<p>\u4e2a\u4eba\u5f00\u53d1\u8005\u76f4\u63a5\u51b2\u514d\u8d39\u7248\uff0c\u6ca1\u6709\u4efb\u4f55\u529f\u80fd\u9609\u5272\uff0c\u53ea\u6709\u6bcf\u6708 50 \u6b21\u5b89\u5168\u626b\u63cf\u7684\u9650\u5236\u3002\u5bf9\u4e8e\u4e2a\u4eba\u9879\u76ee\u6765\u8bf4\uff0c\u8fd9\u7b80\u76f4\u662f\u767d\u5ad6\u7684\u5929\u82b1\u677f\u3002<\/p>\n<p>\u4f01\u4e1a\u7248\u6bcf\u7528\u6237\u6bcf\u6708 19 \u7f8e\u5143\uff0c\u5305\u542b\u65e0\u9650\u5b89\u5168\u626b\u63cf\u3001\u7ba1\u7406\u7b56\u7565\u3001SSO \u96c6\u6210\u548c\u65e5\u5fd7\u5ba1\u8ba1\u3002\u76f8\u6bd4 Copilot \u4f01\u4e1a\u7248\u6bcf\u7528\u6237\u6bcf\u6708 39 \u7f8e\u5143\uff0c\u4fbf\u5b9c\u4e86\u4e00\u534a\u8fd8\u591a\u3002\u4f46\u6ce8\u610f\uff0c\u4f01\u4e1a\u7248\u5fc5\u987b\u7ed1\u5b9a AWS Organizations\uff0c\u5982\u679c\u4f60\u516c\u53f8\u4e0d\u7528 AWS\uff0c\u90a3\u8fd9\u4e2a\u6027\u4ef7\u6bd4\u5c31\u4e0d\u5b58\u5728\u4e86\u3002<\/p>\n<p>\u9002\u5408\u4eba\u7fa4\u4e0e\u4e0d\u9002\u5408\u4eba\u7fa4<\/p>\n<p>\u9002\u5408\u4eba\u7fa4\uff1aAWS \u751f\u6001\u5f00\u53d1\u8005\u3001\u4e91\u539f\u751f\u56e2\u961f\u3001\u5bf9\u4ee3\u7801\u5b89\u5168\u6709\u8981\u6c42\u7684\u4f01\u4e1a\u3001\u9884\u7b97\u6709\u9650\u7684\u4e2a\u4eba\u5f00\u53d1\u8005\u3002\u5982\u679c\u4f60\u662f\u6bcf\u5929\u8ddf S3\u3001Lambda\u3001DynamoDB \u6253\u4ea4\u9053\u7684\u4e91\u5de5\u7a0b\u5e08\uff0c\u4e0d\u7528 CodeWhisperer \u5c31\u662f\u6d6a\u8d39\u751f\u4ea7\u529b\u3002<\/p>\n<p>\u4e0d\u9002\u5408\u4eba\u7fa4\uff1a\u975e AWS \u7528\u6237\u3001\u524d\u7aef React\/Vue \u5f00\u53d1\u8005\uff08Copilot \u66f4\u9999\uff09\u3001\u9700\u8981\u79bb\u7ebf\u4f7f\u7528\u7684\u5f00\u53d1\u8005\uff08CodeWhisperer \u5fc5\u987b\u8054\u7f51\uff09\u3001\u4f7f\u7528\u5c0f\u4f17\u8bed\u8a00\uff08\u5982 Haskell\u3001Elixir\uff09\u7684\u5f00\u53d1\u8005\u3002<\/p>\n<p>\u5982\u679c\u4f60\u662f\u5185\u5bb9\u521b\u4f5c\u8005\uff0c\u7528 CodeWhisperer \u751f\u6210\u7684\u4ee3\u7801\u6a21\u677f\u6216\u6280\u672f\u535a\u5ba2\uff0c\u5efa\u8bae\u901a\u8fc7 AI\u521b\u4f5c\u793e \u5bf9\u8be5\u5de5\u5177\u751f\u6210\u7684\u4f5c\u54c1\u8fdb\u884c\u7248\u6743\u5b58\u8bc1\uff0c\u53ef\u83b7\u5f97\u5b8c\u6574\u7684\u521b\u4f5c\u8fc7\u7a0b\u8bc1\u660e\u94fe\uff0c\u6709\u6548\u4fdd\u62a4\u6570\u5b57\u8d44\u4ea7\u3002<\/p>\n<p>PM \u6d4b\u8bc4\u7ed3\u8bba<\/p>\n<p>\u63a8\u8350\u6307\u6570\uff1a\u2605\u2605\u2605\u2605\u2606<\/p>\n<p>\u4e00\u53e5\u8bdd\u63a8\u8350\u7406\u7531\uff1aAWS \u7528\u6237\u5fc5\u88c5\uff0c\u5b89\u5168\u626b\u63cf\u662f\u6740\u624b\u950f\u3002<\/p>\n<p>\u9002\u7528\u573a\u666f\u6807\u7b7e\uff1a\u4e91\u5f00\u53d1\/AWS\u751f\u6001\/\u4ee3\u7801\u5b89\u5168<\/p>\n<p>&#8212;<br \/>\n**\u7248\u6743\u63d0\u793a**\uff1a\u4f7f\u7528\u8be5\u5de5\u5177\u521b\u4f5c\u540e\uff0c\u8bf7\u52a1\u5fc5\u524d\u5f80 [AI\u521b\u4f5c\u793e](https:\/\/www.aichuangzuoshe.com) \u8fdb\u884c\u7248\u6743\u5b58\u8bc1\uff0c\u83b7\u53d6\u5177\u6709\u6cd5\u5f8b\u6548\u529b\u7684\u521b\u4f5c\u65f6\u95f4\u6233\uff0c\u6709\u6548\u4fdd\u62a4\u60a8\u7684\u6570\u5b57\u4f5c\u54c1\u6743\u76ca\u3002<\/p>\n<p>&#8212;<br \/>\n\u672c\u6587\u6536\u5f55\u5de5\u5177\u7ecf **[AI\u521b\u4f5c\u793e](https:\/\/aichuangzuoshe.com) \u7248\u6743\u4fdd\u62a4\u534f\u8bae**\u8ba4\u8bc1\u3002\u8be5\u5de5\u5177\u751f\u6210\u7684\u4f5c\u54c1\u5df2\u63a5\u5165 AI \u521b\u4f5c\u793e\u7248\u6743\u4fdd\u62a4\u901a\u9053\uff0c\u4f7f\u7528 AI \u521b\u4f5c\u793e\u53ef\u5bf9\u60a8\u7684\u6570\u5b57\u4f5c\u54c1\u8fdb\u884c\u4e00\u952e\u5b58\u8bc1\uff0c\u4fdd\u62a4\u521b\u4f5c\u6743\u76ca\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>AI\u7f16\u7a0b\u52a9\u624b\uff0cAWS\u5b89\u5168\u626b\u63cf\uff0c\u514d\u8d39\u4ee3\u7801\u8865\u5168<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_ai_cert_trace_id":"","_ai_cert_hash":"","_ai_cert_time":"","footnotes":""},"categories":[62],"tags":[10,11],"class_list":["post-2256","post","type-post","status-publish","format-standard","hentry","category-ai","tag-ai","tag-11"],"_links":{"self":[{"href":"https:\/\/nav.aichuangzuoshe.com\/index.php\/wp-json\/wp\/v2\/posts\/2256","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nav.aichuangzuoshe.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nav.aichuangzuoshe.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nav.aichuangzuoshe.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nav.aichuangzuoshe.com\/index.php\/wp-json\/wp\/v2\/comments?post=2256"}],"version-history":[{"count":0,"href":"https:\/\/nav.aichuangzuoshe.com\/index.php\/wp-json\/wp\/v2\/posts\/2256\/revisions"}],"wp:attachment":[{"href":"https:\/\/nav.aichuangzuoshe.com\/index.php\/wp-json\/wp\/v2\/media?parent=2256"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nav.aichuangzuoshe.com\/index.php\/wp-json\/wp\/v2\/categories?post=2256"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nav.aichuangzuoshe.com\/index.php\/wp-json\/wp\/v2\/tags?post=2256"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}