{"id":48621,"date":"2022-09-18T16:26:21","date_gmt":"2022-10-03T02:23:47","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/terrafom-v0-8%e5%8d%87%e7%ba%a7%e8%87%b3terrafom-v0-9%e6%97%b6%e5%a6%82%e4%bd%95%e8%bf%81%e7%a7%bbs3%e7%9a%84%e7%8a%b6%e6%80%81%e7%ae%a1%e7%90%86%e6%96%87%e4%bb%b6%e3%80%82\/"},"modified":"2024-01-15T12:40:18","modified_gmt":"2024-01-15T04:40:18","slug":"terrafom-v0-8%e5%8d%87%e7%ba%a7%e8%87%b3terrafom-v0-9%e6%97%b6%e5%a6%82%e4%bd%95%e8%bf%81%e7%a7%bbs3%e7%9a%84%e7%8a%b6%e6%80%81%e7%ae%a1%e7%90%86%e6%96%87%e4%bb%b6%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/terrafom-v0-8%e5%8d%87%e7%ba%a7%e8%87%b3terrafom-v0-9%e6%97%b6%e5%a6%82%e4%bd%95%e8%bf%81%e7%a7%bbs3%e7%9a%84%e7%8a%b6%e6%80%81%e7%ae%a1%e7%90%86%e6%96%87%e4%bb%b6%e3%80%82\/","title":{"rendered":"Terrafom v0.8\u5347\u7ea7\u81f3Terrafom v0.9\u65f6\u5982\u4f55\u8fc1\u79fbS3\u7684\u72b6\u6001\u7ba1\u7406\u6587\u4ef6"},"content":{"rendered":"<p>\u8fd9\u662f\u6709\u5173\u5728\u5347\u7ea7Terraform\u65f6\u9700\u8981\u8fc1\u79fb\u4fdd\u5b58\u5728S3\u7684\u72b6\u6001\u7ba1\u7406\u6587\u4ef6\u7684\u64cd\u4f5c\u8bb0\u5f55\u3002<\/p>\n<h1>Terraform\u7684\u5347\u7ea7<\/h1>\n<p>\u4ecehttps:\/\/www.terraform.io\/downloads.html\u4e0b\u8f7d\u9002\u5408\u73af\u5883\u7684\u6587\u4ef6\uff0c\u5e76\u89e3\u538b\u7f29\u3002\u5c06\u89e3\u538b\u540e\u751f\u6210\u7684terraform\u6587\u4ef6\u653e\u7f6e\u5728\u8def\u5f84\u4e2d\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u5c06\u8def\u5f84\u8bbe\u7f6e\u5982\u4e0b\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nb\">export <\/span><span class=\"nv\">PATH<\/span><span class=\"o\">=<\/span><span class=\"nv\">$PATH<\/span>:<span class=\"k\">${<\/span><span class=\"nv\">HOME<\/span><span class=\"k\">}<\/span>\/.terraform_0.9.3_darwin_amd64\r\n<\/code><\/pre>\n<h1>\u72b6\u6001\u7ba1\u7406\u6587\u4ef6\u7684\u8fc1\u79fb<\/h1>\n<p>\u6267\u884cTerraform\u5347\u7ea7\u672c\u8eab\u53ea\u9700\u8981\u51e0\u5206\u949f\uff0c\u4f46\u662f\u8fd0\u884cplan\u547d\u4ee4\u65f6\u4f1a\u663e\u793a\u4ee5\u4e0b\u6d88\u606f\u3002<\/p>\n<pre class=\"post-pre\"><code>$ terraform plan\r\nDeprecation warning: This environment is configured to use legacy remote state.\r\nRemote state changed significantly in Terraform 0.9. Please update your remote\r\nstate configuration to use the new 'backend' settings. For now, Terraform\r\nwill continue to use your existing settings. Legacy remote state support\r\nwill be removed in Terraform 0.11.\r\n\r\nYou can find a guide for upgrading here:\r\n\r\nhttps:\/\/www.terraform.io\/docs\/backends\/legacy-0-8.html\r\n\r\nThere are warnings related to your configuration. If no errors occurred,\r\nTerraform will continue despite these warnings. It is a good idea to resolve\r\nthese warnings in the near future.\r\n<\/code><\/pre>\n<p>\u636e\u770b\u5230\u7684\u6d88\u606f\uff0c\u4f3c\u4e4e\u5728Terraform\u5347\u7ea7\u5230v0.9\u65f6\uff0c\u72b6\u6001\u7ba1\u7406\u6587\u4ef6\u7684\u7ba1\u7406\u65b9\u6cd5\u53d1\u751f\u4e86\u53d8\u5316\u3002<br \/>\n\u4ece\u6d88\u606f\u6765\u770b\uff0c\u4f3c\u4e4e\u5728v0.11\u4e4b\u524d\u4e0d\u9700\u8981\u8fdb\u884c\u4efb\u4f55\u4fee\u6539\u5c31\u53ef\u4ee5\u7ee7\u7eed\u4f7f\u7528\uff0c\u4f46\u662f\u6839\u636e\u8fd9\u4e2a\u94fe\u63a5 https:\/\/www.terraform.io\/docs\/backends\/legacy-0-8.html\uff0c\u5728\u5347\u7ea7\u5230v0.10\u65f6\u53ef\u80fd\u9700\u8981\u8fdb\u884c\u8fc1\u79fb\u5de5\u4f5c\uff0c\u6240\u4ee5\u6211\u4f1a\u6309\u7167\u4e0a\u8ff0\u94fe\u63a5\u4e2d\u7684\u6b65\u9aa4\u8fdb\u884c\u8fc1\u79fb\u5230\u65b0\u7684\u72b6\u6001\u7ba1\u7406\u6587\u4ef6\u3002<\/p>\n<h3>\u83b7\u53d6\u73b0\u6709\u7684\u72b6\u6001\u7ba1\u7406\u6587\u4ef6<\/h3>\n<p>\u4ece\u8fdc\u7a0b\u83b7\u53d6\u6700\u65b0\u7684\u72b6\u6001\u7ba1\u7406\u6587\u4ef6\u3002<\/p>\n<pre class=\"post-pre\"><code>$terraform remote pull\r\n<\/code><\/pre>\n<h3>\u672c\u5730\u72b6\u6001\u7ba1\u7406\u6587\u4ef6\u7684\u5907\u4efd<\/h3>\n<p>\u5c06.terraform\/terraform.tfstate\u6587\u4ef6\u653e\u7f6e\u5728terraform\u9879\u76ee\u4e4b\u5916\u3002<\/p>\n<pre class=\"post-pre\"><code>$cp .terraform\/terraform.tfstate \/tmp\/\r\n<\/code><\/pre>\n<h3>\u5728\u540e\u7aef\u914d\u7f6e\u4e2d\u6dfb\u52a0\u8bbe\u7f6e<\/h3>\n<p>\u521b\u5efa\u540e\u7aef\u914d\u7f6e\u6587\u4ef6\u3002<br \/>\n\u7531\u4e8e\u4e4b\u524d\u5df2\u7ecf\u5c06\u72b6\u6001\u7ba1\u7406\u6587\u4ef6\u653e\u5728\u4e86S3\u4e0a\uff0c\u6240\u4ee5\u6211\u53c2\u8003\u4e86\u4ee5\u4e0b\u7f51\u5740\u5e76\u521b\u5efa\u4e86backend.tf\u6587\u4ef6\u3002<br \/>\nhttps:\/\/www.terraform.io\/docs\/backends\/types\/s3.html<\/p>\n<pre class=\"post-pre\"><code><span class=\"nx\">terraform<\/span> <span class=\"p\">{<\/span>\r\n  <span class=\"nx\">backend<\/span> <span class=\"s2\">\"s3\"<\/span> <span class=\"p\">{<\/span>\r\n    <span class=\"nx\">bucket<\/span> <span class=\"p\">=<\/span> <span class=\"s2\">\"terraform-state\"<\/span>\r\n    <span class=\"nx\">key<\/span>    <span class=\"p\">=<\/span> <span class=\"s2\">\"tf\"<\/span>\r\n    <span class=\"nx\">region<\/span> <span class=\"p\">=<\/span> <span class=\"s2\">\"ap-northeast-1\"<\/span>\r\n  <span class=\"p\">}<\/span>\r\n<span class=\"p\">}<\/span>\r\n<\/code><\/pre>\n<h3>\u6267\u884cinit\u547d\u4ee4<\/h3>\n<p>\u6267\u884c\u540e\u7aef\u521d\u59cb\u5316\u547d\u4ee4\u3002<\/p>\n<pre class=\"post-pre\"><code>$ terraform init -backend=true -force-copy  -lock=false\r\nInitializing the backend...\r\nNew backend configuration detected with legacy remote state!\r\n\r\nTerraform has detected that you're attempting to configure a new backend.\r\nAt the same time, legacy remote state configuration was found. Terraform will\r\nfirst configure the new backend, and then ask if you'd like to migrate\r\nyour remote state to the new backend.\r\n\r\n\r\n\r\n\r\nSuccessfully configured the backend \"s3\"! Terraform will automatically\r\nuse this backend unless the backend configuration changes.\r\n\r\nTerraform has been successfully initialized!\r\n\r\nYou may now begin working with Terraform. Try running \"terraform plan\" to see\r\nany changes that are required for your infrastructure. All Terraform commands\r\nshould now work.\r\n\r\nIf you ever set or change modules or backend configuration for Terraform,\r\nrerun this command to reinitialize your environment. If you forget, other\r\ncommands will detect it and remind you to do so if necessary.\r\n<\/code><\/pre>\n<p>\u770b\u8d77\u6765\u5df2\u6210\u529f\u5730\u8fdb\u884c\u4e86\u8fc1\u79fb\uff0c\u663e\u793a\u4e86\u7c7b\u4f3c\u4e0a\u8ff0\u7684\u6d88\u606f\u3002<\/p>\n<h3>\u4f7f\u7528terraform plan\u8fdb\u884c\u64cd\u4f5c\u786e\u8ba4<\/h3>\n<p>\u6700\u540e\uff0c\u6211\u5c06\u5c1d\u8bd5\u901a\u8fc7 terraform plan \u8fdb\u884c\u64cd\u4f5c\u786e\u8ba4\u3002<br \/>\n\u5df2\u6d88\u9664\u8b66\u544a\uff0c\u56de\u5230\u6b63\u5e38\u72b6\u6001\u3002<\/p>\n<pre class=\"post-pre\"><code>$ terraform plan\r\nRefreshing Terraform state in-memory prior to plan...\r\nThe refreshed state will be used to calculate this plan, but will not be\r\npersisted to local or remote state storage.\r\n...\r\n<\/code><\/pre>\n<h1>\u8ffd\u52a0\uff1a\u901a\u8fc7Amazon DynamoDB\u6765\u6dfb\u52a0\u72b6\u6001\u9501\u5b9a\u8bbe\u7f6e\u3002<\/h1>\n<p>Terraform v0.9\u7248\u672c\u65b0\u589e\u4e86\u72b6\u6001\u7ba1\u7406\u6587\u4ef6\u7684\u9501\u5b9a\u529f\u80fd\u3002<br \/>\n\u5982\u679c\u60a8\u5c06\u72b6\u6001\u7ba1\u7406\u6587\u4ef6\u4fdd\u5b58\u5728S3\u4e0a\uff0c\u53ef\u4ee5\u4f7f\u7528DynamoDB\u6765\u4f7f\u7528\u9501\u5b9a\u529f\u80fd\u3002<\/p>\n<p>\u6211\u5c06\u53c2\u8003\u8fd9\u91cc\u7684\u5185\u5bb9\uff0c\u5c1d\u8bd5\u5c06\u5176\u8f6c\u5316\u4e3a\u6709\u6548\u7684\u72b6\u6001\u9501\u5b9a\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nx\">resource<\/span> <span class=\"s2\">\"aws_dynamodb_table\"<\/span> <span class=\"s2\">\"terraform_statelock\"<\/span> <span class=\"p\">{<\/span>\r\n  <span class=\"nx\">name<\/span>           <span class=\"p\">=<\/span> <span class=\"s2\">\"terraform-state-lock\"<\/span>\r\n  <span class=\"nx\">read_capacity<\/span>  <span class=\"p\">=<\/span> <span class=\"mi\">20<\/span>\r\n  <span class=\"nx\">write_capacity<\/span> <span class=\"p\">=<\/span> <span class=\"mi\">20<\/span>\r\n  <span class=\"nx\">hash_key<\/span>       <span class=\"p\">=<\/span> <span class=\"s2\">\"LockID\"<\/span>\r\n\r\n  <span class=\"nx\">attribute<\/span> <span class=\"p\">{<\/span>\r\n    <span class=\"nx\">name<\/span> <span class=\"p\">=<\/span> <span class=\"s2\">\"LockID\"<\/span>\r\n    <span class=\"nx\">type<\/span> <span class=\"p\">=<\/span> <span class=\"s2\">\"S\"<\/span>\r\n  <span class=\"p\">}<\/span>\r\n<span class=\"p\">}<\/span>\r\n<\/code><\/pre>\n<p>\u521b\u5efa\u4e00\u4e2a\u50cf\u4e0a\u8ff0tf\u6587\u4ef6\u4e00\u6837\u7684tf\u6587\u4ef6\u5e76\u4f7f\u7528terraform apply\u547d\u4ee4\u521b\u5efa\u9700\u8981\u7684DynamoDB\u8868\u6765\u5b9e\u73b0\u72b6\u6001\u9501\u3002\u5728\u521b\u5efaDynamoDB\u8868\u4e4b\u540e\uff0c\u4fee\u6539\u540e\u7aef\u914d\u7f6e\u6587\u4ef6\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nx\">terraform<\/span> <span class=\"p\">{<\/span>\r\n  <span class=\"nx\">backend<\/span> <span class=\"s2\">\"s3\"<\/span> <span class=\"p\">{<\/span>\r\n    <span class=\"nx\">bucket<\/span> <span class=\"p\">=<\/span> <span class=\"s2\">\"terraform-state\"<\/span>\r\n    <span class=\"nx\">key<\/span>    <span class=\"p\">=<\/span> <span class=\"s2\">\"tf\"<\/span>\r\n    <span class=\"nx\">region<\/span> <span class=\"p\">=<\/span> <span class=\"s2\">\"ap-northeast-1\"<\/span>\r\n    <span class=\"nx\">lock_table<\/span> <span class=\"p\">=<\/span> <span class=\"s2\">\"terraform-state-lock\"<\/span>\r\n  <span class=\"p\">}<\/span>\r\n<span class=\"p\">}<\/span>\r\n<\/code><\/pre>\n<p>\u5728\u8fd9\u4e2a\u72b6\u6001\u4e0b\u8fd0\u884cterraform plan\u547d\u4ee4\u4f1a\u663e\u793a\u4ee5\u4e0b\u6d88\u606f\u3002<\/p>\n<pre class=\"post-pre\"><code>$ terraform plan\r\nBackend reinitialization required. Please run \"terraform init\".\r\nReason: Backend configuration changed for \"s3\"\r\n\r\nThe \"backend\" is the interface that Terraform uses to store state,\r\nperform operations, etc. If this message is showing up, it means that the\r\nTerraform configuration you're using is using a custom configuration for\r\nthe Terraform backend.\r\n\r\nChanges to backend configurations require reinitialization. This allows\r\nTerraform to setup the new configuration, copy existing state, etc. This is\r\nonly done during \"terraform init\". Please run that command now then try again.\r\n\r\nIf the change reason above is incorrect, please verify your configuration\r\nhasn't changed and try again. At this point, no changes to your existing\r\nconfiguration or state have been made.\r\n\r\nFailed to load backend: Initialization required. Please see the error message above.\r\n<\/code><\/pre>\n<p>\u6839\u636e\u8981\u6c42\uff0c\u5728\u66f4\u6539\u540e\u7aef\u914d\u7f6e\u6587\u4ef6\u540e\uff0c\u8bf7\u6267\u884c terraform init\u3002<\/p>\n<pre class=\"post-pre\"><code>$ terraform init\r\nInitializing the backend...\r\nBackend configuration changed!\r\n\r\nTerraform has detected that the configuration specified for the backend\r\nhas changed. Terraform will now reconfigure for this backend. If you didn't\r\nintend to reconfigure your backend please undo any changes to the \"backend\"\r\nsection in your Terraform configuration.\r\n\r\n\r\nDo you want to copy the state from \"s3\"?\r\n  Would you like to copy the state from your prior backend \"s3\" to the\r\n  newly configured \"s3\" backend? If you're reconfiguring the same backend,\r\n  answering \"yes\" or \"no\" shouldn't make a difference. Please answer exactly\r\n  \"yes\" or \"no\".\r\n\r\n  Enter a value: yes\r\n\r\n\r\n\r\nSuccessfully configured the backend \"s3\"! Terraform will automatically\r\nuse this backend unless the backend configuration changes.\r\n\r\nTerraform has been successfully initialized!\r\n\r\nYou may now begin working with Terraform. Try running \"terraform plan\" to see\r\nany changes that are required for your infrastructure. All Terraform commands\r\nshould now work.\r\n\r\nIf you ever set or change modules or backend configuration for Terraform,\r\nrerun this command to reinitialize your environment. If you forget, other\r\ncommands will detect it and remind you to do so if necessary.\r\n<\/code><\/pre>\n<p>\u542f\u7528\u4e86\u4f7f\u7528DynamoDB\u5b9e\u73b0\u7684\u72b6\u6001\u9501\uff0c\u4ee5\u4e0a\u64cd\u4f5c\u5df2\u5b8c\u6210\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u662f\u6709\u5173\u5728\u5347\u7ea7Terraform\u65f6\u9700\u8981\u8fc1\u79fb\u4fdd\u5b58\u5728S3\u7684\u72b6\u6001\u7ba1\u7406\u6587\u4ef6\u7684\u64cd\u4f5c\u8bb0\u5f55\u3002 Terraform\u7684\u5347\u7ea7 \u4eceh [&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-48621","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>Terrafom v0.8\u5347\u7ea7\u81f3Terrafom v0.9\u65f6\u5982\u4f55\u8fc1\u79fbS3\u7684\u72b6\u6001\u7ba1\u7406\u6587\u4ef6 - 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\/terrafom-v0-8\u5347\u7ea7\u81f3terrafom-v0-9\u65f6\u5982\u4f55\u8fc1\u79fbs3\u7684\u72b6\u6001\u7ba1\u7406\u6587\u4ef6\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Terrafom v0.8\u5347\u7ea7\u81f3Terrafom v0.9\u65f6\u5982\u4f55\u8fc1\u79fbS3\u7684\u72b6\u6001\u7ba1\u7406\u6587\u4ef6\" \/>\n<meta property=\"og:description\" content=\"\u8fd9\u662f\u6709\u5173\u5728\u5347\u7ea7Terraform\u65f6\u9700\u8981\u8fc1\u79fb\u4fdd\u5b58\u5728S3\u7684\u72b6\u6001\u7ba1\u7406\u6587\u4ef6\u7684\u64cd\u4f5c\u8bb0\u5f55\u3002 Terraform\u7684\u5347\u7ea7 \u4eceh [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/terrafom-v0-8\u5347\u7ea7\u81f3terrafom-v0-9\u65f6\u5982\u4f55\u8fc1\u79fbs3\u7684\u72b6\u6001\u7ba1\u7406\u6587\u4ef6\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2022-10-03T02:23:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-15T04:40:18+00:00\" \/>\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=\"3 \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\/terrafom-v0-8%e5%8d%87%e7%ba%a7%e8%87%b3terrafom-v0-9%e6%97%b6%e5%a6%82%e4%bd%95%e8%bf%81%e7%a7%bbs3%e7%9a%84%e7%8a%b6%e6%80%81%e7%ae%a1%e7%90%86%e6%96%87%e4%bb%b6%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/terrafom-v0-8%e5%8d%87%e7%ba%a7%e8%87%b3terrafom-v0-9%e6%97%b6%e5%a6%82%e4%bd%95%e8%bf%81%e7%a7%bbs3%e7%9a%84%e7%8a%b6%e6%80%81%e7%ae%a1%e7%90%86%e6%96%87%e4%bb%b6%e3%80%82\/\",\"name\":\"Terrafom v0.8\u5347\u7ea7\u81f3Terrafom v0.9\u65f6\u5982\u4f55\u8fc1\u79fbS3\u7684\u72b6\u6001\u7ba1\u7406\u6587\u4ef6 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2022-10-03T02:23:47+00:00\",\"dateModified\":\"2024-01-15T04:40:18+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/terrafom-v0-8%e5%8d%87%e7%ba%a7%e8%87%b3terrafom-v0-9%e6%97%b6%e5%a6%82%e4%bd%95%e8%bf%81%e7%a7%bbs3%e7%9a%84%e7%8a%b6%e6%80%81%e7%ae%a1%e7%90%86%e6%96%87%e4%bb%b6%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/terrafom-v0-8%e5%8d%87%e7%ba%a7%e8%87%b3terrafom-v0-9%e6%97%b6%e5%a6%82%e4%bd%95%e8%bf%81%e7%a7%bbs3%e7%9a%84%e7%8a%b6%e6%80%81%e7%ae%a1%e7%90%86%e6%96%87%e4%bb%b6%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/terrafom-v0-8%e5%8d%87%e7%ba%a7%e8%87%b3terrafom-v0-9%e6%97%b6%e5%a6%82%e4%bd%95%e8%bf%81%e7%a7%bbs3%e7%9a%84%e7%8a%b6%e6%80%81%e7%ae%a1%e7%90%86%e6%96%87%e4%bb%b6%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Terrafom v0.8\u5347\u7ea7\u81f3Terrafom v0.9\u65f6\u5982\u4f55\u8fc1\u79fbS3\u7684\u72b6\u6001\u7ba1\u7406\u6587\u4ef6\"}]},{\"@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\/terrafom-v0-8%e5%8d%87%e7%ba%a7%e8%87%b3terrafom-v0-9%e6%97%b6%e5%a6%82%e4%bd%95%e8%bf%81%e7%a7%bbs3%e7%9a%84%e7%8a%b6%e6%80%81%e7%ae%a1%e7%90%86%e6%96%87%e4%bb%b6%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Terrafom v0.8\u5347\u7ea7\u81f3Terrafom v0.9\u65f6\u5982\u4f55\u8fc1\u79fbS3\u7684\u72b6\u6001\u7ba1\u7406\u6587\u4ef6 - 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\/terrafom-v0-8\u5347\u7ea7\u81f3terrafom-v0-9\u65f6\u5982\u4f55\u8fc1\u79fbs3\u7684\u72b6\u6001\u7ba1\u7406\u6587\u4ef6\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"Terrafom v0.8\u5347\u7ea7\u81f3Terrafom v0.9\u65f6\u5982\u4f55\u8fc1\u79fbS3\u7684\u72b6\u6001\u7ba1\u7406\u6587\u4ef6","og_description":"\u8fd9\u662f\u6709\u5173\u5728\u5347\u7ea7Terraform\u65f6\u9700\u8981\u8fc1\u79fb\u4fdd\u5b58\u5728S3\u7684\u72b6\u6001\u7ba1\u7406\u6587\u4ef6\u7684\u64cd\u4f5c\u8bb0\u5f55\u3002 Terraform\u7684\u5347\u7ea7 \u4eceh [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/terrafom-v0-8\u5347\u7ea7\u81f3terrafom-v0-9\u65f6\u5982\u4f55\u8fc1\u79fbs3\u7684\u72b6\u6001\u7ba1\u7406\u6587\u4ef6\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2022-10-03T02:23:47+00:00","article_modified_time":"2024-01-15T04:40:18+00:00","author":"\u96c5, \u609f","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u96c5, \u609f","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/terrafom-v0-8%e5%8d%87%e7%ba%a7%e8%87%b3terrafom-v0-9%e6%97%b6%e5%a6%82%e4%bd%95%e8%bf%81%e7%a7%bbs3%e7%9a%84%e7%8a%b6%e6%80%81%e7%ae%a1%e7%90%86%e6%96%87%e4%bb%b6%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/terrafom-v0-8%e5%8d%87%e7%ba%a7%e8%87%b3terrafom-v0-9%e6%97%b6%e5%a6%82%e4%bd%95%e8%bf%81%e7%a7%bbs3%e7%9a%84%e7%8a%b6%e6%80%81%e7%ae%a1%e7%90%86%e6%96%87%e4%bb%b6%e3%80%82\/","name":"Terrafom v0.8\u5347\u7ea7\u81f3Terrafom v0.9\u65f6\u5982\u4f55\u8fc1\u79fbS3\u7684\u72b6\u6001\u7ba1\u7406\u6587\u4ef6 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2022-10-03T02:23:47+00:00","dateModified":"2024-01-15T04:40:18+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/terrafom-v0-8%e5%8d%87%e7%ba%a7%e8%87%b3terrafom-v0-9%e6%97%b6%e5%a6%82%e4%bd%95%e8%bf%81%e7%a7%bbs3%e7%9a%84%e7%8a%b6%e6%80%81%e7%ae%a1%e7%90%86%e6%96%87%e4%bb%b6%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/terrafom-v0-8%e5%8d%87%e7%ba%a7%e8%87%b3terrafom-v0-9%e6%97%b6%e5%a6%82%e4%bd%95%e8%bf%81%e7%a7%bbs3%e7%9a%84%e7%8a%b6%e6%80%81%e7%ae%a1%e7%90%86%e6%96%87%e4%bb%b6%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/terrafom-v0-8%e5%8d%87%e7%ba%a7%e8%87%b3terrafom-v0-9%e6%97%b6%e5%a6%82%e4%bd%95%e8%bf%81%e7%a7%bbs3%e7%9a%84%e7%8a%b6%e6%80%81%e7%ae%a1%e7%90%86%e6%96%87%e4%bb%b6%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"Terrafom v0.8\u5347\u7ea7\u81f3Terrafom v0.9\u65f6\u5982\u4f55\u8fc1\u79fbS3\u7684\u72b6\u6001\u7ba1\u7406\u6587\u4ef6"}]},{"@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\/terrafom-v0-8%e5%8d%87%e7%ba%a7%e8%87%b3terrafom-v0-9%e6%97%b6%e5%a6%82%e4%bd%95%e8%bf%81%e7%a7%bbs3%e7%9a%84%e7%8a%b6%e6%80%81%e7%ae%a1%e7%90%86%e6%96%87%e4%bb%b6%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\/48621","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=48621"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/48621\/revisions"}],"predecessor-version":[{"id":59550,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/48621\/revisions\/59550"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=48621"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=48621"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=48621"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}