{"id":4005,"date":"2025-11-07T17:35:47","date_gmt":"2025-11-07T09:35:47","guid":{"rendered":"https:\/\/aws-oncloudai.com\/?p=4005"},"modified":"2025-11-07T17:45:53","modified_gmt":"2025-11-07T09:45:53","slug":"what-is-aws-copilot","status":"publish","type":"post","link":"https:\/\/aws-oncloudai.com\/zh_hk\/what-is-aws-copilot\/","title":{"rendered":"\u4ec0\u9ebc\u662fAWS Copilot\uff1f"},"content":{"rendered":"<p>\u5728\u96f2\u7aef\u539f\u751f\u61c9\u7528\u7684\u5feb\u901f\u767c\u5c55\u6642\u4ee3\uff0c\u5bb9\u5668\u5316\u5df2\u6210\u70ba\u4f01\u696d\u73fe\u4ee3\u5316\u61c9\u7528\u67b6\u69cb\u7684\u6838\u5fc3\u8da8\u52e2\u4e4b\u4e00\u3002 Amazon Web Services\uff08AWS\uff09\u5728\u5bb9\u5668\u7ba1\u7406\u9818\u57df\u63d0\u4f9b\u4e86\u591a\u7a2e\u670d\u52d9\u8207\u5de5\u5177\uff0c\u5176\u4e2d <strong>AWS Copilot<\/strong> \u662f\u4e00\u6b3e\u5c08\u70ba\u958b\u767c\u8005\u8a2d\u8a08\u7684\u547d\u4ee4\u5217\u5de5\u5177\uff08CLI\uff09\uff0c\u65e8\u5728\u7c21\u5316\u5728 <strong>Amazon Elastic Container Service\uff08ECS\uff09<\/strong> \u548c <strong>AWS Fargate<\/strong> \u4e0a\u7684\u5bb9\u5668\u5316\u61c9\u7528\u90e8\u7f72\u3001\u7ba1\u7406\u8207\u904b\u7dad\u6d41\u7a0b\u3002<\/p>\n<p>\u5c0d\u65bc\u5e0c\u671b\u5feb\u901f\u5efa\u7f6e\u3001\u4ea4\u4ed8\u548c\u64f4\u5c55\u5bb9\u5668\u5316\u61c9\u7528\u7684\u5718\u968a\u800c\u8a00\uff0cAWS Copilot \u63d0\u4f9b\u4e86\u4e00\u7a2e\u65e2\u9ad8\u6548\u53c8\u7d50\u69cb\u5316\u7684\u958b\u767c\u9ad4\u9a57\u3002<\/p>\n<p>&nbsp;<\/p>\n<h4>AWS Copilot \u7684\u6838\u5fc3\u5b9a\u4f4d<\/h4>\n<p>AWS Copilot \u7684\u51fa\u73fe\uff0c\u662f\u70ba\u4e86\u964d\u4f4e\u958b\u767c\u8005\u5728\u90e8\u7f72\u5bb9\u5668\u5316\u61c9\u7528\u6642\u6240\u9762\u81e8\u7684\u8907\u96dc\u5ea6\u3002\u50b3\u7d71\u65b9\u5f0f\u4e2d\uff0c\u5718\u968a\u9700\u8981\u5206\u5225\u914d\u7f6eECS\u3001Application Load Balancer\u3001Service Discovery\u3001IAM \u6b0a\u9650\u53caCI\/CD \u7ba1\u7dda\u7b49\u8cc7\u6e90\uff0c\u4e0d\u50c5\u589e\u52a0\u4e86\u5de5\u4f5c\u91cf\uff0c\u4e5f\u63d0\u9ad8\u4e86\u51fa\u932f\u98a8\u96aa\u3002<\/p>\n<p>Copilot \u5247\u900f\u904e\u4e00\u689d\u6307\u4ee4\uff0c\u5c07\u9019\u4e9b\u7e41\u7463\u7684\u6b65\u9a5f\u81ea\u52d5\u5316\uff1a<\/p>\n<ul>\n<li>\u4e00\u9375\u5275\u5efaECS \u670d\u52d9\u8207\u74b0\u5883\uff1b<\/li>\n<li>\u81ea\u52d5\u7522\u751f\u90e8\u7f72\u6240\u9700\u7684\u57fa\u790e\u67b6\u69cb\u7bc4\u672c\uff08CloudFormation\uff09\uff1b<\/li>\n<li>\u7d71\u4e00\u7ba1\u7406\u591a\u74b0\u5883\uff08\u958b\u767c\u3001\u6e2c\u8a66\u3001\u751f\u7522\uff09\u7684\u914d\u7f6e\uff1b<\/li>\n<li>\u63d0\u4f9b\u6301\u7e8c\u4ea4\u4ed8\uff08CI\/CD\uff09\u652f\u63f4\u3002<\/li>\n<\/ul>\n<p>\u900f\u904eCopilot\uff0c\u958b\u767c\u4eba\u54e1\u7121\u9700\u6df1\u5165\u638c\u63e1ECS \u67b6\u69cb\u7684\u5e95\u5c64\u7d30\u7bc0\uff0c\u4e5f\u80fd\u6709\u6548\u90e8\u7f72\u7b26\u5408\u751f\u7522\u6a19\u6e96\u7684\u5bb9\u5668\u5316\u61c9\u7528\u3002<\/p>\n<p>&nbsp;<\/p>\n<h4>AWS Copilot \u7684\u4e3b\u8981\u529f\u80fd<\/h4>\n<h5><strong>1.\u5feb\u901f\u61c9\u7528\u521d\u59cb\u5316<\/strong><\/h5>\n<p>\u4f7f\u7528\u6307\u4ee4copilot init\uff0c\u5373\u53ef\u5728\u5e7e\u5206\u9418\u5167\u5efa\u7acb\u65b0\u7684\u5bb9\u5668\u5316\u61c9\u7528\uff0c\u5305\u62ec\u4efb\u52d9\u5b9a\u7fa9\u3001\u8ca0\u8f09\u5e73\u8861\u914d\u7f6e\u3001\u7db2\u8def\u7b56\u7565\u548c\u65e5\u8a8c\u8a18\u9304\u3002<\/p>\n<h5><strong>2.\u591a\u74b0\u5883\u90e8\u7f72\u652f\u6301<\/strong><\/h5>\n<p>Copilot \u652f\u63f4\u70ba\u76f8\u540c\u61c9\u7528\u7a0b\u5f0f\u5b9a\u7fa9\u591a\u500b\u74b0\u5883\uff08\u5982dev\u3001staging\u3001prod\uff09\uff0c\u4e26\u80fd\u81ea\u52d5\u70ba\u6bcf\u500b\u74b0\u5883\u914d\u7f6e\u7368\u7acb\u7684VPC\u3001\u5b50\u7db2\u8def\u3001\u5b89\u5168\u7fa4\u7d44\u7b49\u8cc7\u6e90\uff0c\u78ba\u4fdd\u74b0\u5883\u9593\u7684\u9694\u96e2\u8207\u5b89\u5168\u6027\u3002<\/p>\n<h5><strong>3.\u5167\u5efa\u6301\u7e8c\u4ea4\u4ed8\uff08CI\/CD\uff09\u7ba1\u7dda<\/strong><\/h5>\n<p>\u900f\u904eCopilot \u7684pipeline init \u6307\u4ee4\uff0c\u958b\u767c\u8005\u53ef\u4ee5\u5feb\u901f\u5efa\u7acb\u57fa\u65bcAWS CodePipeline \u7684\u6301\u7e8c\u4ea4\u4ed8\u6d41\u7a0b\uff0c\u5be6\u73fe\u5f9e\u7a0b\u5f0f\u78bc\u63d0\u4ea4\u5230\u751f\u7522\u90e8\u7f72\u7684\u81ea\u52d5\u5316\u767c\u5e03\u3002<\/p>\n<h5><strong>4.\u7121\u7e2b\u6574\u5408\u65e5\u8a8c\u8207\u76e3\u63a7<\/strong><\/h5>\n<p>Copilot \u81ea\u52d5\u8a2d\u5b9a\u8207Amazon CloudWatch \u7684\u96c6\u6210\uff0c\u958b\u767c\u8005\u53ef\u76f4\u63a5\u900f\u904e\u547d\u4ee4\u5217\u67e5\u770b\u670d\u52d9\u65e5\u8a8c\u3001\u76e3\u63a7\u6307\u6a19\u8207\u4e8b\u4ef6\u72c0\u614b\u3002<\/p>\n<h5><strong>5.\u5167\u5efa\u6700\u4f73\u5be6\u52d9\u67b6\u69cb<\/strong><\/h5>\n<p>Copilot \u6bcf\u4e00\u6b21\u90e8\u7f72\u6642\uff0c\u90fd\u6703\u4f9d\u64daAWS \u63a8\u85a6\u67b6\u69cb\u81ea\u52d5\u7522\u751fCloudFormation \u6a21\u677f\uff0c\u78ba\u4fdd\u90e8\u7f72\u5b89\u5168\u3001\u7a69\u5b9a\u3001\u53ef\u64f4\u5145\u3002<\/p>\n<p>&nbsp;<\/p>\n<h4>\u9069\u7528\u5834\u666f\u8207\u50f9\u503c\u9ad4\u73fe<\/h4>\n<p>\u5c0d\u65bc\u63a1\u7528\u5bb9\u5668\u5316\u7b56\u7565\u7684\u4f01\u696d\uff0cAWS Copilot \u4e3b\u8981\u5e36\u4f86\u4e09\u65b9\u9762\u50f9\u503c\uff1a<\/p>\n<ul>\n<li><strong>\u958b\u767c\u63d0\u6548<\/strong>\uff1a\u8b93\u958b\u767c\u4eba\u54e1\u5c07\u91cd\u5fc3\u653e\u5728\u61c9\u7528\u908f\u8f2f\u4e0a\uff0c\u800c\u975e\u5e95\u5c64\u914d\u7f6e\u3002<\/li>\n<li><strong>\u67b6\u69cb\u6a19\u6e96\u5316<\/strong>\uff1a\u4ee5AWS \u5b98\u65b9\u6700\u4f73\u5be6\u8e10\u70ba\u57fa\u790e\uff0c\u907f\u514d\u4eba\u70ba\u914d\u7f6e\u932f\u8aa4\u3002<\/li>\n<li><strong>\u8de8\u74b0\u5883\u4e00\u81f4\u6027<\/strong>\uff1a\u540c\u4e00\u5957\u914d\u7f6e\u53ef\u61c9\u7528\u65bc\u591a\u500b\u74b0\u5883\uff0c\u964d\u4f4e\u767c\u5e03\u98a8\u96aa\u3002<\/li>\n<\/ul>\n<p>\u5178\u578b\u9069\u7528\u5834\u666f\u5305\u62ec\uff1a<\/p>\n<ul>\n<li>\u5fae\u670d\u52d9\u67b6\u69cb\u61c9\u7528\u7684\u5feb\u901f\u539f\u578b\u958b\u767c\u8207\u4e0a\u7dda\uff1b<\/li>\n<li>\u8de8\u74b0\u5883DevOps \u7ba1\u7dda\u7684\u81ea\u52d5\u5316\u90e8\u7f72\uff1b<\/li>\n<li>\u9700\u8981\u5728ECS\/Fargate \u4e0a\u5feb\u901f\u5efa\u7f6e\u751f\u7522\u7d1a\u5bb9\u5668\u670d\u52d9\u7684\u5c08\u6848\u3002<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h4>AWS Copilot \u8207\u5176\u4ed6\u5de5\u5177\u7684\u5340\u5225<\/h4>\n<p>\u8207AWS CLI \u6216Terraform \u7b49\u57fa\u790e\u67b6\u69cb\u7ba1\u7406\u5de5\u5177\u4e0d\u540c\uff0cCopilot \u66f4\u504f\u5411 <strong>\u958b\u767c\u8005\u53cb\u5584\u61c9\u7528\u5c64\u5de5\u5177<\/strong>\u3002\u5b83\u5c01\u88dd\u4e86ECS \u8207Fargate \u7684\u8907\u96dc\u914d\u7f6e\uff0c\u8b93\u958b\u767c\u4eba\u54e1\u4ee5\u66f4\u76f4\u89c0\u7684\u65b9\u5f0f\u64cd\u4f5c\u96f2\u7aef\u4e0a\u8cc7\u6e90\u3002<\/p>\n<p>\u7c21\u55ae\u4f86\u8aaa\uff1a<\/p>\n<ul>\n<li>AWS CLI \u9069\u5408\u901a\u7528\u96f2\u7aef\u8cc7\u6e90\u7ba1\u7406\uff1b<\/li>\n<li>Terraform \u9069\u5408\u5927\u898f\u6a21\u57fa\u790e\u8a2d\u65bd\u7de8\u6392\uff1b<\/li>\n<li>\u800c <strong>AWS Copilot<\/strong> \u5247\u805a\u7126\u65bc <strong>\u5bb9\u5668\u5316\u61c9\u7528\u7684\u958b\u767c\u8207\u90e8\u7f72\u751f\u547d\u9031\u671f\u7ba1\u7406<\/strong>\u3002<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h4>\u603b\u7ed3<\/h4>\n<p>AWS Copilot \u8b93\u5bb9\u5668\u5316\u90e8\u7f72\u4e0d\u518d\u662fDevOps \u5c08\u696d\u4eba\u58eb\u7684\u5c08\u5c6c\u6280\u80fd\uff0c\u800c\u662f\u6bcf\u4f4d\u958b\u767c\u8005\u90fd\u80fd\u8f15\u9b06\u638c\u63e1\u7684\u9ad8\u6548\u5de5\u5177\u3002\u900f\u904e\u5176\u5167\u5efa\u7684\u81ea\u52d5\u5316\u6d41\u7a0b\uff0c\u4f01\u696d\u80fd\u5920\u66f4\u5feb\u901f\u5730\u5c07\u61c9\u7528\u7a0b\u5f0f\u5f9e\u958b\u767c\u968e\u6bb5\u63a8\u5411\u751f\u7522\u74b0\u5883\uff0c\u540c\u6642\u78ba\u4fdd\u67b6\u69cb\u5b89\u5168\u8207\u6548\u80fd\u7a69\u5b9a\u3002<\/p>\n<p>\u4f5c\u70ba <strong>AWS \u5b98\u65b9\u6388\u6b0a\u4ee3\u7406\u5546<\/strong>\uff0c\u6211\u5011\u5728\u5bb9\u5668\u670d\u52d9\u3001\u96f2\u7aef\u4e0a\u67b6\u69cb\u8a2d\u8a08\u8207\u6301\u7e8c\u4ea4\u4ed8\u9ad4\u7cfb\u5efa\u7f6e\u65b9\u9762\u64c1\u6709\u8c50\u5bcc\u7d93\u9a57\u3002\u5982\u679c\u60a8\u7684\u4f01\u696d\u6b63\u8a08\u5283\u57fa\u65bcECS \u6216Fargate \u5efa\u7acb\u5bb9\u5668\u5316\u9ad4\u7cfb\uff0c\u6216\u5e0c\u671b\u5229\u7528Copilot \u5be6\u73fe\u654f\u6377\u4ea4\u4ed8\u8207\u81ea\u52d5\u5316\u90e8\u7f72\uff0c\u6b61\u8fce\u806f\u7d61\u6211\u5011\u7684\u6280\u8853\u9867\u554f\u5718\u968a\u3002<\/p>\n<p>\u6211\u5011\u5c07\u6839\u64da\u60a8\u7684\u696d\u52d9\u9700\u6c42\uff0c\u63d0\u4f9b\u5f9e\u5bb9\u5668\u67b6\u69cb\u898f\u5283\u5230\u90e8\u7f72\u512a\u5316\u7684\u5168\u65b9\u4f4dAWS \u96f2\u7aef\u4e0a\u89e3\u6c7a\u65b9\u6848\uff0c\u5354\u52a9\u4f01\u696d\u6709\u6548\u7387\u4e14\u5b89\u5168\u5730\u9081\u5411\u96f2\u7aef\u539f\u751f\u3002<\/p>","protected":false},"excerpt":{"rendered":"<p>\u5728\u96f2\u7aef\u539f\u751f\u61c9\u7528\u7684\u5feb\u901f\u767c\u5c55\u6642\u4ee3\uff0c\u5bb9\u5668\u5316\u5df2\u6210\u70ba\u4f01\u696d\u73fe\u4ee3\u5316\u61c9\u7528\u67b6\u69cb\u7684\u6838\u5fc3\u8da8\u52e2\u4e4b\u4e00\u3002 Amazon Web Services\uff08AWS\uff09\u5728\u5bb9\u5668\u7ba1\u7406\u9818\u57df\u63d0\u4f9b\u4e86\u591a\u7a2e\u670d\u52d9\u8207\u5de5\u5177\uff0c\u5176\u4e2dAWS Copilot \u662f\u4e00\u6b3e\u5c08\u70ba\u958b\u767c\u8005\u8a2d\u8a08\u7684\u547d\u4ee4\u5217\u5de5\u5177\uff08CLI\uff09\uff0c\u65e8\u5728\u7c21\u5316\u5728Amazon Elastic Container Service\uff08ECS\uff09 \u548cAWS Fargate \u4e0a\u7684\u5bb9\u5668\u5316\u61c9\u7528\u90e8\u7f72\u3001\u7ba1\u7406\u8207\u904b\u7dad\u6d41\u7a0b\u3002<\/p>","protected":false},"author":1,"featured_media":4006,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[65],"tags":[],"class_list":["post-4005","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technical-sharing"],"_links":{"self":[{"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/posts\/4005","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/comments?post=4005"}],"version-history":[{"count":1,"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/posts\/4005\/revisions"}],"predecessor-version":[{"id":4007,"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/posts\/4005\/revisions\/4007"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/media\/4006"}],"wp:attachment":[{"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/media?parent=4005"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/categories?post=4005"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/tags?post=4005"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}