{"id":1099,"date":"2026-05-04T12:18:10","date_gmt":"2026-05-04T04:18:10","guid":{"rendered":"https:\/\/nav.aichuangzuoshe.com\/index.php\/2026\/05\/04\/amazon-codewhisperer%ef%bc%9a%e4%ba%91%e4%b8%8a%e5%bc%80%e5%8f%91%e7%9a%84%e5%85%8d%e8%b4%b9%e5%ae%89%e5%85%a8\/"},"modified":"2026-05-04T12:18:10","modified_gmt":"2026-05-04T04:18:10","slug":"amazon-codewhisperer%ef%bc%9a%e4%ba%91%e4%b8%8a%e5%bc%80%e5%8f%91%e7%9a%84%e5%85%8d%e8%b4%b9%e5%ae%89%e5%85%a8","status":"publish","type":"post","link":"https:\/\/nav.aichuangzuoshe.com\/index.php\/2026\/05\/04\/amazon-codewhisperer%ef%bc%9a%e4%ba%91%e4%b8%8a%e5%bc%80%e5%8f%91%e7%9a%84%e5%85%8d%e8%b4%b9%e5%ae%89%e5%85%a8\/","title":{"rendered":"Amazon CodeWhisperer\uff1a\u4e91\u4e0a\u5f00\u53d1\u7684\u514d\u8d39\u5b89\u5168"},"content":{"rendered":"<p>\u4f5c\u4e3aAWS\u5b98\u65b9\u51fa\u54c1\u7684AI\u7f16\u7a0b\u52a9\u624b\uff0cCodeWhisperer\u57282023\u5e744\u6708\u6b63\u5f0fGA\u540e\u5c31\u8fc5\u901f\u5728\u5f00\u53d1\u8005\u793e\u533a\u91cc\u5237\u4e86\u4e00\u6ce2\u5b58\u5728\u611f\u3002\u8bf4\u5b9e\u8bdd\uff0c\u5f53GitHub Copilot\u5f00\u59cb\u6536\u8d39\u540e\uff0c\u5f88\u591a\u5f00\u53d1\u8005\u90fd\u5728\u627e\u66ff\u4ee3\u54c1\uff0c\u800cCodeWhisperer\u76f4\u63a5\u7529\u51fa&#8221;\u4e2a\u4eba\u7248\u514d\u8d39\u4e0d\u9650\u6b21&#8221;\u8fd9\u5f20\u724c\uff0c\u786e\u5b9e\u6709\u70b9\u964d\u7ef4\u6253\u51fb\u7684\u5473\u9053\u3002\u6211\u6df1\u5ea6\u4f7f\u7528\u4e86\u4e24\u5468\uff0c\u4eca\u5929\u8ddf\u5927\u5bb6\u804a\u804a\u5b83\u7684\u771f\u5b9e\u8868\u73b0\u3002<\/p>\n<p>\u6838\u5fc3\u529f\u80fd\u4e0e\u6280\u672f\u4eae\u70b9<\/p>\n<p>CodeWhisperer\u6700\u786c\u6838\u7684\u5dee\u5f02\u5316\u80fd\u529b\u5728\u4e8e\u4ee3\u7801\u5b89\u5168\u626b\u63cf\u3002\u5b83\u5185\u7f6e\u4e86\u57fa\u4e8eML\u7684\u6f0f\u6d1e\u68c0\u6d4b\u5f15\u64ce\uff0c\u80fd\u5b9e\u65f6\u8bc6\u522b\u4ee3\u7801\u4e2d\u7684OWASP Top 10\u5b89\u5168\u98ce\u9669\uff0c\u6bd4\u5982SQL\u6ce8\u5165\u3001\u786c\u7f16\u7801\u5bc6\u94a5\u3001\u654f\u611f\u4fe1\u606f\u6cc4\u9732\u7b49\u3002\u5b9e\u6d4b\u5728Python\u9879\u76ee\u91cc\uff0c\u5b83\u4e3b\u52a8\u53d1\u73b0\u4e86\u6211\u4e00\u4e2a\u6ca1\u6ce8\u610f\u5230\u7684AWS Secret Key\u786c\u7f16\u7801\u95ee\u9898\u2014\u2014\u8fd9\u4e2a\u529f\u80fd\u5728Copilot\u4e0a\u5f97\u5355\u72ec\u4e70Snyk\u63d2\u4ef6\u624d\u80fd\u5b9e\u73b0\u3002<\/p>\n<p>\u4ee3\u7801\u8865\u5168\u65b9\u9762\uff0c\u5b83\u652f\u630115\u79cd\u7f16\u7a0b\u8bed\u8a00\uff0c\u5305\u62ecPython\u3001Java\u3001JavaScript\u3001TypeScript\u3001C#\u3001Go\u3001Rust\u7b49\u3002\u5b98\u65b9\u5ba3\u79f0\u5355\u6b21\u80fd\u751f\u6210\u6700\u591a10\u4e2a\u5efa\u8bae\u9009\u9879\uff0c\u5b9e\u9645\u4f53\u9a8c\u4e2d\uff0c\u5728VS Code\u548cJetBrains IDE\u4e0a\u7684\u54cd\u5e94\u901f\u5ea6\u7ea61.2\u79d2\uff0c\u6bd4Copilot\u6162\u7ea6300\u6beb\u79d2\uff0c\u4f46\u5dee\u8ddd\u4e0d\u5927\u3002\u5b83\u6700\u64c5\u957f\u7684\u573a\u666f\u662fAWS SDK\u76f8\u5173\u7684\u4ee3\u7801\u751f\u6210\uff0c\u6bd4\u5982S3\u4e0a\u4f20\u3001Lambda\u51fd\u6570\u3001DynamoDB\u67e5\u8be2\uff0c\u57fa\u672c\u80fd\u731c\u5230\u4f60\u60f3\u5199\u4ec0\u4e48\uff0c\u81ea\u52a8\u586b\u5145boto3\u6216AWS SDK for Java\u7684\u6837\u677f\u4ee3\u7801\u3002<\/p>\n<p>\u4e00\u4e2a\u88ab\u4f4e\u4f30\u7684\u529f\u80fd\u662f\u5b83\u7684\u5f15\u7528\u8ffd\u8e2a\u5668\u3002\u5982\u679c\u751f\u6210\u7684\u4ee3\u7801\u7247\u6bb5\u6765\u81ea\u5f00\u6e90\u9879\u76ee\uff0c\u5b83\u4f1a\u81ea\u52a8\u6807\u6ce8\u6765\u6e90\u5e76\u663e\u793a\u8bb8\u53ef\u8bc1\u7c7b\u578b\uff0c\u8fd9\u5bf9\u4f01\u4e1a\u5408\u89c4\u5ba1\u67e5\u975e\u5e38\u53cb\u597d\u3002<\/p>\n<p>\u5178\u578b\u4f7f\u7528\u573a\u666f<\/p>\n<p>\u573a\u666f\u4e00\uff1a\u5feb\u901f\u642d\u5efaLambda\u51fd\u6570\u3002\u6211\u5199\u4e86\u4e00\u4e2a\u4eceS3\u8bfb\u53d6\u56fe\u7247\u5e76\u8c03\u7528Rekognition\u505a\u6807\u7b7e\u8bc6\u522b\u7684\u51fd\u6570\uff0c\u8f93\u5165\u6ce8\u91ca&#8221;read image from S3 and detect labels&#8221;\uff0cCodeWhisperer\u76f4\u63a5\u751f\u6210\u4e86\u5b8c\u6574\u7684boto3\u4ee3\u7801\uff0c\u5305\u62ec\u9519\u8bef\u5904\u7406\u548c\u65e5\u5fd7\u8bb0\u5f55\uff0c\u53ea\u82b1\u4e8615\u79d2\u5fae\u8c03\u3002<\/p>\n<p>\u573a\u666f\u4e8c\uff1a\u4fee\u590d\u5b89\u5168\u6f0f\u6d1e\u3002\u5728\u4e00\u4e2aNode.js Express\u5e94\u7528\u4e2d\uff0c\u5b83\u68c0\u6d4b\u5230\u6211\u7528eval()\u5904\u7406\u7528\u6237\u8f93\u5165\uff0c\u7acb\u5373\u9ad8\u4eae\u5e76\u7ed9\u51fa\u4e86\u6539\u7528JSON.parse()\u7684\u5efa\u8bae\u3002\u914d\u5408\u5185\u7f6e\u7684\u5b89\u5168\u626b\u63cf\uff0c\u626b\u63cf\u4e00\u4e2a1000\u884c\u4ee3\u7801\u7684\u6587\u4ef6\u8017\u65f6\u7ea68\u79d2\uff0c\u53d1\u73b0\u4e863\u4e2aHigh\u7ea7\u522b\u6f0f\u6d1e\u3002<\/p>\n<p>\u573a\u666f\u4e09\uff1a\u5b66\u4e60AWS SDK\u3002\u65b0\u624b\u5f00\u53d1\u8005\u5199DynamoDB\u67e5\u8be2\u65f6\uff0c\u53ea\u9700\u8f93\u5165&#8221;query DynamoDB for users with age > 18&#8243;\uff0c\u5b83\u4f1a\u751f\u6210\u5b8c\u6574\u7684query\u8868\u8fbe\u5f0f\uff0c\u5305\u62ecKeyConditionExpression\u548cFilterExpression\uff0c\u6bd4\u7ffb\u6587\u6863\u5feb10\u500d\u3002<\/p>\n<p>\u4e0e\u540c\u7c7b\u5de5\u5177\u6a2a\u5411\u5bf9\u6bd4<\/p>\n<p>\u62ff\u5b83\u548cGitHub Copilot\u6b63\u9762\u521a\u4e00\u4e0b\u3002Copilot\u5728\u4ee3\u7801\u8865\u5168\u7684\u51c6\u786e\u7387\u548c\u4e0a\u4e0b\u6587\u7406\u89e3\u4e0a\u4f9d\u7136\u9886\u5148\uff0c\u5c24\u5176\u662f\u5904\u7406\u590d\u6742\u903b\u8f91\u65f6\uff0cCodeWhisperer\u5076\u5c14\u4f1a\u7ed9\u51fa\u8bed\u6cd5\u9519\u8bef\u6216\u903b\u8f91\u4e0d\u901a\u7684\u5efa\u8bae\u3002\u4f46CodeWhisperer\u6709\u4e24\u4e2aCopilot\u6ca1\u6709\u7684\u6740\u624b\u950f\uff1a\u514d\u8d39\u548cAWS\u6df1\u5ea6\u6574\u5408\u3002Copilot\u4e2a\u4eba\u7248\u6bcf\u670810\u7f8e\u5143\uff0c\u800cCodeWhisperer\u4e2a\u4eba\u7248\u5b8c\u5168\u514d\u8d39\uff0c\u4f01\u4e1a\u7248\u4e5f\u53ea\u898119\u7f8e\u5143\/\u7528\u6237\/\u6708\uff08\u5305\u542bCopilot\u6ca1\u6709\u7684\u5b89\u5168\u626b\u63cf\u548c\u7b56\u7565\u63a7\u5236\uff09\u3002<\/p>\n<p>\u53e6\u4e00\u4e2a\u7ade\u54c1\u662fTabnine\uff0c\u5b83\u66f4\u4fa7\u91cd\u672c\u5730\u6a21\u578b\u548c\u9690\u79c1\u4fdd\u62a4\uff0c\u4f46\u4ee3\u7801\u8d28\u91cf\u548c\u4e91\u670d\u52a1\u6574\u5408\u8fdc\u4e0d\u5982CodeWhisperer\u3002\u5982\u679c\u4f60\u662fAWS\u91cd\u5ea6\u7528\u6237\uff0cCodeWhisperer\u7684\u751f\u6001\u4f18\u52bf\u662f\u78be\u538b\u7ea7\u7684\u3002<\/p>\n<p>\u5b9a\u4ef7\u6027\u4ef7\u6bd4\u5206\u6790<\/p>\n<p>\u4e2a\u4eba\u7248\uff1a\u514d\u8d39\uff0c\u4e0d\u9650\u4ee3\u7801\u8865\u5168\u548c\u5b89\u5168\u626b\u63cf\u6b21\u6570\uff0c\u652f\u6301VS Code\u3001JetBrains\u3001AWS Cloud9\u7b49IDE\u3002\u4f01\u4e1a\u7248\uff1a19\u7f8e\u5143\/\u7528\u6237\/\u6708\uff0c\u989d\u5916\u63d0\u4f9b\u7ba1\u7406\u7b56\u7565\u3001SSO\u96c6\u6210\u3001\u9ad8\u7ea7\u5b89\u5168\u626b\u63cf\u62a5\u544a\u3002\u5bf9\u6bd4Copilot\u4e2a\u4eba\u724810\u7f8e\u5143\/\u6708\u4f46\u529f\u80fd\u66f4\u5c11\uff0cCodeWhisperer\u7684\u514d\u8d39\u7b56\u7565\u8ba9\u5b83\u5728\u6027\u4ef7\u6bd4\u4e0a\u5b8c\u80dc\u3002\u4e0d\u8fc7\u4f01\u4e1a\u7248\u5b9a\u4ef7\u7565\u9ad8\uff0c\u5c0f\u56e2\u961f\u53ef\u80fd\u66f4\u503e\u5411\u7528\u514d\u8d39\u7248\u3002<\/p>\n<p>\u9002\u5408\u4eba\u7fa4\u4e0e\u4e0d\u9002\u5408\u4eba\u7fa4<\/p>\n<p>\u9002\u5408\uff1aAWS\u4e91\u5f00\u53d1\u8005\uff08\u5c24\u5176\u662fLambda\u3001DynamoDB\u3001S3\u7528\u6237\uff09\u3001\u9884\u7b97\u6709\u9650\u7684\u5b66\u751f\u548c\u72ec\u7acb\u5f00\u53d1\u8005\u3001\u9700\u8981\u5408\u89c4\u5b89\u5168\u626b\u63cf\u7684\u4f01\u4e1a\u56e2\u961f\u3002<\/p>\n<p>\u4e0d\u9002\u5408\uff1a\u7eaf\u524d\u7aef\u5f00\u53d1\u8005\uff08AWS\u76f8\u5173\u63a8\u8350\u8f83\u5c11\uff09\u3001\u8ffd\u6c42\u6781\u81f4\u4ee3\u7801\u8865\u5168\u51c6\u786e\u7387\u7684\u8001\u624b\uff08Copilot\u66f4\u4f18\uff09\u3001\u79bb\u7ebf\u73af\u5883\u5de5\u4f5c\u8005\uff08\u5fc5\u987b\u8054\u7f51\uff09\u3002<\/p>\n<p>\u901a\u8fc7 AI\u521b\u4f5c\u793e \u5bf9\u8be5\u5de5\u5177\u751f\u6210\u7684\u4ee3\u7801\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\uff1a\u514d\u8d39\u4e14\u5b89\u5168\uff0c\u4e91\u5f00\u53d1\u8005\u5fc5\u88c5\u3002<\/p>\n<p>\u9002\u7528\u573a\u666f\u6807\u7b7e\uff1a\u4ee3\u7801\u5f00\u53d1\/AWS\u4e91\u670d\u52a1\/\u5b89\u5168\u5ba1\u8ba1<\/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>\u4e09\u79d2\u949f\u770b\u61c2\uff1a\u514d\u8d39\u4e0d\u9650\u6b21\u4f7f\u7528\uff0c\u5185\u7f6e\u5b89\u5168\u6f0f\u6d1e\u626b\u63cf\uff0cAWS\u751f\u6001\u6df1\u5ea6\u6574\u5408\uff0c\u4e91\u5f00\u53d1\u8005\u6700\u5b9e\u60e0\u7684AI\u7f16\u7a0b\u4f34\u4fa3\u3002<\/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":[144,530,431],"class_list":["post-1099","post","type-post","status-publish","format-standard","hentry","category-ai","tag-ai","tag-amazon-codewhisperer","tag-431"],"_links":{"self":[{"href":"https:\/\/nav.aichuangzuoshe.com\/index.php\/wp-json\/wp\/v2\/posts\/1099","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=1099"}],"version-history":[{"count":0,"href":"https:\/\/nav.aichuangzuoshe.com\/index.php\/wp-json\/wp\/v2\/posts\/1099\/revisions"}],"wp:attachment":[{"href":"https:\/\/nav.aichuangzuoshe.com\/index.php\/wp-json\/wp\/v2\/media?parent=1099"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nav.aichuangzuoshe.com\/index.php\/wp-json\/wp\/v2\/categories?post=1099"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nav.aichuangzuoshe.com\/index.php\/wp-json\/wp\/v2\/tags?post=1099"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}