{"id":48385,"date":"2023-10-15T13:33:23","date_gmt":"2023-07-03T09:22:56","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e6%83%b3%e5%9c%a8%e4%bd%bf%e7%94%a8pluralith%e5%88%9b%e5%bb%ba%e7%9a%84ec2%e7%8e%af%e5%a2%83%e7%9a%84%e9%85%8d%e7%bd%ae%e5%9b%be%e4%b8%ad%e6%98%be%e7%a4%ba%e6%88%90%e6%9c%ac%e3%80%82\/"},"modified":"2024-05-04T04:21:31","modified_gmt":"2024-05-03T20:21:31","slug":"%e6%88%91%e6%83%b3%e5%9c%a8%e4%bd%bf%e7%94%a8pluralith%e5%88%9b%e5%bb%ba%e7%9a%84ec2%e7%8e%af%e5%a2%83%e7%9a%84%e9%85%8d%e7%bd%ae%e5%9b%be%e4%b8%ad%e6%98%be%e7%a4%ba%e6%88%90%e6%9c%ac%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e6%83%b3%e5%9c%a8%e4%bd%bf%e7%94%a8pluralith%e5%88%9b%e5%bb%ba%e7%9a%84ec2%e7%8e%af%e5%a2%83%e7%9a%84%e9%85%8d%e7%bd%ae%e5%9b%be%e4%b8%ad%e6%98%be%e7%a4%ba%e6%88%90%e6%9c%ac%e3%80%82\/","title":{"rendered":"\u6211\u60f3\u5728\u4f7f\u7528Pluralith\u521b\u5efa\u7684EC2\u73af\u5883\u7684\u914d\u7f6e\u56fe\u4e2d\u663e\u793a\u6210\u672c"},"content":{"rendered":"<h2>\u9996\u5148<\/h2>\n<p>\u6211\u5728\u5de5\u4f5c\u4e2d\u4f7f\u7528Terragrunt\u6765\u7ba1\u7406AWS\u914d\u7f6e\u7684\u4e00\u90e8\u5206\uff0c\u4f46\u968f\u7740\u914d\u7f6e\u7684\u590d\u6742\u5316\uff0c\u9605\u8bfb\u4ee3\u7801\u5e76\u7406\u89e3\u914d\u7f6e\u53d8\u5f97\u56f0\u96be\uff0c\u96be\u4ee5\u76f4\u89c2\u5730\u5224\u65ad\u662f\u5426\u8fbe\u5230\u4e86\u9884\u671f\u7684\u914d\u7f6e\uff0c\u8fd9\u662f\u4e00\u4e2a\u95ee\u9898\u3002<br \/>\n\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u672c\u6587\u662fTerraform\u5b66\u4e60\u7cfb\u5217\u7684\u7b2c\u56db\u7bc7\uff0c\u540c\u65f6\u4e5f\u5c1d\u8bd5\u4f7f\u7528Plulalith\u3002<\/p>\n<p>\u6211\u521b\u5efa\u4e86\u4e00\u4e2aTerraform\u7684.tf\u6587\u4ef6\uff0c\u53ef\u4ee5\u4f7f\u7528\u5b83\u6765\u521b\u5efaEC2\u3001VPC\u3001\u5b50\u7f51\u3001\u4e92\u8054\u7f51\u7f51\u5173\u7b49\u7f51\u7edc\u73af\u5883\u3002\u6211\u8fd8\u4f7f\u7528\u4e86Pluralith\u6765\u6839\u636e\u521b\u5efa\u7684\u73af\u5883\u751f\u6210\u914d\u7f6e\u56fe\uff0c\u5e76\u4e14\u73b0\u5728\u5b83\u53ef\u4ee5\u663e\u793a\u6210\u672c\u3002\u6240\u4ee5\u6211\u60f3\u5c06\u8fd9\u4e2a\u4f5c\u4e3a\u5907\u5fd8\u5f55\u4fdd\u5b58\u4e0b\u6765\u3002<\/p>\n<p>\u518d\u6b21\uff0c\u6211\u6309\u7167\u4e4b\u524d\u540c\u6837\u7684\u6b65\u9aa4\u53c2\u8003\u4e86\u300aTerraform\u3067\u306f\u3058\u3081\u308bAWS\u69cb\u6210\u7ba1\u7406\u300b\u8fd9\u672c\u4e66\u4e2d\u7684\u64cd\u4f5c\u8fdb\u884c\u4e86\u5b9e\u65bd\u3002\u5bf9\u4e8eTerraform\u521d\u5b66\u8005\u6765\u8bf4\uff0c\u6211\u63a8\u8350\u8fd9\u672c\u4e66\u3002<\/p>\n<ul class=\"post-ul\">\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u30c7\u30b6\u30a4\u30f3 2022\u5e741\u6708\u53f7<\/ul>\n<h2>\u6211\u6240\u505a\u7684\u4e00\u5207<\/h2>\n<p>\u7b2c\u4e00\u5f3e\u306f\u6e96\u5099\u7de8\u3068\u3044\u3046\u3053\u3068\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u5b9f\u65bd\u3057\u307e\u3057\u305f\u3002<br \/>\nhttps:\/\/qiita.com\/yuuun\/items\/33f2217072818516ee56<\/p>\n<p>\u7b2c\u4e8c\u5f3e\u306f\u5b9f\u969b\u306bTerraform\u3067EC2\u306e\u307f\u306e\u4f5c\u6210\u3068\u69cb\u6210\u56f3\u3092\u4f5c\u6210\u3059\u308b\u3068\u3044\u3046\u3068\u3053\u308d\u307e\u3067\u884c\u3044\u307e\u3057\u305f\u3002<br \/>\nhttps:\/\/qiita.com\/yuuun\/items\/b4f57aa17833dcd7e990<\/p>\n<p>\u7b2c\u4e09\u5f3e\u306f\u57fa\u672c\u7684\u306aEC2\u74b0\u5883\u3092Terraform\u3067\u4f5c\u6210\u3057\u3001Pluralith\u3067\u69cb\u6210\u56f3\u3092\u4f5c\u6210\u3057\u3001\u300cChanges\u300d\u306e\u30b0\u30ec\u30fc\u30b9\u30b1\u30fc\u30eb\u3092\u30ab\u30e9\u30fc\u3067\u8868\u793a\u3059\u308b\u65b9\u6cd5\u3092\u767a\u898b\u3057\u307e\u3057\u305f\u3002<br \/>\nhttps:\/\/qiita.com\/yuuun\/items\/ef9366112ce438b9d822<\/p>\n<h2>\u6211\u60f3\u505a\u7684\u4e8b<\/h2>\n<p>\u6211\u60f3\u663e\u793aPluralith\u521b\u5efa\u7684\u6784\u56fe\u4e2d\u7684\u201cCosts\u201d\u90e8\u5206\uff01<\/p>\n<h2>\u73af\u5883<\/h2>\n<p>\u64cd\u4f5c\u7cfb\u7edf\uff1aWindows11\u4e13\u4e1a\u7248<br \/>\nTerraform\u7248\u672c\uff1av1.5.2<br \/>\npluralith CLI\u7248\u672c\uff1a0.2.2<br \/>\npluralith Graph\u6a21\u5757\u7248\u672c\uff1a0.2.1<br \/>\nAWS CLI\u7248\u672c\uff1a2.4.23<\/p>\n<h2>\u8fd9\u6b21\u6211\u4eec\u521b\u5efa\u7684\u73af\u5883\u7684\u4ee3\u7801<\/h2>\n<p>\u5b9e\u9645\u4e0a\uff0c\u6211\u5199\u7684\u4ee3\u7801\u4e0e\u4e0a\u6b21\u7684\u4ee3\u7801\u76f8\u540c\u3002<br \/>\n\u4ee5\u4e0b\u662f\u94fe\u63a5\u3002<br \/>\n\u6211\u4f1a\u7701\u7565\u5173\u4e8e\u6211\u5199\u7684\u4ee3\u7801\u7684\u8be6\u7ec6\u4fe1\u606f\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u53e6\u5916\uff0c\u6211\u5728\u5b58\u50a8\u5e93\u4e2d\u521b\u5efa\u4e86\u4e00\u4e2a\u540d\u4e3a&#8221;pluralith_graph&#8221;\u7684\u76ee\u5f55\uff0c\u5176\u4e2d\u8fd8\u653e\u7f6e\u4e86Pluralith\u521b\u5efa\u7684\u7ec4\u6210\u56fe\u3002<\/p>\n<h3>\u4e3a\u4e86\u5728\u4f7f\u7528Plulalith\u521b\u5efa\u7684\u914d\u7f6e\u56fe\u4e2d\u663e\u793a&#8221;Costs&#8221;\uff0c\u9700\u8981\u8003\u8651\u4ee5\u4e0b\u8981\u70b9\u3002<\/h3>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30dd\u30a4\u30f3\u30c81.infracost\u306e\u5c0e\u5165<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u30dd\u30a4\u30f3\u30c82.Terraform\u3078\u306e\u8a2d\u5b9a<\/ul>\n<h3>\u5f15\u5165infracost\u7684\u6b65\u9aa4<\/h3>\n<h4>\u8bf7\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u8fdb\u884c\u64cd\u4f5c\uff1a\u4eceinfracost\u7684\u5b98\u65b9\u6587\u6863\u4e0b\u8f7dzip\u6587\u4ef6\uff0c\u89e3\u538b\u7f29\u540e\u5c06\u5176\u4e0epluralith\u548cterraform\u4e00\u6837\u653e\u7f6e\u5728Windows\/System32\u76ee\u5f55\u4e0b\uff0c\u5e76\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\u3002<\/h4>\n<p>\u987a\u4fbf\u8bf4\u4e00\u4e0b\uff0c\u53ea\u5b89\u88c5\u4e86infracost.exe\u4f1a\u51fa\u73b0\u4ee5\u4e0b\u9519\u8bef\uff08\u6267\u884cpluralith graph\u64cd\u4f5c\u662f\u6210\u529f\u7684\uff09<\/p>\n<pre class=\"post-pre\"><code>PS C:\\Users\\\u30e6\u30fc\u30b6\u30fc\u540d\\workspace\\learn_terraform\\terraform-chapter2&gt; pluralith graph\r\n\u283f Initiating Graph \u21e2 Posting Diagram To Pluralith Dashboard\r\n\r\n\u2192 Authentication\r\n  \u2714 API key is valid, you are authenticated!\r\n\r\n\u2192 Plan\r\n  \u2714 Local Execution Plan Generated  \r\n  \u2714 Local Plan Cache Created  \r\n  \u2714 Secrets Stripped\r\n  \u280f Calculating Infrastructure CostsError: No INFRACOST_API_KEY environment variable is set.\r\nWe run a free Cloud Pricing API, to get an API key run infracost auth login\r\n\r\nrunning infracost breakdown failed -&gt; CalculateCost: exit status 1\r\n  \u2718 Couldn't Calculate Costs\r\n  \u2714 Costs Calculated\r\n\r\n\u2192 Graph\r\n  \u2714 Local Diagram Generated  \r\n  \u2714 Diagram Posted To Pluralith Dashboard\r\n\r\n  \u2192 Diagram Pushed To: https:\/\/app.pluralith.com\/...\/pluralith-local-project\/runs\/...\/\r\n<\/code><\/pre>\n<h4>\u53d6\u5f97\u514d\u8d39\u7684API\u5bc6\u94a5\u7684\u6b65\u9aa42\u3002<\/h4>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d84f8913a08637a6b7ba6\/22-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2023-08-24 131401.png\" \/><\/div>\n<p>\u9996\u5148\uff0c\u9700\u8981\u5728GitHub\u4e0a\u914d\u7f6einfracost\u4f5c\u4e3a\u4e00\u4e2a\u5e94\u7528\u7a0b\u5e8f\uff0c\u4ee5\u4fbf\u5728GitHub\u4e0a\u53ef\u4ee5\u4f7f\u7528infracost\u3002<br \/>\n\u6b64\u5916\uff0c\u4e3a\u4e86\u5b9e\u9645\u4f7f\u7528infracost\uff0c\u9700\u8981\u5728Git\u4e0a\u53d1\u9001\u62c9\u53d6\u8bf7\u6c42\u5e76\u5c1d\u8bd5\u8fd0\u884c\uff0c\u56e0\u6b64\u9700\u8981\u4e00\u4e2a\u8bd5\u9a8c\u6027\u7684\u4ee3\u7801\u5e93\uff08\u6b63\u597d\u6211\u5df2\u7ecf\u5728GitHub\u4e0a\u4e0a\u4f20\u4e86\u914d\u7f6e\u56fe\u3002\u3002\u3002\uff09\u3002<br \/>\n\u56e0\u6b64\uff0c\u5728\u6211\u51c6\u5907\u7684\u8bd5\u9a8c\u6027\u4ee3\u7801\u5e93\u4e2d\u53d1\u9001\u62c9\u53d6\u8bf7\u6c42\u540e\uff0cinfracost\u4f1a\u81ea\u52a8\u5f00\u59cb\u8fd0\u884c\uff0c\u5e76\u6839\u636e\u62c9\u53d6\u8bf7\u6c42\u7684\u5dee\u5f02\u751f\u6210\u6210\u672c\u5dee\u5f02\u3002<br \/>\n\u4e00\u65e6\u786e\u8ba4\u4e86\u8fd9\u4e9b\u6b65\u9aa4\uff0c\u5c31\u51c6\u5907\u597d\u83b7\u53d6\u514d\u8d39\u7684API\u5bc6\u94a5\u4e86\u3002<\/p>\n<p>\u4e4b\u540e\u53ef\u4ee5\u901a\u8fc7\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u83b7\u53d6API\u5bc6\u94a5\u3002<\/p>\n<pre class=\"post-pre\"><code>infracost configure get api_key\r\n<\/code><\/pre>\n<h3>\u5bf9\u4e8eTerraform\u7684\u8bbe\u7f6e<\/h3>\n<h4>\u5c06\u83b7\u5f97\u7684API\u5bc6\u94a5\u6ce8\u518c\u5230Terraform\u4e2d<\/h4>\n<p>\u63a5\u4e0b\u6765\u662f\u5411Terraform\u6ce8\u518cAPI\u5bc6\u94a5\u3002<\/p>\n<pre class=\"post-pre\"><code># cd\u3067terraform\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\r\ncd my-terraform-project\r\n# Terraform variables can be set using --terraform-var-file or --terraform-var\r\ninfracost breakdown --path .\r\n<\/code><\/pre>\n<h5>\u554f\u984c\u9ede\u5728\u54ea\u88e1<\/h5>\n<p>&#8211;\u5bf9\u4e8e&#8221;path&#8221;\u4e2d\u7684&#8221;path&#8221;\uff0c\u6211\u4e0d\u77e5\u9053\u5b83\u662f\u4ec0\u4e48\uff0c\u6240\u4ee5\u9677\u5165\u4e86\u56f0\u5883\u3002<br \/>\n\u7b80\u800c\u8a00\u4e4b\uff0c\u5c31\u662f\u901a\u8fc7infracost configure get api_key\u547d\u4ee4\u83b7\u53d6\u7684API\u5bc6\u94a5\u3002<\/p>\n<p>\u5f53\u6211\u6b63\u786e\u6307\u5b9a\u4e86API\u5bc6\u94a5\u5e76\u6267\u884c\u65f6\uff0c\u6210\u529f\u5730\u8fd0\u884c\u4e86\u3002<\/p>\n<pre class=\"post-pre\"><code>PS C:\\Users\\\u30e6\u30fc\u30b6\u30fc\u540d\\workspace\\learn_terraform\\terraform-chapter2&gt; infracost breakdown --path=\uff08API\u30ad\u30fc\uff09\r\n<\/code><\/pre>\n<p>\u7ec8\u4e8e\u53ef\u4ee5\u4f7f\u7528infracost\u4e86\uff0c\u6240\u4ee5\u6211\u8bd5\u7740\u8fd0\u884c\u4e86pluralith graph\u3002<\/p>\n<pre class=\"post-pre\"><code>PS C:\\Users\\\u30e6\u30fc\u30b6\u30fc\u540d\\workspace\\learn_terraform\\terraform-chapter2&gt; pluralith graph                       \r\n\u283f Initiating Graph \u21e2 Posting Diagram To Pluralith Dashboard\r\n\r\n\u2192 Authentication\r\n  \u2714 API key is valid, you are authenticated!\r\n\r\n\u2192 Plan\r\n  \u2714 Local Execution Plan Generated  \r\n  \u2714 Local Plan Cache Created  \r\n  \u2714 Secrets Stripped\r\n  \u2714 Costs Calculated\r\n\r\n\u2192 Graph\r\n  \u2714 Local Diagram Generated  \r\n  \u2714 Diagram Posted To Pluralith Dashboard\r\n\r\n  \u2192 Diagram Pushed To: https:\/\/app.pluralith.com\/...\/pluralith-local-project\/runs\/...\/      \r\n<\/code><\/pre>\n<p>\u770b\u8d77\u6765\u6210\u529f\u521b\u5efa\u4e86\u65e0\u4e8b\u6784\u6210\u56fe\u3002<br \/>\n\u90a3\u4e48\uff0c\u5173\u4e8e\u4ee4\u4eba\u62c5\u5fc3\u7684\u201c\u8d39\u7528\u201d\u663e\u793a\u5462&#8230;<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d84f8913a08637a6b7ba6\/37-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2023-09-09 163906.png\" \/><\/div>\n<p>\u6211\u80fd\u591f\u8868\u8fbe\u51fa\u6765\uff01\u4e0b\u9762\u662f\u6bcf\u6708\u6210\u672c\u548c\u6309\u65f6\u95f4\u6210\u672c\u7684\u56fe\u50cf\u8f93\u51fa\u7ed3\u679c\uff01<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d84f8913a08637a6b7ba6\/39-0.png\" alt=\"project_pluralith-local-project%2Frun_2397461%2Frun_2397461_1692858396573.png\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d84f8913a08637a6b7ba6\/40-0.png\" alt=\"project_pluralith-local-project%2Frun_2397461%2Frun_2397461_1692858417887.png\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d84f8913a08637a6b7ba6\/41-0.jpeg\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2023-09-15 190144.jpg\" \/><\/div>\n<h2>\u611f\u53d7\u5230\u7684<\/h2>\n<p>\u6211\u53ef\u4ee5\u663e\u793a\u65e0\u4e8b\u9879\u8d39\u7528\uff0c\u5e76\u4e14\u5728\u672c\u5730\u8fd0\u884c\u65f6\uff0c\u663e\u793a\u6a21\u5f0f\uff08\u53d8\u66f4\u3001\u8d39\u7528\u3001\u89c6\u56fe\uff09\u90fd\u53ef\u4ee5\u4e00\u5e76\u663e\u793a\u51fa\u6765\u3002<br \/>\n\u867d\u7136\u672c\u6b21\u53ea\u6d89\u53ca\u5230EC2\u8d39\u7528\uff08\u5176\u4ed6\u670d\u52a1\u662f\u6839\u636e\u8bf7\u6c42\u8ba1\u8d39\uff09\uff0c\u4f46\u6211\u8fd8\u60f3\u521b\u5efa\u5305\u542b\u591a\u4e2a\u8d39\u7528\u7684\u914d\u7f6e\uff0c\u5e76\u5c1d\u8bd5\u663e\u793a\u5176\u914d\u7f6e\u56fe\u3002<\/p>\n<h2>\u8bf7\u63d0\u4f9b\u66f4\u591a\u4e0a\u4e0b\u6587\uff0c\u4ee5\u4fbf\u4e3a\u60a8\u63d0\u4f9b\u5408\u9002\u7684\u7ffb\u8bd1\u3002<\/h2>\n<p>2022\u5e741\u6708\u53f7\u7684\u8f6f\u4ef6\u8bbe\u8ba1\u6742\u5fd7<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148 \u6211\u5728\u5de5\u4f5c\u4e2d\u4f7f\u7528Terragrunt\u6765\u7ba1\u7406AWS\u914d\u7f6e\u7684\u4e00\u90e8\u5206\uff0c\u4f46\u968f\u7740\u914d\u7f6e\u7684\u590d\u6742\u5316\uff0c\u9605\u8bfb\u4ee3\u7801\u5e76\u7406\u89e3\u914d\u7f6e\u53d8\u5f97\u56f0 [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-48385","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u6211\u60f3\u5728\u4f7f\u7528Pluralith\u521b\u5efa\u7684EC2\u73af\u5883\u7684\u914d\u7f6e\u56fe\u4e2d\u663e\u793a\u6210\u672c - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u6211\u60f3\u5728\u4f7f\u7528pluralith\u521b\u5efa\u7684ec2\u73af\u5883\u7684\u914d\u7f6e\u56fe\u4e2d\u663e\u793a\u6210\u672c\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6211\u60f3\u5728\u4f7f\u7528Pluralith\u521b\u5efa\u7684EC2\u73af\u5883\u7684\u914d\u7f6e\u56fe\u4e2d\u663e\u793a\u6210\u672c\" \/>\n<meta property=\"og:description\" content=\"\u9996\u5148 \u6211\u5728\u5de5\u4f5c\u4e2d\u4f7f\u7528Terragrunt\u6765\u7ba1\u7406AWS\u914d\u7f6e\u7684\u4e00\u90e8\u5206\uff0c\u4f46\u968f\u7740\u914d\u7f6e\u7684\u590d\u6742\u5316\uff0c\u9605\u8bfb\u4ee3\u7801\u5e76\u7406\u89e3\u914d\u7f6e\u53d8\u5f97\u56f0 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u6211\u60f3\u5728\u4f7f\u7528pluralith\u521b\u5efa\u7684ec2\u73af\u5883\u7684\u914d\u7f6e\u56fe\u4e2d\u663e\u793a\u6210\u672c\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-03T09:22:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-03T20:21:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d84f8913a08637a6b7ba6\/22-0.png\" \/>\n<meta name=\"author\" content=\"\u96c5, \u609f\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u96c5, \u609f\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e6%83%b3%e5%9c%a8%e4%bd%bf%e7%94%a8pluralith%e5%88%9b%e5%bb%ba%e7%9a%84ec2%e7%8e%af%e5%a2%83%e7%9a%84%e9%85%8d%e7%bd%ae%e5%9b%be%e4%b8%ad%e6%98%be%e7%a4%ba%e6%88%90%e6%9c%ac%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e6%83%b3%e5%9c%a8%e4%bd%bf%e7%94%a8pluralith%e5%88%9b%e5%bb%ba%e7%9a%84ec2%e7%8e%af%e5%a2%83%e7%9a%84%e9%85%8d%e7%bd%ae%e5%9b%be%e4%b8%ad%e6%98%be%e7%a4%ba%e6%88%90%e6%9c%ac%e3%80%82\/\",\"name\":\"\u6211\u60f3\u5728\u4f7f\u7528Pluralith\u521b\u5efa\u7684EC2\u73af\u5883\u7684\u914d\u7f6e\u56fe\u4e2d\u663e\u793a\u6210\u672c - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-07-03T09:22:56+00:00\",\"dateModified\":\"2024-05-03T20:21:31+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e6%83%b3%e5%9c%a8%e4%bd%bf%e7%94%a8pluralith%e5%88%9b%e5%bb%ba%e7%9a%84ec2%e7%8e%af%e5%a2%83%e7%9a%84%e9%85%8d%e7%bd%ae%e5%9b%be%e4%b8%ad%e6%98%be%e7%a4%ba%e6%88%90%e6%9c%ac%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e6%83%b3%e5%9c%a8%e4%bd%bf%e7%94%a8pluralith%e5%88%9b%e5%bb%ba%e7%9a%84ec2%e7%8e%af%e5%a2%83%e7%9a%84%e9%85%8d%e7%bd%ae%e5%9b%be%e4%b8%ad%e6%98%be%e7%a4%ba%e6%88%90%e6%9c%ac%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e6%83%b3%e5%9c%a8%e4%bd%bf%e7%94%a8pluralith%e5%88%9b%e5%bb%ba%e7%9a%84ec2%e7%8e%af%e5%a2%83%e7%9a%84%e9%85%8d%e7%bd%ae%e5%9b%be%e4%b8%ad%e6%98%be%e7%a4%ba%e6%88%90%e6%9c%ac%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6211\u60f3\u5728\u4f7f\u7528Pluralith\u521b\u5efa\u7684EC2\u73af\u5883\u7684\u914d\u7f6e\u56fe\u4e2d\u663e\u793a\u6210\u672c\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\",\"name\":\"\u96c5, \u609f\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"caption\":\"\u96c5, \u609f\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e6%83%b3%e5%9c%a8%e4%bd%bf%e7%94%a8pluralith%e5%88%9b%e5%bb%ba%e7%9a%84ec2%e7%8e%af%e5%a2%83%e7%9a%84%e9%85%8d%e7%bd%ae%e5%9b%be%e4%b8%ad%e6%98%be%e7%a4%ba%e6%88%90%e6%9c%ac%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u6211\u60f3\u5728\u4f7f\u7528Pluralith\u521b\u5efa\u7684EC2\u73af\u5883\u7684\u914d\u7f6e\u56fe\u4e2d\u663e\u793a\u6210\u672c - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/\u6211\u60f3\u5728\u4f7f\u7528pluralith\u521b\u5efa\u7684ec2\u73af\u5883\u7684\u914d\u7f6e\u56fe\u4e2d\u663e\u793a\u6210\u672c\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u6211\u60f3\u5728\u4f7f\u7528Pluralith\u521b\u5efa\u7684EC2\u73af\u5883\u7684\u914d\u7f6e\u56fe\u4e2d\u663e\u793a\u6210\u672c","og_description":"\u9996\u5148 \u6211\u5728\u5de5\u4f5c\u4e2d\u4f7f\u7528Terragrunt\u6765\u7ba1\u7406AWS\u914d\u7f6e\u7684\u4e00\u90e8\u5206\uff0c\u4f46\u968f\u7740\u914d\u7f6e\u7684\u590d\u6742\u5316\uff0c\u9605\u8bfb\u4ee3\u7801\u5e76\u7406\u89e3\u914d\u7f6e\u53d8\u5f97\u56f0 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u6211\u60f3\u5728\u4f7f\u7528pluralith\u521b\u5efa\u7684ec2\u73af\u5883\u7684\u914d\u7f6e\u56fe\u4e2d\u663e\u793a\u6210\u672c\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-07-03T09:22:56+00:00","article_modified_time":"2024-05-03T20:21:31+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d84f8913a08637a6b7ba6\/22-0.png"}],"author":"\u96c5, \u609f","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u96c5, \u609f","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e6%83%b3%e5%9c%a8%e4%bd%bf%e7%94%a8pluralith%e5%88%9b%e5%bb%ba%e7%9a%84ec2%e7%8e%af%e5%a2%83%e7%9a%84%e9%85%8d%e7%bd%ae%e5%9b%be%e4%b8%ad%e6%98%be%e7%a4%ba%e6%88%90%e6%9c%ac%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e6%83%b3%e5%9c%a8%e4%bd%bf%e7%94%a8pluralith%e5%88%9b%e5%bb%ba%e7%9a%84ec2%e7%8e%af%e5%a2%83%e7%9a%84%e9%85%8d%e7%bd%ae%e5%9b%be%e4%b8%ad%e6%98%be%e7%a4%ba%e6%88%90%e6%9c%ac%e3%80%82\/","name":"\u6211\u60f3\u5728\u4f7f\u7528Pluralith\u521b\u5efa\u7684EC2\u73af\u5883\u7684\u914d\u7f6e\u56fe\u4e2d\u663e\u793a\u6210\u672c - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-07-03T09:22:56+00:00","dateModified":"2024-05-03T20:21:31+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e6%83%b3%e5%9c%a8%e4%bd%bf%e7%94%a8pluralith%e5%88%9b%e5%bb%ba%e7%9a%84ec2%e7%8e%af%e5%a2%83%e7%9a%84%e9%85%8d%e7%bd%ae%e5%9b%be%e4%b8%ad%e6%98%be%e7%a4%ba%e6%88%90%e6%9c%ac%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e6%83%b3%e5%9c%a8%e4%bd%bf%e7%94%a8pluralith%e5%88%9b%e5%bb%ba%e7%9a%84ec2%e7%8e%af%e5%a2%83%e7%9a%84%e9%85%8d%e7%bd%ae%e5%9b%be%e4%b8%ad%e6%98%be%e7%a4%ba%e6%88%90%e6%9c%ac%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e6%83%b3%e5%9c%a8%e4%bd%bf%e7%94%a8pluralith%e5%88%9b%e5%bb%ba%e7%9a%84ec2%e7%8e%af%e5%a2%83%e7%9a%84%e9%85%8d%e7%bd%ae%e5%9b%be%e4%b8%ad%e6%98%be%e7%a4%ba%e6%88%90%e6%9c%ac%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u6211\u60f3\u5728\u4f7f\u7528Pluralith\u521b\u5efa\u7684EC2\u73af\u5883\u7684\u914d\u7f6e\u56fe\u4e2d\u663e\u793a\u6210\u672c"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6","name":"\u96c5, \u609f","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","caption":"\u96c5, \u609f"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e6%83%b3%e5%9c%a8%e4%bd%bf%e7%94%a8pluralith%e5%88%9b%e5%bb%ba%e7%9a%84ec2%e7%8e%af%e5%a2%83%e7%9a%84%e9%85%8d%e7%bd%ae%e5%9b%be%e4%b8%ad%e6%98%be%e7%a4%ba%e6%88%90%e6%9c%ac%e3%80%82\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/48385","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=48385"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/48385\/revisions"}],"predecessor-version":[{"id":96084,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/48385\/revisions\/96084"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=48385"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=48385"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=48385"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}