{"id":1160,"date":"2026-05-05T12:19:49","date_gmt":"2026-05-05T04:19:49","guid":{"rendered":"https:\/\/nav.aichuangzuoshe.com\/index.php\/2026\/05\/05\/amazon-codewhisperer%ef%bc%9a%e4%ba%91%e5%bc%80%e5%8f%91%e8%80%85%e7%9a%84%e9%9a%90%e5%bd%a2%e5%a4%96%e6%8c%82\/"},"modified":"2026-05-05T12:19:49","modified_gmt":"2026-05-05T04:19:49","slug":"amazon-codewhisperer%ef%bc%9a%e4%ba%91%e5%bc%80%e5%8f%91%e8%80%85%e7%9a%84%e9%9a%90%e5%bd%a2%e5%a4%96%e6%8c%82","status":"publish","type":"post","link":"https:\/\/nav.aichuangzuoshe.com\/index.php\/2026\/05\/05\/amazon-codewhisperer%ef%bc%9a%e4%ba%91%e5%bc%80%e5%8f%91%e8%80%85%e7%9a%84%e9%9a%90%e5%bd%a2%e5%a4%96%e6%8c%82\/","title":{"rendered":"Amazon CodeWhisperer\uff1a\u4e91\u5f00\u53d1\u8005\u7684\u9690\u5f62\u5916\u6302"},"content":{"rendered":"<p>\u4e09\u79d2\u949f\u770b\u61c2\uff1aAWS\u5b98\u65b9\u7684\u514d\u8d39AI\u7f16\u7a0b\u52a9\u624b\uff0c\u6df1\u5ea6\u96c6\u6210\u4e91\u7aef\u751f\u6001\uff0c\u5185\u7f6e\u4ee3\u7801\u5b89\u5168\u626b\u63cf\uff0c\u9002\u5408\u4e91\u539f\u751f\u5f00\u53d1\u8005\u3002<\/p>\n<p>\u5982\u679c\u4f60\u662f\u4e2a\u5929\u5929\u8ddfAWS\u63a7\u5236\u53f0\u6253\u4ea4\u9053\u7684\u5f00\u53d1\u8005\uff0c\u6216\u8005\u5728\u4e91\u539f\u751f\u67b6\u6784\u91cc\u6478\u722c\u6eda\u6253\uff0c\u90a3\u4f60\u5927\u6982\u7387\u5df2\u7ecf\u542c\u8bf4\u8fc7Amazon CodeWhisperer\u8fd9\u4e2a\u540d\u5b57\u3002\u4f5c\u4e3aAWS\u5b98\u65b9\u63a8\u51fa\u7684AI\u7f16\u7a0b\u52a9\u624b\uff0c\u5b83\u4e0d\u50cfGitHub Copilot\u90a3\u6837\u81ea\u5e26\u5149\u73af\uff0c\u4f46\u5f53\u4f60\u771f\u6b63\u628a\u5b83\u88c5\u8fdbIDE\u91cc\u7528\u4e0a\u4e24\u5468\uff0c\u4f1a\u53d1\u73b0\u8fd9\u73a9\u610f\u513f\u5176\u5b9e\u662f\u4e2a\u9690\u85cf\u7684\u72e0\u89d2\u8272\u3002<\/p>\n<p>\u5148\u8bf4\u6700\u6838\u5fc3\u7684\u4f53\u9a8c\uff1aCodeWhisperer\u7684\u4ee3\u7801\u8865\u5168\u901f\u5ea6\u975e\u5e38\u5feb\uff0c\u51e0\u4e4e\u611f\u89c9\u4e0d\u5230\u5ef6\u8fdf\u3002\u5b83\u57fa\u4e8e\u4e00\u4e2a\u4e13\u95e8\u9488\u5bf9AWS\u670d\u52a1\u4f18\u5316\u7684\u6a21\u578b\uff0c\u8fd9\u610f\u5473\u7740\u5f53\u4f60\u5199`boto3.client(&#8216;s3&#8217;).`\u7684\u65f6\u5019\uff0c\u5b83\u80fd\u9884\u5224\u51fa\u4f60\u63a5\u4e0b\u6765\u8981\u8c03\u7528\u7684\u65b9\u6cd5\uff0c\u8fde\u53c2\u6570\u90fd\u80fd\u5e2e\u4f60\u8865\u4e2a\u4e03\u4e03\u516b\u516b\u3002\u6839\u636eAWS\u5b98\u65b9\u516c\u5e03\u7684\u6570\u636e\uff0cCodeWhisperer\u7684\u4ee3\u7801\u5efa\u8bae\u63a5\u53d7\u7387\u572835%-45%\u4e4b\u95f4\uff0c\u8fd9\u4e2a\u6570\u5b57\u5728\u540c\u7c7b\u5de5\u5177\u91cc\u5c5e\u4e8e\u4e2d\u4e0a\u6c34\u5e73\u3002<\/p>\n<p>\u4f46\u771f\u6b63\u8ba9\u6211\u89c9\u5f97\u5b83\u503c\u56de\u7968\u4ef7\uff08\u867d\u7136\u514d\u8d39\uff09\u7684\uff0c\u662f\u5185\u7f6e\u7684\u5b89\u5168\u626b\u63cf\u529f\u80fd\u3002\u8fd9\u662f\u4e2a\u6740\u624b\u7ea7\u7279\u6027\u2014\u2014\u4f60\u5199\u4ee3\u7801\u7684\u65f6\u5019\uff0c\u5b83\u4f1a\u5b9e\u65f6\u626b\u63cf\u4f60\u7684\u4ee3\u7801\u7247\u6bb5\uff0c\u8bc6\u522b\u51faOWASP Top 10\u91cc\u7684\u5e38\u89c1\u6f0f\u6d1e\uff0c\u6bd4\u5982SQL\u6ce8\u5165\u3001\u786c\u7f16\u7801\u5bc6\u94a5\u3001\u4e0d\u5b89\u5168\u7684\u52a0\u5bc6\u7b97\u6cd5\u3002\u6211\u5b9e\u6d4b\u8fc7\uff0c\u5199\u4e00\u4e2a\u7b80\u5355\u7684Lambda\u51fd\u6570\u65f6\uff0c\u5b83\u76f4\u63a5\u63d0\u793a\u6211`AWS_ACCESS_KEY_ID`\u4e0d\u5e94\u8be5\u786c\u7f16\u7801\u5728\u4ee3\u7801\u91cc\uff0c\u5efa\u8bae\u6211\u6539\u7528Secrets Manager\u3002\u8fd9\u79cd\u7ea7\u522b\u7684\u5b89\u5168\u63d0\u793a\u5728Copilot\u91cc\u662f\u6ca1\u6709\u7684\uff0c\u81f3\u5c11\u514d\u8d39\u7248\u6ca1\u6709\u3002<\/p>\n<p>\u518d\u8bf4\u8bf4\u5b83\u7684\u5178\u578b\u4f7f\u7528\u573a\u666f\u3002\u7b2c\u4e00\u4e2a\u662fAWS Lambda\u51fd\u6570\u5f00\u53d1\u3002\u4f60\u7528CodeWhisperer\u5199Lambda\uff0c\u5b83\u4f1a\u81ea\u52a8\u8865\u5168\u4e8b\u4ef6\u53c2\u6570\u7684\u4e0a\u4e0b\u6587\uff0c\u6bd4\u5982`def lambda_handler(event, context):`\u540e\u9762\uff0c\u4f60\u6572\u4e00\u4e2a`event[&#8216;`\uff0c\u5b83\u5c31\u80fd\u5217\u51fa\u5e38\u89c1\u7684\u952e\u540d\uff0c\u6bd4\u5982`Records`\u3001`body`\u3001`requestContext`\u3002\u7b2c\u4e8c\u4e2a\u573a\u666f\u662fCloudFormation\u6a21\u677f\u7f16\u5199\u3002\u8fd9\u4e1c\u897fYAML\u8bed\u6cd5\u70e6\u5f97\u8981\u6b7b\uff0cCodeWhisperer\u80fd\u5e2e\u4f60\u8865\u5168\u8d44\u6e90\u7c7b\u578b\u3001\u5c5e\u6027\u540d\uff0c\u751a\u81f3\u80fd\u63d0\u793a\u54ea\u4e9b\u53c2\u6570\u662f\u5fc5\u586b\u7684\u3002\u7b2c\u4e09\u4e2a\u573a\u666f\u662fAPI Gateway\u96c6\u6210\u2014\u2014\u4f60\u5199\u4e00\u4e2aAPI\u8def\u7531\uff0c\u5b83\u80fd\u5e2e\u4f60\u8865\u5168\u8bf7\u6c42\u9a8c\u8bc1\u3001CORS\u914d\u7f6e\u8fd9\u4e9b\u7e41\u7410\u7684\u4ee3\u7801\u3002<\/p>\n<p>\u6a2a\u5411\u5bf9\u6bd4GitHub Copilot\uff0c\u4e24\u8005\u7684\u5b9a\u4f4d\u5176\u5b9e\u6709\u5fae\u5999\u5dee\u5f02\u3002Copilot\u66f4\u50cf\u4e2a\u901a\u7528\u578b\u52a9\u624b\uff0c\u4ec0\u4e48\u8bed\u8a00\u4ec0\u4e48\u6846\u67b6\u90fd\u80fd\u5e94\u4ed8\uff0c\u4f46\u6df1\u5ea6\u4e0d\u591f\uff1bCodeWhisperer\u5219\u662f\u4e2a\u504f\u79d1\u751f\uff0c\u4e13\u6ce8\u4e8eAWS\u751f\u6001\uff0c\u5982\u679c\u4f60\u4e3b\u8981\u505a\u4e91\u7aef\u5f00\u53d1\uff0c\u5b83\u7684\u51c6\u786e\u5ea6\u751a\u81f3\u4f1a\u8d85\u8fc7Copilot\u3002\u4e3e\u4e2a\u5177\u4f53\u4f8b\u5b50\uff1a\u5199\u4e00\u4e2aS3 Bucket\u7684\u7b56\u7565\u6587\u6863\uff0cCodeWhisperer\u80fd\u76f4\u63a5\u7ed9\u4f60\u8865\u5168\u5b8c\u6574\u7684`Statement`\u7ed3\u6784\uff0c\u800cCopilot\u7ed9\u51fa\u7684\u5efa\u8bae\u7ecf\u5e38\u9700\u8981\u624b\u52a8\u8c03\u6574\u3002\u4e0d\u8fc7\uff0c\u5982\u679c\u4f60\u5199\u7684\u662fReact\u524d\u7aef\u6216\u8005Python\u6570\u636e\u5904\u7406\u811a\u672c\uff0cCopilot\u660e\u663e\u66f4\u5f3a\u3002\u53e6\u5916\uff0cCodeWhisperer\u514d\u8d39\u7248\u4e0d\u9650\u6b21\u6570\uff0c\u800cCopilot\u514d\u8d39\u7248\u6bcf\u6708\u53ea\u67092000\u6b21\u8865\u5168\uff0c\u8fd9\u5bf9\u91cd\u5ea6\u7528\u6237\u6765\u8bf4\u662f\u4e2a\u5de8\u5927\u7684\u4f18\u52bf\u3002<\/p>\n<p>\u5b9a\u4ef7\u65b9\u9762\uff0cCodeWhisperer\u63d0\u4f9b\u4e24\u4e2a\u5c42\u7ea7\uff1a\u514d\u8d39\u7248\uff08\u4e2a\u4eba\u5f00\u53d1\u8005\uff09\u548c\u4e13\u4e1a\u7248\uff08\u4f01\u4e1a\u7528\u6237\uff09\u3002\u514d\u8d39\u7248\u5305\u542b\u6240\u6709\u6838\u5fc3\u529f\u80fd\uff0c\u5305\u62ec\u5b89\u5168\u626b\u63cf\uff0c\u6bcf\u5929\u8865\u5168\u6b21\u6570\u4e0d\u9650\u5236\uff0c\u552f\u4e00\u7684\u9650\u5236\u662f\u53ea\u80fd\u5173\u8054\u4e00\u4e2aAWS Builder ID\u3002\u4e13\u4e1a\u7248\u6bcf\u670819\u7f8e\u5143\/\u7528\u6237\uff0c\u989d\u5916\u63d0\u4f9b\u7ba1\u7406\u5458\u63a7\u5236\u3001SSO\u96c6\u6210\u3001\u4ee5\u53ca\u66f4\u9ad8\u4f18\u5148\u7ea7\u7684\u4ee3\u7801\u5efa\u8bae\u3002\u5bf9\u4e8e\u4e2a\u4eba\u5f00\u53d1\u8005\u6765\u8bf4\uff0c\u514d\u8d39\u7248\u5b8c\u5168\u591f\u7528\uff0c\u6ca1\u5fc5\u8981\u5347\u7ea7\u3002<\/p>\n<p>\u9002\u5408\u4eba\u7fa4\u975e\u5e38\u660e\u786e\uff1a\u5982\u679c\u4f60\u65e5\u5e38\u5f00\u53d1\u79bb\u4e0d\u5f00AWS\u670d\u52a1\uff0c\u6bd4\u5982Lambda\u3001DynamoDB\u3001S3\u3001API Gateway\u8fd9\u4e9b\uff0c\u90a3CodeWhisperer\u5c31\u662f\u4f60\u7684\u5fc5\u4fee\u8bfe\u3002\u5b83\u80fd\u8ba9\u4f60\u7684\u5f00\u53d1\u6548\u7387\u63d0\u534730%\u4ee5\u4e0a\uff0c\u5c24\u5176\u662f\u5199\u90a3\u4e9b\u91cd\u590d\u6027\u9ad8\u7684\u914d\u7f6e\u4ee3\u7801\u65f6\u3002\u4e0d\u9002\u5408\u4eba\u7fa4\u5305\u62ec\uff1a\u524d\u7aef\u5f00\u53d1\u8005\u3001\u7eaf\u540e\u7aef\u4f46\u4e0d\u6d89\u53ca\u4e91\u670d\u52a1\u7684\u5f00\u53d1\u8005\u3001\u4ee5\u53ca\u4e3b\u8981\u7528GitHub Copilot\u7684\u6781\u5ba2\u2014\u2014\u540e\u8005\u4e0d\u9700\u8981\u8fc1\u79fb\uff0c\u4e24\u4e2a\u5de5\u5177\u53ef\u4ee5\u540c\u65f6\u5b89\u88c5\u5728IDE\u91cc\uff0c\u4e92\u4e0d\u51b2\u7a81\u3002<\/p>\n<p>\u6700\u540e\u63d0\u4e00\u53e5\uff0c\u5982\u679c\u4f60\u7528CodeWhisperer\u751f\u6210\u4e86\u6709\u7248\u6743\u4ef7\u503c\u7684\u4ee3\u7801\u5e93\u6216\u9879\u76ee\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\uff1a\u514d\u8d39\u4e14\u5f3a\u5927\u7684AWS\u4e13\u5c5e\u7f16\u7a0b\u52a9\u624b\uff0c\u4e91\u5f00\u53d1\u8005\u5fc5\u88c5\u3002<\/p>\n<p>\u9002\u7528\u573a\u666f\u6807\u7b7e\uff1a\u4e91\u539f\u751f\u5f00\u53d1\/\u4ee3\u7801\u5b89\u5168\u5ba1\u8ba1\/AWS\u81ea\u52a8\u5316<\/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\uff0c\u4ee3\u7801\u8865\u5168\uff0c\u5b89\u5168\u626b\u63cf<\/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-1160","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\/1160","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=1160"}],"version-history":[{"count":0,"href":"https:\/\/nav.aichuangzuoshe.com\/index.php\/wp-json\/wp\/v2\/posts\/1160\/revisions"}],"wp:attachment":[{"href":"https:\/\/nav.aichuangzuoshe.com\/index.php\/wp-json\/wp\/v2\/media?parent=1160"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nav.aichuangzuoshe.com\/index.php\/wp-json\/wp\/v2\/categories?post=1160"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nav.aichuangzuoshe.com\/index.php\/wp-json\/wp\/v2\/tags?post=1160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}