{"id":48391,"date":"2023-11-19T01:47:02","date_gmt":"2023-05-16T21:54:33","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e9%a6%96%e6%ac%a1%e5%88%9b%e5%bb%bapluralithec2%e7%9a%84%e9%85%8d%e7%bd%ae%e5%9b%be%e4%b9%a6%e3%80%82\/"},"modified":"2024-05-04T09:46:15","modified_gmt":"2024-05-04T01:46:15","slug":"%e9%a6%96%e6%ac%a1%e5%88%9b%e5%bb%bapluralithec2%e7%9a%84%e9%85%8d%e7%bd%ae%e5%9b%be%e4%b9%a6%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e9%a6%96%e6%ac%a1%e5%88%9b%e5%bb%bapluralithec2%e7%9a%84%e9%85%8d%e7%bd%ae%e5%9b%be%e4%b9%a6%e3%80%82\/","title":{"rendered":"\u9996\u6b21\u521b\u5efaPluralith~EC2\u7684\u914d\u7f6e\u56fe\u4e66"},"content":{"rendered":"<h2>\u9996\u5148<\/h2>\n<p>\u6211\u5728\u4e1a\u52a1\u4e2d\u4f7f\u7528Terragrunt\u6765\u7ba1\u7406AWS\u914d\u7f6e\u7684\u4e00\u90e8\u5206\uff0c\u4f46\u968f\u7740\u914d\u7f6e\u53d8\u5f97\u8d8a\u6765\u8d8a\u590d\u6742\uff0c\u9605\u8bfb\u4ee3\u7801\u548c\u7406\u89e3\u914d\u7f6e\u53d8\u5f97\u56f0\u96be\uff0c\u56e0\u4e3a\u65e0\u6cd5\u76f4\u89c2\u5730\u77e5\u9053\u662f\u5426\u8fbe\u5230\u4e86\u9884\u671f\u7684\u914d\u7f6e\u3002\u5f53\u6211\u53d1\u73b0Pluralith\u65f6\uff0c\u6211\u60f3\u5c1d\u8bd5\u4f7f\u7528\u5b83\u3002<\/p>\n<p>\u7531\u4e8e\u4e0a\u6b21\u5b89\u88c5\u6709\u70b9\u504f\u5dee\uff0c\u6240\u4ee5\u6211\u8fdb\u884c\u4e86\u5b89\u88c5\u3002<br \/>\n\u8fd9\u6b21\u6211\u60f3\u521b\u5efa\u4e00\u4e2a\u4f7f\u7528Terraform\u521b\u5efaEC2\u7684\u6587\u4ef6\uff0c\u5e76\u6839\u636e\u521b\u5efa\u7684EC2\u4f7f\u7528Pluralith\u6765\u521b\u5efa\u914d\u7f6e\u56fe\u3002<br \/>\n\u7531\u4e8e\u6211\u662fTerraform\u521d\u5b66\u8005\uff0c\u6240\u4ee5\u6211\u53c2\u8003\u4e86\u4ee5\u4e0b\u4e66\u7c4d\u5185\u7684\u90e8\u5206\u6b65\u9aa4\uff1a\u201c\u4f7f\u7528Terraform\u5f00\u59cbAWS\u914d\u7f6e\u7ba1\u7406\u201d\u6765\u64cd\u4f5c\u3002<\/p>\n<ul class=\"post-ul\">\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u30c7\u30b6\u30a4\u30f3 2022\u5e741\u6708\u53f7<\/ul>\n<h2>\u60f3\u505a\u7684\u4e8b\u60c5 zu\u00f2 de<\/h2>\n<p>\u6211\u60f3\u4f7f\u7528Pluralith\u4fbf\u6377\u5730\u521b\u5efaAWS\u73af\u5883\u7684\u914d\u7f6e\u56fe\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\u56fe\u5f62\u6a21\u5757\u7248\u672c\uff1a0.2.1<br \/>\nAWS CLI\u7248\u672c\uff1a2.4.23<\/p>\n<h2>\u4e0a\u6b21\u6240\u505a\u7684\u4e8b\u60c5<\/h2>\n<p>\u6211\u4e4b\u524d\u5df2\u7ecf\u5b89\u88c5\u4e86Terraform\u3001Pluralith\u548cAWS CLI\u3002\u8bf7\u67e5\u770b\u4ee5\u4e0b\u8be6\u7ec6\u4fe1\u606f\u3002<\/p>\n<ul class=\"post-ul\">\u306f\u3058\u3081\u3066\u306ePluralith ~\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u7de8~<\/ul>\n<h2>\u8bd5\u8bd5\u7528Terraform\u521b\u5efaEC2\u5b9e\u4f8b\u3002<\/h2>\n<h3>1.\u51ed\u8bc1\u8bbe\u7f6e<\/h3>\n<p>\u5728AWS\u7ba1\u7406\u63a7\u5236\u53f0\u4e0a\u521b\u5efa\u4e00\u4e2a\u9644\u52a0\u4e86&#8221;AdministratorAccess&#8221;\u7b56\u7565\u7684\u8bbf\u95ee\u5bc6\u94a5\u3002<br \/>\n\u6709\u5173\u8bbf\u95ee\u5bc6\u94a5\u7684\u8be6\u7ec6\u521b\u5efa\u65b9\u6cd5\uff0c\u8bf7\u53c2\u8003\u5b98\u65b9\u6587\u6863\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u8fd9\u91cc\u867d\u7136\u4e0d\u662f\u5b98\u65b9\u63a8\u8350\uff0c\u4f46\u4e5f\u76f8\u5f53\u6613\u61c2\uff0c\u6211\u4f1a\u63a8\u8350\u7684\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u5f53\u4f60\u6210\u529f\u521b\u5efa\u540e\uff0c\u6267\u884caws configure\u547d\u4ee4\uff0c\u5e76\u8f93\u5165\u6240\u521b\u5efa\u7684\u8bbf\u95ee\u5bc6\u94a5\uff0c\u5728\u9ed8\u8ba4\u533a\u57df\u4e2d\u9009\u62e9\u4e1c\u4eac\u533a\u57df\u3002<\/p>\n<p>\u7136\u540e\uff0c\u6267\u884caws sts get-caller-identity\u547d\u4ee4\u6765\u786e\u8ba4\u8bbe\u7f6e\u7684UserId\u3001Account\u3001Arn\u662f\u5426\u88ab\u8f93\u51fa\u3002<br \/>\n\u7531\u4e8e\u6210\u529f\u663e\u793a\uff0c\u63a5\u4e0b\u6765\u6211\u4f1a\u5c1d\u8bd5\u7f16\u5199Terraform\u4ee3\u7801\u3002<\/p>\n<h3>2. \u4ee3\u7801\u5b9e\u65bd\u3002<\/h3>\n<p>\u672c\u6b21\u6211\u4eec\u5c06\u521b\u5efa\u4e00\u4e2a\u7528\u4e8e\u6d4b\u8bd5\u7684Amazon Linux 2023 AMI\u7684t2.micro\u7c7b\u578b\u7684EC2\u5b9e\u4f8b\u3002<br \/>\n\u4ee5\u4e0b\u662fmain.tf\u6587\u4ef6\u7684\u5185\u5bb9\u3002<\/p>\n<pre class=\"post-pre\"><code>resource \"aws_instance\" \"learn_pluralith\" {\r\n  ami           = \"ami-08c84d37db8aafe00\"# Amazon Linux 2023 AMI\r\n  instance_type = \"t2.micro\"\r\n\r\n  tags = {\r\n    Name = \"learn_pluralith\"\r\n  }\r\n}\r\n\r\nprovider \"aws\" {\r\n  region = \"ap-northeast-1\"\r\n}\r\n<\/code><\/pre>\n<p>\u5728resource\u5757\u4e2d\uff0c\u63cf\u8ff0\u4e86AWS\u5b9e\u4f8b\u7684\u4fe1\u606f\uff0c\u5728provider\u5757\u4e2d\u63cf\u8ff0\u4e86\u6240\u4f7f\u7528\u7684\u4e91\u670d\u52a1\u63d0\u4f9b\u5546\u7684\u4fe1\u606f\u3002<br \/>\nami\u4e2d\u8bbe\u7f6e\u4e86EC2\u7684AMI\u4e3aAmazon Linux 2023 AMI\uff0c\u5e76\u6307\u5b9a\u4e86\u5b9e\u4f8b\u7c7b\u578b\u4e3at2.micro\u3002<br \/>\n\u6807\u7b7e\u53ef\u4ee5\u4e0d\u8fdb\u884c\u7279\u522b\u8bbe\u7f6e\uff0c\u4f46\u4e3a\u4e86Pluralith\u7684\u5b66\u4e60\u76ee\u7684\uff0c\u6211\u4eec\u5c06\u5176\u8bbe\u7f6e\u4e3alearn_pluralith\u3002<br \/>\n\u540c\u65f6\uff0c\u5c06\u4e91\u670d\u52a1\u63d0\u4f9b\u5546\u6307\u5b9a\u4e3aAWS\uff0c\u5e76\u5c06\u5730\u533a\u8bbe\u7f6e\u4e3a\u4e1c\u4eac\u5730\u533a\u3002<\/p>\n<p>\u7531\u4e8e\u5df2\u7ecf\u521b\u5efa\u4e86\u7528\u4e8e\u521b\u5efaEC2\u5b9e\u4f8b\u6240\u9700\u7684terraform\u6587\u4ef6\uff0c\u63a5\u4e0b\u6765\u5c06\u6267\u884cTerraform\u64cd\u4f5c\u3002<\/p>\n<h3>3. \u521d\u59cb\u5316\u3002<\/h3>\n<p>\u5f53\u60a8\u9996\u6b21\u6267\u884c\u65f6\uff0c\u9700\u8981\u8fdb\u884c\u521d\u59cb\u5316\u64cd\u4f5c\uff0c\u56e0\u6b64\u6267\u884c`terraform init`\u547d\u4ee4\u3002<\/p>\n<pre class=\"post-pre\"><code>PS C:\\Users\\\u30e6\u30fc\u30b6\u30fc\u540d\\workspace\\learn_pluralith&gt; terraform init\r\n\r\nInitializing the backend...\r\n\r\nInitializing provider plugins...\r\n- Finding latest version of hashicorp\/aws...\r\n- Installing hashicorp\/aws v5.13.0...\r\n- Installed hashicorp\/aws v5.13.0 (signed by HashiCorp)\r\n\r\nTerraform has created a lock file .terraform.lock.hcl to record the provider\r\nselections it made above. Include this file in your version control repository\r\nso that Terraform can guarantee to make the same selections by default when\r\nyou run \"terraform init\" in the future.\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 working directory. 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\u547d\u4ee4\u6267\u884c\u6210\u529f\u4e86\u3002<br \/>\n\u5f53\u68c0\u67e5\u6587\u4ef6\u5939\u65f6\uff0c\u53d1\u73b0\u4ee5\u4e0b\u6587\u4ef6\u5df2\u6dfb\u52a0\u3002<\/p>\n<p>\u5b66\u4e60\u591a\u5143\u5316<br \/>\n\u2502<br \/>\n\u2514\u2500 .terraform\\providers\\&#8230;\\terraform-provider-aws_v5.13.0_x5.exe<br \/>\n\u2502<br \/>\n\u2514\u2500 .terraform.lock.hcl<br \/>\n\u2502<br \/>\n\u2514\u2500 main.tf<\/p>\n<h3>4. \u786e\u8ba4\u6267\u884c\u5185\u5bb9<\/h3>\n<p>\u63a5\u4e0b\u6765\uff0c\u6267\u884cterraform plan\u547d\u4ee4\uff0c\u4ee5\u786e\u8ba4main.tf\u6587\u4ef6\u4e2d\u7684\u5185\u5bb9\u662f\u5426\u6ca1\u6709\u95ee\u9898\u3002<\/p>\n<pre class=\"post-pre\"><code>PS C:\\Users\\\u30e6\u30fc\u30b6\u30fc\u540d\\workspace\\learn_pluralith&gt; terraform plan\r\n\r\nTerraform used the selected providers to generate the following execution plan. Resource actions are indicated with the\r\nfollowing symbols:\r\n+ create\r\n\r\nTerraform will perform the following actions:\r\n\r\n# aws_instance.learn_pluralith will be created\r\n+ resource \"aws_instance\" \"learn_pluralith\" {\r\n   + ami                                  = \"ami-08c84d37db8aafe00\"\r\n   + arn                                  = (known after apply)\r\n   + associate_public_ip_address          = (known after apply)\r\n   + availability_zone                    = (known after apply)\r\n   + cpu_core_count                       = (known after apply)\r\n   + cpu_threads_per_core                 = (known after apply)\r\n   + disable_api_stop                     = (known after apply)\r\n   + disable_api_termination              = (known after apply)\r\n   + ebs_optimized                        = (known after apply)\r\n   + get_password_data                    = false\r\n   + host_id                              = (known after apply)\r\n   + host_resource_group_arn              = (known after apply)\r\n   + iam_instance_profile                 = (known after apply)\r\n   + id                                   = (known after apply)\r\n   + instance_initiated_shutdown_behavior = (known after apply)\r\n   + instance_lifecycle                   = (known after apply)\r\n   + instance_state                       = (known after apply)\r\n   + instance_type                        = \"t2.micro\"\r\n   + ipv6_address_count                   = (known after apply)\r\n   + ipv6_addresses                       = (known after apply)\r\n   + key_name                             = (known after apply)\r\n   + monitoring                           = (known after apply)\r\n   + outpost_arn                          = (known after apply)\r\n   + password_data                        = (known after apply)\r\n   + placement_group                      = (known after apply)\r\n   + placement_partition_number           = (known after apply)\r\n   + primary_network_interface_id         = (known after apply)\r\n   + private_dns                          = (known after apply)\r\n   + private_ip                           = (known after apply)\r\n   + public_dns                           = (known after apply)\r\n   + public_ip                            = (known after apply)\r\n   + secondary_private_ips                = (known after apply)\r\n   + security_groups                      = (known after apply)\r\n   + source_dest_check                    = true\r\n   + spot_instance_request_id             = (known after apply)\r\n   + subnet_id                            = (known after apply)\r\n   + tags                                 = {\r\n       + \"Name\" = \"learn_pluralith\"\r\n     }\r\n   + tags_all                             = {\r\n       + \"Name\" = \"learn_pluralith\"\r\n     }\r\n   + tenancy                              = (known after apply)\r\n   + user_data                            = (known after apply)\r\n   + user_data_base64                     = (known after apply)\r\n   + user_data_replace_on_change          = false\r\n   + vpc_security_group_ids               = (known after apply)\r\n }\r\n\r\nPlan: 1 to add, 0 to change, 0 to destroy.\r\n\r\n\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 \r\n\r\nNote: You didn't use the -out option to save this plan, so Terraform can't guarantee to take exactly these actions if   \r\nyou run \"terraform apply\" now.\r\n\r\n<\/code><\/pre>\n<p>\u786e\u8ba4\u6ca1\u6709\u53d1\u751f\u4efb\u4f55\u9519\u8bef\uff0c\u5e76\u4e14\u5df2\u786e\u8ba4EC2\u7684AMI\u3001\u5b9e\u4f8b\u7c7b\u578b\u548c\u6807\u7b7e\u4fe1\u606f\u6309\u9884\u671f\u8fdb\u884c\u8bbe\u7f6e\u3002<br \/>\n\u63a5\u4e0b\u6765\u6211\u4eec\u5c06\u5b9e\u9645\u6267\u884c\u5e76\u5e94\u7528\u5230\u73af\u5883\u4e2d\u3002<\/p>\n<h3>5. \u5bf9\u73af\u5883\u7684\u53cd\u5e94<\/h3>\n<p>\u4e3a\u4e86\u5c06\u5176\u5b9e\u9645\u5e94\u7528\u4e8eAWS\u73af\u5883\uff0c\u9700\u8981\u8fd0\u884cterraform apply\u547d\u4ee4\u3002<\/p>\n<pre class=\"post-pre\"><code>PS C:\\Users\\\u30e6\u30fc\u30b6\u30fc\u540d\\workspace\\learn_pluralith&gt; terraform apply\r\n\r\nTerraform used the selected providers to generate the following execution plan. Resource actions are indicated with the\r\nfollowing symbols:\r\n+ create\r\n\r\nTerraform will perform the following actions:\r\n\r\n# aws_instance.learn_pluralith will be created\r\n+ resource \"aws_instance\" \"learn_pluralith\" {\r\n   + ami                                  = \"ami-08c84d37db8aafe00\"\r\n   + arn                                  = (known after apply)\r\n   + associate_public_ip_address          = (known after apply)\r\n   + availability_zone                    = (known after apply)\r\n   + cpu_core_count                       = (known after apply)\r\n   + cpu_threads_per_core                 = (known after apply)\r\n   + disable_api_stop                     = (known after apply)\r\n   + disable_api_termination              = (known after apply)\r\n   + ebs_optimized                        = (known after apply)\r\n   + get_password_data                    = false\r\n   + host_id                              = (known after apply)\r\n   + host_resource_group_arn              = (known after apply)\r\n   + iam_instance_profile                 = (known after apply)\r\n   + id                                   = (known after apply)\r\n   + instance_initiated_shutdown_behavior = (known after apply)\r\n   + instance_lifecycle                   = (known after apply)\r\n   + instance_state                       = (known after apply)\r\n   + instance_type                        = \"t2.micro\"\r\n   + ipv6_address_count                   = (known after apply)\r\n   + ipv6_addresses                       = (known after apply)\r\n   + key_name                             = (known after apply)\r\n   + monitoring                           = (known after apply)\r\n   + outpost_arn                          = (known after apply)\r\n   + password_data                        = (known after apply)\r\n   + placement_group                      = (known after apply)\r\n   + placement_partition_number           = (known after apply)\r\n   + primary_network_interface_id         = (known after apply)\r\n   + private_dns                          = (known after apply)\r\n   + private_ip                           = (known after apply)\r\n   + public_dns                           = (known after apply)\r\n   + public_ip                            = (known after apply)\r\n   + secondary_private_ips                = (known after apply)\r\n   + security_groups                      = (known after apply)\r\n   + source_dest_check                    = true\r\n   + spot_instance_request_id             = (known after apply)\r\n   + subnet_id                            = (known after apply)\r\n   + tags                                 = {\r\n       + \"Name\" = \"learn_pluralith\"\r\n     }\r\n   + tags_all                             = {\r\n       + \"Name\" = \"learn_pluralith\"\r\n     }\r\n   + tenancy                              = (known after apply)\r\n   + user_data                            = (known after apply)\r\n   + user_data_base64                     = (known after apply)\r\n   + user_data_replace_on_change          = false\r\n   + vpc_security_group_ids               = (known after apply)\r\n }\r\n\r\nPlan: 1 to add, 0 to change, 0 to destroy.\r\n\r\nDo you want to perform these actions?\r\nTerraform will perform the actions described above.\r\nOnly 'yes' will be accepted to approve.\r\n\r\nEnter a value: yes\r\n\r\naws_instance.learn_pluralith: Creating...\r\naws_instance.learn_pluralith: Still creating... [10s elapsed]\r\naws_instance.learn_pluralith: Still creating... [20s elapsed]\r\naws_instance.learn_pluralith: Still creating... [30s elapsed]\r\naws_instance.learn_pluralith: Creation complete after 32s [id=i-00e372ff3399e558f]\r\n\r\nApply complete! Resources: 1 added, 0 changed, 0 destroyed.\r\n\r\n<\/code><\/pre>\n<p>\u5728\u8fdb\u884c\u5230\u8fd9\u4e00\u6b65\u4e4b\u524d\uff0c\u4f1a\u8f93\u51fa\u4e0e\u6267\u884cterraform plan\u547d\u4ee4\u76f8\u540c\u7684\u5185\u5bb9\uff0c\u5e76\u8981\u6c42\u8f93\u5165&#8221;yes&#8221;\u3002<br \/>\n\u7531\u4e8e\u8fd9\u6b21\u662f\u9884\u671f\u7684\u7ed3\u679c\uff0c\u6240\u4ee5\u8f93\u5165&#8221;yes&#8221;\u3002<br \/>\n\u7136\u540e\uff0c\u5c06\u521b\u5efa\u4e00\u4e2a\u65b0\u7684terraform.tfstate\u6587\u4ef6\u3002<br \/>\n\u770b\u8d77\u6765\u5df2\u7ecf\u6210\u529f\u521b\u5efa\u4e86EC2\u5b9e\u4f8b\u3002<\/p>\n<p>\u8ba9\u6211\u4eec\u901a\u8fc7AWS\u7ba1\u7406\u63a7\u5236\u53f0\u6765\u786e\u8ba4\u521b\u5efa\u7684EC2\u5b9e\u4f8b\u3002<\/p>\n<h3>\u4ece\u7ba1\u7406\u63a7\u5236\u53f0\u67e5\u770b\u5df2\u521b\u5efa\u7684EC2\u5b9e\u4f8b\u3002<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d854b913a08637a6b8af9\/39-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2023-08-18 181139.png\" \/><\/div>\n<p>\u6211\u6210\u529f\u5730\u5b8c\u6210\u4e86\uff01\u63a5\u4e0b\u6765\uff0c\u6211\u5c06\u5c1d\u8bd5\u521b\u5efa\u5927\u5bb6\u90fd\u671f\u5f85\u7684\u6784\u56fe\u3002<\/p>\n<h2>\u8bd5\u7740\u521b\u5efa\u4e00\u4e2a\u4f7f\u7528pluralith\u521b\u5efa\u7684EC2\u67b6\u6784\u56fe\u3002<\/h2>\n<p>\u521b\u5efa\u7ed3\u6784\u56fe\u9700\u8981\u6267\u884c&#8221;pluralith graph&#8221;\u547d\u4ee4\u3002<\/p>\n<pre class=\"post-pre\"><code>PS C:\\Users\\\u30e6\u30fc\u30b6\u30fc\u540d\\workspace\\learn_pluralith&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- Cost Calculation Skipped\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\r\n<\/code><\/pre>\n<p>\u5f53\u6210\u529f\u521b\u5efa\u6784\u6210\u56fe\u540e\uff0c<br \/>\n\u5c06\u5728learn_pluralith\u6587\u4ef6\u5939\u7684\u76f4\u63a5\u4e0b\u65b9\u6dfb\u52a0\u4e00\u4e2a\u540d\u4e3a.pluralith\u7684\u76ee\u5f55\u3002<br \/>\nlearn_pluralith\/<br \/>\n\u2502<br \/>\n\u251c\u2500.pluralith<br \/>\n\u2502 \u2502<br \/>\n\u2502 \u251c\u2500pluralith.cache.json<br \/>\n\u2502 \u2502<br \/>\n\u2502 \u251c\u2500pluralith.plan.bin<br \/>\n\u2502 \u2502<br \/>\n\u2502 \u2514\u2500pluralith.state.json<br \/>\n\u2502<br \/>\n\u251c\u2500 .terraform\\providers\\&#8230;\\terraform-provider-aws_v5.13.0_x5.exe<br \/>\n\u2502<br \/>\n\u251c\u2500 .terraform.lock.hcl<br \/>\n\u2502<br \/>\n\u2514\u2500 main.tf<\/p>\n<p>\u53e6\u5916\uff0c\u6700\u540e\u4f1a\u8f93\u51faURL\uff0c\u5e76\u5c06\u7528\u6237\u91cd\u5b9a\u5411\u5230Pluralith\u7684\u9875\u9762\u4e0a\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d854b913a08637a6b8af9\/46-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2023-08-21 190045.png\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d854b913a08637a6b8af9\/47-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2023-08-21 190158.png\" \/><\/div>\n<p>\u53ea\u6709EC2\uff0c\u6240\u4ee5\u611f\u89c9\u6709\u4e9b\u5b64\u5355\uff0c\u4f46\u662f\u914d\u7f6e\u56fe\u5df2\u7ecf\u505a\u597d\u4e86\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d854b913a08637a6b8af9\/49-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2023-08-21 190540.png\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d854b913a08637a6b8af9\/50-0.png\" alt=\"project_pluralith-local-project%2Frun_3077753%2Frun_3077753_1692612370127.png\" \/><\/div>\n<p>\u65e2\u7136\u5982\u6b64\uff0c\u6211\u60f3\u628a\u6bcf\u79cd\u60c5\u51b5\u7684\u5dee\u5f02\u90fd\u8f93\u51fa\u51fa\u6765\uff0c\u6240\u4ee5\u8ba9\u6211\u8bd5\u8bd5\u5e76\u52fe\u9009\u6bcf\u4e2a\u9009\u9879\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d854b913a08637a6b8af9\/52-2.png\" alt=\"project_pluralith-local-project%2Frun_3077753%2Frun_3077753_1692612455485.png\" \/><\/div>\n<p>\u4e0d\u4ec5\u80fd\u591f\u663e\u793a\u6807\u7b7e\uff0c\u800c\u4e14\u5728\u6267\u884c\u5bfc\u51fa\u65f6\u8fd8\u4f1a\u663e\u793a\u6307\u5b9a\u7684\u7248\u672c\u548c\u8f93\u51fa\u65e5\u671f\u3002<\/p>\n<h2>\u6574\u7406\u623f\u95f4<\/h2>\n<p>\u5982\u679c\u4fdd\u7559\u521b\u5efa\u7684EC2\u73af\u5883\u4e0d\u53d8\uff0c\u5c06\u7ee7\u7eed\u4ea7\u751f\u8d39\u7528\uff0c\u56e0\u6b64\u9700\u8981\u6267\u884cterraform destroy\u547d\u4ee4\u6765\u7ec8\u6b62EC2\u5b9e\u4f8b\u3002<br \/>\n\u5728\u6267\u884cdestroy\u65f6\uff0c\u8fd8\u4f1a\u663e\u793a\u8981\u5220\u9664\u7684\u73af\u5883\u4fe1\u606f\uff0c\u5e76\u8981\u6c42\u60a8\u8f93\u5165yes\u3002<br \/>\n\u7531\u4e8e\u8fd9\u4e5f\u662f\u9884\u671f\u7684\u5185\u5bb9\uff0c\u6211\u4eec\u8f93\u5165yes\u3002<\/p>\n<pre class=\"post-pre\"><code>PS C:\\Users\\\u30e6\u30fc\u30b6\u30fc\u540d\\workspace\\learn_pluralith&gt; terraform destroy\r\naws_instance.learn_pluralith: Refreshing state... [id=...]\r\n\r\nTerraform used the selected providers to generate the following execution plan. Resource actions are indicated with the \r\nfollowing symbols:\r\n- destroy\r\n\r\nTerraform will perform the following actions:\r\n\r\n# aws_instance.learn_pluralith will be destroyed\r\n- resource \"aws_instance\" \"learn_pluralith\" {\r\n   - ami                                  = \"ami-08c84d37db8aafe00\" -&gt; null\r\n   - arn                                  = \"arn:aws:ec2:ap-northeast-1:...:instance\/i-00e372ff3399e558f\" -&gt; null\r\n   - associate_public_ip_address          = true -&gt; null\r\n   - availability_zone                    = \"ap-northeast-1a\" -&gt; null\r\n   - cpu_core_count                       = 1 -&gt; null\r\n   - cpu_threads_per_core                 = 1 -&gt; null\r\n   - disable_api_stop                     = false -&gt; null\r\n   - disable_api_termination              = false -&gt; null\r\n   - ebs_optimized                        = false -&gt; null\r\n   - get_password_data                    = false -&gt; null\r\n   - hibernation                          = false -&gt; null\r\n   - id                                   = \"\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9ID\" -&gt; null\r\n   - instance_initiated_shutdown_behavior = \"stop\" -&gt; null\r\n   - instance_state                       = \"running\" -&gt; null\r\n   - instance_type                        = \"t2.micro\" -&gt; null\r\n   - ipv6_address_count                   = 0 -&gt; null\r\n   - ipv6_addresses                       = [] -&gt; null\r\n   - monitoring                           = false -&gt; null\r\n   - placement_partition_number           = 0 -&gt; null\r\n   - primary_network_interface_id         = \"network_interface_id\" -&gt; null\r\n   - private_dns                          = \"private_dns\" -&gt; null\r\n   - private_ip                           = \"private_ip\" -&gt; null\r\n   - public_dns                           = \"public_dns\" -&gt; null\r\n   - public_ip                            = \"public_ip\" -&gt; null\r\n   - secondary_private_ips                = [] -&gt; null\r\n   - security_groups                      = [\r\n       - \"default\",\r\n     ] -&gt; null\r\n   - source_dest_check                    = true -&gt; null\r\n   - subnet_id                            = \"subnet_id\" -&gt; null\r\n   - tags                                 = {\r\n       - \"Name\" = \"learn_pluralith\"\r\n     } -&gt; null\r\n   - tags_all                             = {\r\n       - \"Name\" = \"learn_pluralith\"\r\n     } -&gt; null\r\n   - tenancy                              = \"default\" -&gt; null\r\n   - user_data_replace_on_change          = false -&gt; null\r\n   - vpc_security_group_ids               = [\r\n       - \"sg-00bb2eea8f818d4e7\",\r\n     ] -&gt; null\r\n\r\n   - capacity_reservation_specification {\r\n       - capacity_reservation_preference = \"open\" -&gt; null\r\n     }\r\n\r\n   - cpu_options {\r\n       - core_count       = 1 -&gt; null\r\n       - threads_per_core = 1 -&gt; null\r\n     }\r\n\r\n   - credit_specification {\r\n       - cpu_credits = \"standard\" -&gt; null\r\n     }\r\n\r\n   - enclave_options {\r\n       - enabled = false -&gt; null\r\n     }\r\n\r\n   - maintenance_options {\r\n       - auto_recovery = \"default\" -&gt; null\r\n     }\r\n\r\n   - metadata_options {\r\n       - http_endpoint               = \"enabled\" -&gt; null\r\n       - http_protocol_ipv6          = \"disabled\" -&gt; null\r\n       - http_put_response_hop_limit = 2 -&gt; null\r\n       - http_tokens                 = \"required\" -&gt; null\r\n       - instance_metadata_tags      = \"disabled\" -&gt; null\r\n     }\r\n\r\n   - private_dns_name_options {\r\n       - enable_resource_name_dns_a_record    = false -&gt; null\r\n       - enable_resource_name_dns_aaaa_record = false -&gt; null\r\n       - hostname_type                        = \"ip-name\" -&gt; null\r\n     }\r\n\r\n   - root_block_device {\r\n       - delete_on_termination = true -&gt; null\r\n       - device_name           = \"\/dev\/xvda\" -&gt; null\r\n       - encrypted             = false -&gt; null\r\n       - iops                  = 3000 -&gt; null\r\n       - tags                  = {} -&gt; null\r\n       - throughput            = 125 -&gt; null\r\n       - volume_id             = \"volume_id\" -&gt; null\r\n       - volume_size           = 8 -&gt; null\r\n       - volume_type           = \"gp3\" -&gt; null\r\n     }\r\n }\r\n\r\nPlan: 0 to add, 0 to change, 1 to destroy.\r\n\r\nDo you really want to destroy all resources?\r\nTerraform will destroy all your managed infrastructure, as shown above.\r\nThere is no undo. Only 'yes' will be accepted to confirm.\r\n\r\nEnter a value: yes\r\n\r\naws_instance.learn_pluralith: Destroying... [id=...]\r\naws_instance.learn_pluralith: Still destroying... [id=..., 10s elapsed]\r\naws_instance.learn_pluralith: Still destroying... [id=..., 20s elapsed]\r\naws_instance.learn_pluralith: Destruction complete after 30s\r\n\r\nDestroy complete! Resources: 1 destroyed.\r\n\r\n<\/code><\/pre>\n<p>\u6210\u529f\u5173\u95ed\u4e86EC2\u5b9e\u4f8b\uff0c\u4e00\u5207\u987a\u5229\uff01<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d854b913a08637a6b8af9\/58-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2023-08-18 211627.png\" \/><\/div>\n<h2>\u611f\u53d7<\/h2>\n<p>\u6211\u518d\u6b21\u8ba4\u8bc6\u5230\uff0c\u901a\u8fc7\u4f7f\u7528Terraform\uff0c\u53ef\u4ee5\u66f4\u5bb9\u6613\u5730\u67e5\u770b\u57fa\u4e8e\u4ee3\u7801\u521b\u5efa\u7684AWS\u73af\u5883\u7684\u914d\u7f6e\u5185\u5bb9\uff0c\u5e76\u4e14\u53ea\u8981\u7f16\u5199\u4ee3\u7801\uff0c\u5c31\u80fd\u591f\u901a\u8fc7\u4e00\u884c\u547d\u4ee4\u8fdb\u884c\u73af\u5883\u7684\u521b\u5efa\u548c\u5220\u9664\uff0c\u8fd9\u975e\u5e38\u65b9\u4fbf\u3002\u6b64\u5916\uff0c\u4f7f\u7528Pluralith\u521b\u5efa\u7684\u914d\u7f6e\u56fe\u4e5f\u53ef\u4ee5\u901a\u8fc7\u4e00\u884c\u547d\u4ee4\u5feb\u901f\u751f\u6210\uff0c\u8fd9\u771f\u662f\u4ee4\u4eba\u9ad8\u5174\u3002<\/p>\n<p>\u987a\u4fbf\u8bf4\u4e00\u53e5\uff0c\u5728\u5220\u9664EC2\u4e4b\u540e\uff0c\u5373\u4f7f\u572848\u5c0f\u65f6\u5185\uff0c\u60a8\u4ecd\u7136\u53ef\u4ee5\u8fd0\u884cpluralith graph\u6765\u786e\u8ba4\u56fe\u5f62\uff0c\u800c\u4e14\u5373\u4f7f\u8fc7\u4e8648\u5c0f\u65f6\uff0c\u53ea\u9700\u518d\u6b21\u8fd0\u884cpluralith graph\uff0c\u4e5f\u53ef\u4ee5\u518d\u6b21\u786e\u8ba4\u56fe\u5f62\u3002\u8fd9\u5728\u672c\u5730\u4f7f\u7528\u4e5f\u975e\u5e38\u65b9\u4fbf\u3002<\/p>\n<p>\u7531\u4e8e\u4e0d\u4ec5\u53ef\u4ee5\u663e\u793a\u533a\u57df\uff0c\u8fd8\u53ef\u4ee5\u663e\u793a\u8d39\u7528\uff0c\u6240\u4ee5\u6211\u60f3\u521b\u5efa\u4e00\u4e2a\u4f7f\u7528\u5176\u4ed6\u4e00\u4e9b\u670d\u52a1\u7684AWS\u73af\u5883\uff0c\u5e76\u5728\u8fd0\u884c\u4e00\u6bb5\u65f6\u95f4\u540e\u521b\u5efa\u4e00\u4e2a\u914d\u7f6e\u56fe\u3002<\/p>\n<h2>\u8bf7\u53c2\u8003<\/h2>\n<p>2022\u5e741\u6708\u7684\u8f6f\u4ef6\u8bbe\u8ba1\u6742\u5fd7<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148 \u6211\u5728\u4e1a\u52a1\u4e2d\u4f7f\u7528Terragrunt\u6765\u7ba1\u7406AWS\u914d\u7f6e\u7684\u4e00\u90e8\u5206\uff0c\u4f46\u968f\u7740\u914d\u7f6e\u53d8\u5f97\u8d8a\u6765\u8d8a\u590d\u6742\uff0c\u9605\u8bfb\u4ee3\u7801\u548c\u7406\u89e3\u914d\u7f6e [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-48391","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>\u9996\u6b21\u521b\u5efaPluralith~EC2\u7684\u914d\u7f6e\u56fe\u4e66 - 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\/\u9996\u6b21\u521b\u5efapluralithec2\u7684\u914d\u7f6e\u56fe\u4e66\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u9996\u6b21\u521b\u5efaPluralith~EC2\u7684\u914d\u7f6e\u56fe\u4e66\" \/>\n<meta property=\"og:description\" content=\"\u9996\u5148 \u6211\u5728\u4e1a\u52a1\u4e2d\u4f7f\u7528Terragrunt\u6765\u7ba1\u7406AWS\u914d\u7f6e\u7684\u4e00\u90e8\u5206\uff0c\u4f46\u968f\u7740\u914d\u7f6e\u53d8\u5f97\u8d8a\u6765\u8d8a\u590d\u6742\uff0c\u9605\u8bfb\u4ee3\u7801\u548c\u7406\u89e3\u914d\u7f6e [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u9996\u6b21\u521b\u5efapluralithec2\u7684\u914d\u7f6e\u56fe\u4e66\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-05-16T21:54:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-04T01:46:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d854b913a08637a6b8af9\/39-0.png\" \/>\n<meta name=\"author\" content=\"\u5b87, \u534e\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u5b87, \u534e\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 \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\/%e9%a6%96%e6%ac%a1%e5%88%9b%e5%bb%bapluralithec2%e7%9a%84%e9%85%8d%e7%bd%ae%e5%9b%be%e4%b9%a6%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e9%a6%96%e6%ac%a1%e5%88%9b%e5%bb%bapluralithec2%e7%9a%84%e9%85%8d%e7%bd%ae%e5%9b%be%e4%b9%a6%e3%80%82\/\",\"name\":\"\u9996\u6b21\u521b\u5efaPluralith~EC2\u7684\u914d\u7f6e\u56fe\u4e66 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-05-16T21:54:33+00:00\",\"dateModified\":\"2024-05-04T01:46:15+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e9%a6%96%e6%ac%a1%e5%88%9b%e5%bb%bapluralithec2%e7%9a%84%e9%85%8d%e7%bd%ae%e5%9b%be%e4%b9%a6%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e9%a6%96%e6%ac%a1%e5%88%9b%e5%bb%bapluralithec2%e7%9a%84%e9%85%8d%e7%bd%ae%e5%9b%be%e4%b9%a6%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e9%a6%96%e6%ac%a1%e5%88%9b%e5%bb%bapluralithec2%e7%9a%84%e9%85%8d%e7%bd%ae%e5%9b%be%e4%b9%a6%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u9996\u6b21\u521b\u5efaPluralith~EC2\u7684\u914d\u7f6e\u56fe\u4e66\"}]},{\"@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\/513018e4e121d3add1b7c5de8be21458\",\"name\":\"\u5b87, \u534e\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g\",\"caption\":\"\u5b87, \u534e\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yuhua\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e9%a6%96%e6%ac%a1%e5%88%9b%e5%bb%bapluralithec2%e7%9a%84%e9%85%8d%e7%bd%ae%e5%9b%be%e4%b9%a6%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u9996\u6b21\u521b\u5efaPluralith~EC2\u7684\u914d\u7f6e\u56fe\u4e66 - 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\/\u9996\u6b21\u521b\u5efapluralithec2\u7684\u914d\u7f6e\u56fe\u4e66\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u9996\u6b21\u521b\u5efaPluralith~EC2\u7684\u914d\u7f6e\u56fe\u4e66","og_description":"\u9996\u5148 \u6211\u5728\u4e1a\u52a1\u4e2d\u4f7f\u7528Terragrunt\u6765\u7ba1\u7406AWS\u914d\u7f6e\u7684\u4e00\u90e8\u5206\uff0c\u4f46\u968f\u7740\u914d\u7f6e\u53d8\u5f97\u8d8a\u6765\u8d8a\u590d\u6742\uff0c\u9605\u8bfb\u4ee3\u7801\u548c\u7406\u89e3\u914d\u7f6e [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u9996\u6b21\u521b\u5efapluralithec2\u7684\u914d\u7f6e\u56fe\u4e66\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-05-16T21:54:33+00:00","article_modified_time":"2024-05-04T01:46:15+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d854b913a08637a6b8af9\/39-0.png"}],"author":"\u5b87, \u534e","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u5b87, \u534e","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"8 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e9%a6%96%e6%ac%a1%e5%88%9b%e5%bb%bapluralithec2%e7%9a%84%e9%85%8d%e7%bd%ae%e5%9b%be%e4%b9%a6%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e9%a6%96%e6%ac%a1%e5%88%9b%e5%bb%bapluralithec2%e7%9a%84%e9%85%8d%e7%bd%ae%e5%9b%be%e4%b9%a6%e3%80%82\/","name":"\u9996\u6b21\u521b\u5efaPluralith~EC2\u7684\u914d\u7f6e\u56fe\u4e66 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-05-16T21:54:33+00:00","dateModified":"2024-05-04T01:46:15+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e9%a6%96%e6%ac%a1%e5%88%9b%e5%bb%bapluralithec2%e7%9a%84%e9%85%8d%e7%bd%ae%e5%9b%be%e4%b9%a6%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e9%a6%96%e6%ac%a1%e5%88%9b%e5%bb%bapluralithec2%e7%9a%84%e9%85%8d%e7%bd%ae%e5%9b%be%e4%b9%a6%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e9%a6%96%e6%ac%a1%e5%88%9b%e5%bb%bapluralithec2%e7%9a%84%e9%85%8d%e7%bd%ae%e5%9b%be%e4%b9%a6%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u9996\u6b21\u521b\u5efaPluralith~EC2\u7684\u914d\u7f6e\u56fe\u4e66"}]},{"@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\/513018e4e121d3add1b7c5de8be21458","name":"\u5b87, \u534e","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g","caption":"\u5b87, \u534e"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yuhua\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e9%a6%96%e6%ac%a1%e5%88%9b%e5%bb%bapluralithec2%e7%9a%84%e9%85%8d%e7%bd%ae%e5%9b%be%e4%b9%a6%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\/48391","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\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=48391"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/48391\/revisions"}],"predecessor-version":[{"id":97585,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/48391\/revisions\/97585"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=48391"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=48391"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=48391"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}