{"id":1107,"date":"2022-10-14T19:14:03","date_gmt":"2022-10-14T11:14:03","guid":{"rendered":"http:\/\/yushuoxin.xyz\/?p=1107"},"modified":"2022-10-14T19:18:20","modified_gmt":"2022-10-14T11:18:20","slug":"aws-lab-codedeploy","status":"publish","type":"post","link":"https:\/\/yushuoxin.top\/index.php\/2022\/10\/14\/aws-lab-codedeploy\/","title":{"rendered":"AWS CodeDeploy \u5b9e\u9a8c"},"content":{"rendered":"\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_72 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/yushuoxin.top\/index.php\/2022\/10\/14\/aws-lab-codedeploy\/#%E8%83%8C%E6%99%AF\" title=\"\u80cc\u666f\">\u80cc\u666f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/yushuoxin.top\/index.php\/2022\/10\/14\/aws-lab-codedeploy\/#%E9%85%8D%E7%BD%AE%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%E6%BA%90%E7%9A%84%E5%86%85%E5%AE%B9\" title=\"\u914d\u7f6e\u5e94\u7528\u7a0b\u5e8f\u6e90\u7684\u5185\u5bb9\">\u914d\u7f6e\u5e94\u7528\u7a0b\u5e8f\u6e90\u7684\u5185\u5bb9<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/yushuoxin.top\/index.php\/2022\/10\/14\/aws-lab-codedeploy\/#%E4%B8%8B%E8%BD%BDworkpress%E4%BB%A3%E7%A0%81\" title=\"\u4e0b\u8f7dworkpress\u4ee3\u7801\">\u4e0b\u8f7dworkpress\u4ee3\u7801<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/yushuoxin.top\/index.php\/2022\/10\/14\/aws-lab-codedeploy\/#%E5%88%9B%E5%BB%BA%E6%A0%A1%E6%9C%AC%E6%9D%A5%E8%BF%90%E8%A1%8C%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F\" title=\"\u521b\u5efa\u6821\u672c\u6765\u8fd0\u884c\u5e94\u7528\u7a0b\u5e8f\">\u521b\u5efa\u6821\u672c\u6765\u8fd0\u884c\u5e94\u7528\u7a0b\u5e8f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/yushuoxin.top\/index.php\/2022\/10\/14\/aws-lab-codedeploy\/#%E5%88%9B%E5%BB%BA_CodeDeploy_AppSpec_%E6%96%87%E4%BB%B6\" title=\"\u521b\u5efa CodeDeploy AppSpec \u6587\u4ef6\">\u521b\u5efa CodeDeploy AppSpec \u6587\u4ef6<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/yushuoxin.top\/index.php\/2022\/10\/14\/aws-lab-codedeploy\/#%E9%83%A8%E7%BD%B2_WordPress_%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F\" title=\"\u90e8\u7f72 WordPress \u5e94\u7528\u7a0b\u5e8f\">\u90e8\u7f72 WordPress \u5e94\u7528\u7a0b\u5e8f<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/yushuoxin.top\/index.php\/2022\/10\/14\/aws-lab-codedeploy\/#%E5%88%9B%E5%BB%BA_CodeDeploy_%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F\" title=\"\u521b\u5efa CodeDeploy \u5e94\u7528\u7a0b\u5e8f\">\u521b\u5efa CodeDeploy \u5e94\u7528\u7a0b\u5e8f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/yushuoxin.top\/index.php\/2022\/10\/14\/aws-lab-codedeploy\/#%E9%A2%84%E7%BD%AEAmazon_S3_%E5%AD%98%E5%82%A8%E6%A1%B6\" title=\"\u9884\u7f6eAmazon S3 \u5b58\u50a8\u6876\">\u9884\u7f6eAmazon S3 \u5b58\u50a8\u6876<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/yushuoxin.top\/index.php\/2022\/10\/14\/aws-lab-codedeploy\/#%E5%B0%86_WordPress_%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%E4%B8%8A%E4%BC%A0%E5%88%B0_Amazon_S3\" title=\"\u5c06 WordPress \u5e94\u7528\u7a0b\u5e8f\u4e0a\u4f20\u5230 Amazon S3\">\u5c06 WordPress \u5e94\u7528\u7a0b\u5e8f\u4e0a\u4f20\u5230 Amazon S3<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/yushuoxin.top\/index.php\/2022\/10\/14\/aws-lab-codedeploy\/#%E9%83%A8%E7%BD%B2%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F\" title=\"\u90e8\u7f72\u5e94\u7528\u7a0b\u5e8f\">\u90e8\u7f72\u5e94\u7528\u7a0b\u5e8f<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/yushuoxin.top\/index.php\/2022\/10\/14\/aws-lab-codedeploy\/#%E7%9B%91%E6%8E%A7%E9%83%A8%E7%BD%B2\" title=\"\u76d1\u63a7\u90e8\u7f72\">\u76d1\u63a7\u90e8\u7f72<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/yushuoxin.top\/index.php\/2022\/10\/14\/aws-lab-codedeploy\/#%E6%9B%B4%E6%96%B0%E5%92%8C%E9%87%8D%E6%96%B0%E9%83%A8%E7%BD%B2WordPress%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F\" title=\"\u66f4\u65b0\u548c\u91cd\u65b0\u90e8\u7f72WordPress\u5e94\u7528\u7a0b\u5e8f\">\u66f4\u65b0\u548c\u91cd\u65b0\u90e8\u7f72WordPress\u5e94\u7528\u7a0b\u5e8f<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/yushuoxin.top\/index.php\/2022\/10\/14\/aws-lab-codedeploy\/#%E5%AE%8C%E6%88%90WordPress%E7%BD%91%E7%AB%99%E8%AE%BE%E7%BD%AE\" title=\"\u5b8c\u6210WordPress\u7f51\u7ad9\u8bbe\u7f6e\">\u5b8c\u6210WordPress\u7f51\u7ad9\u8bbe\u7f6e<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/yushuoxin.top\/index.php\/2022\/10\/14\/aws-lab-codedeploy\/#%E4%BF%AE%E6%94%B9%E5%92%8C%E9%87%8D%E6%96%B0%E9%83%A8%E7%BD%B2_WordPress_%E7%BD%91%E7%AB%99\" title=\"\u4fee\u6539\u548c\u91cd\u65b0\u90e8\u7f72 WordPress \u7f51\u7ad9\">\u4fee\u6539\u548c\u91cd\u65b0\u90e8\u7f72 WordPress \u7f51\u7ad9<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E8%83%8C%E6%99%AF\"><\/span>\u80cc\u666f<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p>\u672c\u7b14\u8bb0\u53c2\u8003AWS\u5cf0\u4f1a\u52a8\u624b\u5b9e\u9a8c\u5ba4Introduction to AWS CodeDeploy\u3002<\/p>\n\n\n\n<p>\u6db5\u76d6\u7684\u5185\u5bb9\u5305\u62ec\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u9a8c\u8bc1\u662f\u5426\u5df2\u5b89\u88c5 CodeDeploy \u4ee3\u7406\u3002\n\u914d\u7f6e\u8981\u90e8\u7f72\u5230 CodeDeploy \u7684\u5e94\u7528\u7a0b\u5e8f\u6e90\u5185\u5bb9\u3002\n\u521b\u5efa Amazon S3 \u5b58\u50a8\u6876\uff0c\u7136\u540e\u5c06 WordPress \u5e94\u7528\u7a0b\u5e8f\u4e0a\u4f20\u5230\u8be5\u5b58\u50a8\u6876\u3002\n\u5c06 WordPress \u5e94\u7528\u7a0b\u5e8f\u90e8\u7f72\u5230 Amazon EC2 \u5b9e\u4f8b\u3002\n\u76d1\u63a7 WordPress \u5e94\u7528\u7a0b\u5e8f\u90e8\u7f72\u3002\n\u66f4\u65b0 WordPress \u5e94\u7528\u7a0b\u5e8f\uff0c\u7136\u540e\u5bf9\u5176\u8fdb\u884c\u91cd\u65b0\u90e8\u7f72\u3002<\/code><\/pre>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E9%85%8D%E7%BD%AE%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%E6%BA%90%E7%9A%84%E5%86%85%E5%AE%B9\"><\/span>\u914d\u7f6e\u5e94\u7528\u7a0b\u5e8f\u6e90\u7684\u5185\u5bb9<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p>\u901a\u8fc7\u8fd9\u6b65\uff0c\u6211\u4eec\u4f1a\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u914d\u7f6e\u8981\u90e8\u7f72\u7684\u6e90\u5e94\u7528\u7a0b\u5e8f\u5185\u5bb9\u3002\n\u521b\u5efa\u5c06\u5728\u90e8\u7f72\u5e94\u7528\u7a0b\u5e8f\u65f6\u8fd0\u884c\u7684\u811a\u672c\u3002\n\u521b\u5efa CodeDeploy AppSpec \u6587\u4ef6\u3002<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E4%B8%8B%E8%BD%BDworkpress%E4%BB%A3%E7%A0%81\"><\/span>\u4e0b\u8f7dworkpress\u4ee3\u7801<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>wget https:\/\/s3-us-west-2.amazonaws.com\/us-west-2-aws-training\/courses\/spl-82\/v1.4.5.prod-2bbeba30\/scripts\/WordPress-master.zip\nunzip WordPress-master.zip -d \/tmp\/WordPress_Temp\nmkdir -p \/tmp\/WordPress\n\n#\u5c06\u5176\u89e3\u538b\u540e\u7684\u5185\u5bb9\u590d\u5236\u5230 \/tmp\/WordPress \u76ee\u6807\u6587\u4ef6\u5939\u4e2d\u3002\ncp -paf \/tmp\/WordPress_Temp\/WordPress-master\/* \/tmp\/WordPress\n\n#\u5220\u9664\u4e34\u65f6 \/tmp\/WordPress_Temp \u6587\u4ef6\u5939\u548c\u4e3b\u6587\u4ef6\u3002\nrm -rf \/tmp\/WordPress_Temp\nrm -f WordPress-master.zip\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%88%9B%E5%BB%BA%E6%A0%A1%E6%9C%AC%E6%9D%A5%E8%BF%90%E8%A1%8C%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F\"><\/span>\u521b\u5efa\u6821\u672c\u6765\u8fd0\u884c\u5e94\u7528\u7a0b\u5e8f<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u5728 WordPress \u6e90\u4ee3\u7801\u7684\u526f\u672c\u4e2d\u521b\u5efa\u811a\u672c\u76ee\u5f55\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdir -p \/tmp\/WordPress\/scripts<\/code><\/pre>\n\n\n\n<p>\u901a\u8fc7\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u521b\u5efa install_dependencies.sh \u811a\u672c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/tmp\/WordPress\/scripts\/install_dependencies.sh\n#!\/bin\/bash\nyum install -y httpd php mariadb-server php-mysqlnd\n<\/code><\/pre>\n\n\n\n<p>Ctrl+x\u7136\u540e\u952e\u5165y\u56de\u8f66\u4fdd\u5b58\u9000\u51fa\u3002<\/p>\n\n\n\n<p>install_dependencies.sh \u811a\u672c\u5c06\u5b89\u88c5 Apache\u3001MariaDB \u548c PHP\u3002\u5b83\u8fd8\u4f1a\u5c06 MySQL \u652f\u6301\u6dfb\u52a0\u5230 PHP \u4e2d\u3002<\/p>\n\n\n\n<p>\u901a\u8fc7\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u521b\u5efa start_server.sh \u811a\u672c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/tmp\/WordPress\/scripts\/start_server.sh\n#!\/bin\/bash\nservice httpd start\nservice mariadb start\n<\/code><\/pre>\n\n\n\n<p>Ctrl+x\u7136\u540e\u952e\u5165y\u56de\u8f66\u4fdd\u5b58\u9000\u51fa\u3002<\/p>\n\n\n\n<p>\u901a\u8fc7\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u521b\u5efa stop_server.sh \u811a\u672c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/tmp\/WordPress\/scripts\/stop_server.sh\n#!\/bin\/bash\nisExistApp=`pgrep httpd`\nif &#91;&#91; -n  $isExistApp ]]; then\n   service httpd stop\nfi\nisExistApp=`pgrep sql`\nif &#91;&#91; -n  $isExistApp ]]; then\n    service mariadb stop\nfi\n<\/code><\/pre>\n\n\n\n<p>\u901a\u8fc7\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u521b\u5efa create_test_db.sh \u811a\u672c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/tmp\/WordPress\/scripts\/create_test_db.sh\n#!\/bin\/bash\nmysql -uroot &lt;&lt;CREATE_TEST_DB\nCREATE DATABASE IF NOT EXISTS test;\nCREATE_TEST_DB\n<\/code><\/pre>\n\n\n\n<p>\u901a\u8fc7\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u521b\u5efa change_permissions.sh \u811a\u672c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/tmp\/WordPress\/scripts\/change_permissions.sh\n#!\/bin\/bash\nchmod -R 777 \/var\/www\/html\/WordPress\n<\/code><\/pre>\n\n\n\n<p>\u4f7f\u6240\u6709\u811a\u672c\u90fd\u53ef\u6267\u884c\uff0c\u5e76\u5217\u51fa\u811a\u672c\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>chmod +x \/tmp\/WordPress\/scripts\/*\nls -la \/tmp\/WordPress\/scripts<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"682\" height=\"178\" src=\"http:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-12.png\" alt=\"\" class=\"wp-image-1112\" srcset=\"https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-12.png 682w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-12-300x78.png 300w\" sizes=\"auto, (max-width: 682px) 100vw, 682px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%88%9B%E5%BB%BA_CodeDeploy_AppSpec_%E6%96%87%E4%BB%B6\"><\/span>\u521b\u5efa CodeDeploy AppSpec \u6587\u4ef6<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>AWS CodeDeploy \u5c06\u4f7f\u7528 appspec.yml \u6587\u4ef6\u6267\u884c\u4ee5\u4e0b\u64cd\u4f5c\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u5c06\u5e94\u7528\u7a0b\u5e8f\u4fee\u8ba2\u4e2d\u7684\u6e90\u6587\u4ef6\u6620\u5c04\u5230\u76ee\u6807 Amazon EC2 \u5b9e\u4f8b\u4e0a\u7684\u76ee\u6807\u3002<\/li><li>\u6307\u5b9a\u5df2\u90e8\u7f72\u6587\u4ef6\u7684\u81ea\u5b9a\u4e49\u6743\u9650\u3002<\/li><li>\u6307\u5b9a\u90e8\u7f72\u671f\u95f4\u8981\u5728\u76ee\u6807 Amazon EC2 \u5b9e\u4f8b\u4e0a\u8fd0\u884c\u7684\u811a\u672c\u3002<\/li><\/ul>\n\n\n\n<p>AppSpec \u6587\u4ef6\u5fc5\u987b\u547d\u540d\u4e3a <em>appspec.yml<\/em>\u3002\u5b83\u5fc5\u987b\u653e\u7f6e\u5728\u5e94\u7528\u7a0b\u5e8f\u6e90\u4ee3\u7801\u7684\u6839\u76ee\u5f55\u4e2d\u3002\u5728\u672c\u5b9e\u9a8c\u4e2d\uff0c\u6839\u76ee\u5f55\u4e3a \/tmp\/WordPress<\/p>\n\n\n\n<p>AppSpec \u6587\u4ef6\u5bf9\u4e8e AWS CodeDeploy \u6765\u8bf4\u662f\u552f\u4e00\u7684\u3002\u5b83\u5b9a\u4e49\u4e86\u60a8\u5e0c\u671b AWS CodeDeploy \u6267\u884c\u7684\u90e8\u7f72\u64cd\u4f5c\u3002\u60a8\u53ef\u4ee5\u5c06\u53ef\u90e8\u7f72\u7684\u5185\u5bb9\u548c AppSpec \u6587\u4ef6\u6346\u7ed1\u6210\u4e00\u4e2a\u5f52\u6863\u6587\u4ef6\uff0c\u7136\u540e\u5c06\u5176\u4e0a\u4f20\u5230 Amazon S3 \u5b58\u50a8\u6876\u6216 GitHub \u5b58\u50a8\u5e93\u3002\u6b64\u5f52\u6863\u6587\u4ef6\u79f0\u4e3a\u5e94\u7528\u7a0b\u5e8f\u4fee\u8ba2\uff08\u6216\u7b80\u79f0\u4fee\u8ba2\uff09\u3002<\/p>\n\n\n\n<p>\u5728 <em>\/tmp\/WordPress<\/em> \u4e2d\u521b\u5efa\u7279\u5b9a\u4e8e\u5e94\u7528\u7a0b\u5e8f\u7684\u6587\u4ef6\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/tmp\/WordPress\/appspec.yml<\/code><\/pre>\n\n\n\n<p>\u8d34\u5165\u5982\u4e0b\u5185\u5bb9<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>version: 0.0\nos: linux\nfiles:\n  - source: \/\n    destination: \/var\/www\/html\/WordPress\nhooks:\n  BeforeInstall:\n    - location: scripts\/install_dependencies.sh\n      timeout: 300\n      runas: root\n  AfterInstall:\n    - location: scripts\/change_permissions.sh\n      timeout: 300\n      runas: root\n  ApplicationStart:\n    - location: scripts\/start_server.sh\n    - location: scripts\/create_test_db.sh\n      timeout: 300\n      runas: root\n  ApplicationStop:\n    - location: scripts\/stop_server.sh\n      timeout: 300\n      runas: root\n<\/code><\/pre>\n\n\n\n<p>\u8be5 appspec.yaml \u6587\u4ef6\u4e2d\uff0c\u53ef\u4ee5\u770b\u5230\u4e4b\u524d\u521b\u5efa\u76845\u4e2a\u811a\u672c\u3002\u8fd9\u4e9b\u811a\u672c\u5c06\u5728\u90e8\u7f72\u5e94\u7528\u7a0b\u5e8f\u65f6\u8fd0\u884c\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E9%83%A8%E7%BD%B2_WordPress_%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F\"><\/span>\u90e8\u7f72 WordPress \u5e94\u7528\u7a0b\u5e8f<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%88%9B%E5%BB%BA_CodeDeploy_%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F\"><\/span>\u521b\u5efa CodeDeploy \u5e94\u7528\u7a0b\u5e8f<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>aws deploy create-application --application-name WordPress_App<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"863\" height=\"98\" src=\"http:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-13.png\" alt=\"\" class=\"wp-image-1121\" srcset=\"https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-13.png 863w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-13-300x34.png 300w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-13-768x87.png 768w\" sizes=\"auto, (max-width: 863px) 100vw, 863px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E9%A2%84%E7%BD%AEAmazon_S3_%E5%AD%98%E5%82%A8%E6%A1%B6\"><\/span>\u9884\u7f6eAmazon S3 \u5b58\u50a8\u6876<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>aws s3 mb s3:\/\/codedeploybucketleoyu<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"636\" height=\"60\" src=\"http:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-14.png\" alt=\"\" class=\"wp-image-1123\" srcset=\"https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-14.png 636w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-14-300x28.png 300w\" sizes=\"auto, (max-width: 636px) 100vw, 636px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%B0%86_WordPress_%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%E4%B8%8A%E4%BC%A0%E5%88%B0_Amazon_S3\"><\/span>\u5c06 WordPress \u5e94\u7528\u7a0b\u5e8f\u4e0a\u4f20\u5230 Amazon S3<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/tmp\/WordPress\naws deploy push --application-name WordPress_App --description \"This is a revision for the application WordPress_App\" --ignore-hidden-files --s3-location s3:\/\/codedeploybucketleoyu\/WordPressApp.zip --source.<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"137\" src=\"http:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-15-1024x137.png\" alt=\"\" class=\"wp-image-1124\" srcset=\"https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-15-1024x137.png 1024w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-15-300x40.png 300w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-15-768x102.png 768w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-15.png 1079w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E9%83%A8%E7%BD%B2%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F\"><\/span>\u90e8\u7f72\u5e94\u7528\u7a0b\u5e8f<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>aws deploy create-deployment-group --application-name WordPress_App --deployment-config-name CodeDeployDefault.AllAtOnce --deployment-group-name WordPress_DG --ec2-tag-filters Key=Name,Value=CodeDeploy,Type=KEY_AND_VALUE --service-role-arn ROLE<\/code><\/pre>\n\n\n\n<p>\u5c06 <strong>ROLE<\/strong> \u66ff\u6362\u4e3a\u4f4d\u4e8e\u8fd9\u4e9b\u8bf4\u660e\u5de6\u4fa7\u7684 CodeDeployRoleARN \u7684\u503c arn:aws:iam::173207358131:role\/codedeploy-service-role<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>aws deploy create-deployment-group --application-name WordPress_App --deployment-config-name CodeDeployDefault.AllAtOnce --deployment-group-name WordPress_DG --ec2-tag-filters Key=Name,Value=CodeDeploy,Type=KEY_AND_VALUE --service-role-arn arn:aws:iam::173207358131:role\/codedeploy-service-role<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"129\" src=\"http:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-16-1024x129.png\" alt=\"\" class=\"wp-image-1125\" srcset=\"https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-16-1024x129.png 1024w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-16-300x38.png 300w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-16-768x97.png 768w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-16.png 1085w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u4e0a\u8ff0\u64cd\u4f5c\u5c06\u521b\u5efa CodeDeploy \u90e8\u7f72\u7ec4\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>aws deploy create-deployment --application-name WordPress_App --s3-location bucket=codedeploybucketleoyu,key=WordPressApp.zip,bundleType=zip --deployment-group-name WordPress_DG  --description \"This is a revision for the application WordPress_App\"<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"120\" src=\"http:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-17-1024x120.png\" alt=\"\" class=\"wp-image-1127\" srcset=\"https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-17-1024x120.png 1024w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-17-300x35.png 300w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-17-768x90.png 768w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-17.png 1078w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u4e0a\u8ff0\u64cd\u4f5c\u5c06\u90e8\u7f72 WordPress \u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E7%9B%91%E6%8E%A7%E9%83%A8%E7%BD%B2\"><\/span>\u76d1\u63a7\u90e8\u7f72<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"283\" src=\"http:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-18-1024x283.png\" alt=\"\" class=\"wp-image-1131\" srcset=\"https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-18-1024x283.png 1024w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-18-300x83.png 300w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-18-768x212.png 768w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-18-1536x425.png 1536w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-18.png 1768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"821\" src=\"http:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-19-1024x821.png\" alt=\"\" class=\"wp-image-1133\" srcset=\"https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-19-1024x821.png 1024w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-19-300x241.png 300w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-19-768x616.png 768w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-19.png 1273w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u6b64\u65f6\u8bbf\u95ee\u94fe\u63a5 http:\/\/34.220.66.22\/WordPress\/ \u53ef\u89c1WordPress\u9875\u9762<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"880\" height=\"676\" src=\"http:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-20.png\" alt=\"\" class=\"wp-image-1134\" srcset=\"https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-20.png 880w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-20-300x230.png 300w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-20-768x590.png 768w\" sizes=\"auto, (max-width: 880px) 100vw, 880px\" \/><\/figure>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%9B%B4%E6%96%B0%E5%92%8C%E9%87%8D%E6%96%B0%E9%83%A8%E7%BD%B2WordPress%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F\"><\/span>\u66f4\u65b0\u548c\u91cd\u65b0\u90e8\u7f72WordPress\u5e94\u7528\u7a0b\u5e8f<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%AE%8C%E6%88%90WordPress%E7%BD%91%E7%AB%99%E8%AE%BE%E7%BD%AE\"><\/span>\u5b8c\u6210WordPress\u7f51\u7ad9\u8bbe\u7f6e<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"787\" height=\"601\" src=\"http:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-21.png\" alt=\"\" class=\"wp-image-1137\" srcset=\"https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-21.png 787w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-21-300x229.png 300w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-21-768x586.png 768w\" sizes=\"auto, (max-width: 787px) 100vw, 787px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"769\" height=\"544\" src=\"http:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-22.png\" alt=\"\" class=\"wp-image-1138\" srcset=\"https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-22.png 769w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-22-300x212.png 300w\" sizes=\"auto, (max-width: 769px) 100vw, 769px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"789\" height=\"289\" src=\"http:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-23.png\" alt=\"\" class=\"wp-image-1140\" srcset=\"https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-23.png 789w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-23-300x110.png 300w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-23-768x281.png 768w\" sizes=\"auto, (max-width: 789px) 100vw, 789px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"779\" height=\"839\" src=\"http:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-24.png\" alt=\"\" class=\"wp-image-1142\" srcset=\"https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-24.png 779w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-24-279x300.png 279w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-24-768x827.png 768w\" sizes=\"auto, (max-width: 779px) 100vw, 779px\" \/><\/figure>\n\n\n\n<p>\u7136\u540e\u767b\u9646\uff0c\u67e5\u770b\u7f51\u7ad9<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"552\" src=\"http:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-25-1024x552.png\" alt=\"\" class=\"wp-image-1144\" srcset=\"https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-25-1024x552.png 1024w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-25-300x162.png 300w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-25-768x414.png 768w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-25.png 1143w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"711\" src=\"http:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-26-1024x711.png\" alt=\"\" class=\"wp-image-1146\" srcset=\"https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-26-1024x711.png 1024w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-26-300x208.png 300w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-26-768x533.png 768w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-26.png 1042w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E4%BF%AE%E6%94%B9%E5%92%8C%E9%87%8D%E6%96%B0%E9%83%A8%E7%BD%B2_WordPress_%E7%BD%91%E7%AB%99\"><\/span>\u4fee\u6539\u548c\u91cd\u65b0\u90e8\u7f72 WordPress \u7f51\u7ad9<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u5728\u6b64\u4efb\u52a1\u4e2d\uff0c\u6211\u4eec\u5c06\u4fee\u6539 WordPress \u7ad9\u70b9\uff0c\u7136\u540e\u4f7f\u7528 CodeDeploy \u5bf9\u5176\u8fdb\u884c\u91cd\u65b0\u90e8\u7f72\u3002<\/p>\n\n\n\n<p>\u5728\u90e8\u7f72 WordPress \u5e94\u7528\u7a0b\u5e8f\u671f\u95f4\uff0cchange_permissions.sh \u811a\u672c\u66f4\u65b0\u4e86 \/tmp\/WordPress \u6587\u4ef6\u5939\u7684\u6743\u9650\uff0c\u4ee5\u4fbf\u6240\u6709\u4eba\u90fd\u53ef\u4ee5\u5bf9\u5176\u8fdb\u884c\u5199\u5165\u3002<\/p>\n\n\n\n<p>\u73b0\u5728\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u9650\u5236\u6743\u9650\uff0c\u4ee5\u4fbf\u53ea\u6709\u6240\u6709\u8005\u53ef\u4ee5\u5bf9\u5176\u8fdb\u884c\u5199\u5165\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo chmod -R 755 \/var\/www\/html\/WordPress<\/code><\/pre>\n\n\n\n<p>\u5728 wp-content\/themes\/twentyfifteen\/style.css \u6587\u4ef6\u4e2d\u4fee\u6539\u7ad9\u70b9\u7684\u4e00\u4e9b\u989c\u8272\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/tmp\/WordPress\nsed -i 's\/#fff\/#768331\/g' wp-content\/themes\/twentyseventeen\/style.css<\/code><\/pre>\n\n\n\n<p>sed \u547d\u4ee4\u5c06\u6b64\u989c\u8272 (#fff) \u66f4\u6539\u4e3a #768331\u3002<\/p>\n\n\n\n<p>\u8c03\u7528 AWS CodeDeploy push \u547d\u4ee4\uff0c\u5c06\u66f4\u65b0\u540e\u7684\u6587\u4ef6\u6346\u7ed1\u5728\u4e00\u8d77\uff0c\u5c06\u4fee\u8ba2\u4e0a\u4f20\u5230 Amazon S3\uff0c\u7136\u540e\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u5411 AWS CodeDeploy \u6ce8\u518c\u6709\u5173\u4e0a\u4f20\u7684\u4fee\u8ba2\u7684\u4fe1\u606f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>aws deploy push --application-name WordPress_App --s3-location s3:\/\/codedeploybucketleoyu\/WordPressApp.zip --ignore-hidden-files<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"112\" src=\"http:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-28-1024x112.png\" alt=\"\" class=\"wp-image-1148\" srcset=\"https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-28-1024x112.png 1024w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-28-300x33.png 300w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-28-768x84.png 768w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-28.png 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"362\" src=\"http:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-27-1024x362.png\" alt=\"\" class=\"wp-image-1147\" srcset=\"https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-27-1024x362.png 1024w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-27-300x106.png 300w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-27-768x272.png 768w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-27.png 1278w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"470\" src=\"http:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-29-1024x470.png\" alt=\"\" class=\"wp-image-1149\" srcset=\"https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-29-1024x470.png 1024w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-29-300x138.png 300w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-29-768x353.png 768w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-29-1536x705.png 1536w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-29.png 1575w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"770\" height=\"1024\" src=\"http:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-30-770x1024.png\" alt=\"\" class=\"wp-image-1150\" srcset=\"https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-30-770x1024.png 770w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-30-226x300.png 226w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-30-768x1021.png 768w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-30.png 941w\" sizes=\"auto, (max-width: 770px) 100vw, 770px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"610\" src=\"http:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-31-1024x610.png\" alt=\"\" class=\"wp-image-1152\" srcset=\"https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-31-1024x610.png 1024w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-31-300x179.png 300w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-31-768x457.png 768w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-31-1536x914.png 1536w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-31.png 1574w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u6b64\u65f6\u9875\u9762\u7531\u767d\u8272\u53d8\u4e3a\u7eff\u8272\u4e86\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"561\" src=\"http:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-32-1024x561.png\" alt=\"\" class=\"wp-image-1154\" srcset=\"https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-32-1024x561.png 1024w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-32-300x164.png 300w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-32-768x421.png 768w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-32-1536x841.png 1536w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-32-2048x1122.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u7ed3\u675f\u3002<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u80cc\u666f \u672c\u7b14\u8bb0\u53c2\u8003AWS\u5cf0\u4f1a\u52a8\u624b\u5b9e\u9a8c\u5ba4Introduction to AWS CodeDeploy\u3002 \u6db5\u76d6\u7684\u5185\u5bb9 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,8],"tags":[7],"class_list":["post-1107","post","type-post","status-publish","format-standard","hentry","category-2","category-8","tag-aws"],"_links":{"self":[{"href":"https:\/\/yushuoxin.top\/index.php\/wp-json\/wp\/v2\/posts\/1107","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yushuoxin.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yushuoxin.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yushuoxin.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yushuoxin.top\/index.php\/wp-json\/wp\/v2\/comments?post=1107"}],"version-history":[{"count":0,"href":"https:\/\/yushuoxin.top\/index.php\/wp-json\/wp\/v2\/posts\/1107\/revisions"}],"wp:attachment":[{"href":"https:\/\/yushuoxin.top\/index.php\/wp-json\/wp\/v2\/media?parent=1107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yushuoxin.top\/index.php\/wp-json\/wp\/v2\/categories?post=1107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yushuoxin.top\/index.php\/wp-json\/wp\/v2\/tags?post=1107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}