{"id":49070,"date":"2023-03-12T09:40:48","date_gmt":"2023-07-22T20:13:32","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e9%80%9a%e8%bf%87ssm%e8%ae%bf%e9%97%aeec2\/"},"modified":"2024-01-15T12:48:00","modified_gmt":"2024-01-15T04:48:00","slug":"%e9%80%9a%e8%bf%87ssm%e8%ae%bf%e9%97%aeec2","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e9%80%9a%e8%bf%87ssm%e8%ae%bf%e9%97%aeec2\/","title":{"rendered":"\u901a\u8fc7SSM\u8bbf\u95eeEC2"},"content":{"rendered":"<h2>\u80cc\u666f &#8211; context<\/h2>\n<p>\u4e0a\u6b21\uff0c\u6211\u7b2c\u4e00\u6b21\u4f7f\u7528Terraform\u6210\u529f\u5730\u5728AWS EC2\u4e0a\u6784\u5efa\u4e86\u4e00\u4e2a\u5b9e\u4f8b\u3002<br \/>\n\u901a\u8fc7\u7ba1\u7406\u63a7\u5236\u53f0\uff0c\u6211\u786e\u8ba4\u4e86\u6784\u5efa\u7684\u60c5\u51b5\uff0c\u5e76\u901a\u8fc7SSH\u8fde\u63a5\u9a8c\u8bc1\u4e86\u5bf9\u5b9e\u4f8b\u7684\u8fde\u63a5\u3002<br \/>\n\u7136\u800c\uff0c\u5728\u5de5\u4f5c\u4e2d\uff0c\u8981\u6784\u5efa\u7684EC2\u7981\u6b62\u4f7f\u7528SSH\u8fde\u63a5\uff0c\u5fc5\u987b\u4f7f\u7528Session Manager\uff08\u4ee5\u4e0b\u7b80\u79f0SSM\uff09\u8fdb\u884c\u8fde\u63a5\u3002<br \/>\n\u867d\u7136\u6211\u5bf9SSM\u6709\u6240\u4e86\u89e3\uff0c\u4f46\u4ece\u672a\u4f7f\u7528\u8fc7\uff0c\u6240\u4ee5\u6211\u6253\u7b97\u501f\u6b64\u673a\u4f1a\u5c1d\u8bd5\u4e00\u4e0b\u3002<\/p>\n<h2>\u76ee\u6807<\/h2>\n<p>\u4f7f\u7528Terraform\u6784\u5efa\u53ef\u4e0eSSM\u8fde\u63a5\u7684EC2\u5b9e\u4f8b\u3002<\/p>\n<h2>\u73af\u5883<\/h2>\n<p>\u4f7f\u7528\u4e0a\u6b21\u6267\u884cTerraform\u65f6\u7684Docker\u5bb9\u5668\u73af\u5883\u3002<\/p>\n<p>\u4f46\u662f\uff0c\u7531\u65bc\u9019\u6b21\u8981\u4f7f\u7528SSM\uff0c\u6240\u4ee5\u9700\u8981\u5b89\u88dd\u63d2\u4ef6\u3002<br \/>\n\u5728Dockerfile\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u5167\u5bb9\uff0c\u7136\u5f8c\u555f\u52d5\u5bb9\u5668\u3002<\/p>\n<pre class=\"post-pre\"><code># install session-manager-plusin\r\nRUN curl \"https:\/\/s3.amazonaws.com\/session-manager-downloads\/plugin\/latest\/ubuntu_64bit\/session-manager-plugin.deb\" -o \"session-manager-plugin.deb\"\r\nRUN dpkg -i session-manager-plugin.deb\r\n<\/code><\/pre>\n<h2>\u8bf7\u770b\u4ee5\u4e0b\u53c2\u8003\u7b54\u6848\u3002<\/h2>\n<p>\u4f7f\u7528Terraform\u6784\u5efa\u53ef\u901a\u8fc7Systems Manager\uff08Session Manager\uff09\u8bbf\u95ee\u7684EC2\u5b9e\u4f8b<br \/>\n\uff08Option\uff09\u5b89\u88c5\u7528\u4e8eAWS CLI\u7684Session Manager\u63d2\u4ef6<\/p>\n<h2>\u6587\u4ef6\u7ed3\u6784<\/h2>\n<p>terraform<br \/>\n\u2514terraform.tfvars<br \/>\n\u2514variables.tf<br \/>\n\u2514ec2.tf<br \/>\n\u2514role.tf<\/p>\n<p>\u6539\u9020<br \/>\n\u2514\u6539\u9020.tfvars<br \/>\n\u2514\u53d8\u91cf.tf<br \/>\n\u2514ec2.tf<br \/>\n\u2514\u89d2\u8272.tf<\/p>\n<h2>\u6b65\u9aa4<\/h2>\n<p>\u57fa\u672c\u7684\u8bf4\uff0cTerraform\u6587\u4ef6\u7684\u7ed3\u6784\u6ca1\u6709\u6539\u53d8\u3002<br \/>\n\u91cd\u70b9\u5728\u4e8e\u521b\u5efaSSM\u89d2\u8272\u5e76\u5c06\u5176\u5173\u8054\u5230\u5b9e\u4f8b\u4e0a\u3002<\/p>\n<h3>\u89d2\u8272.tf<\/h3>\n<pre class=\"post-pre\"><code>data \"aws_iam_policy_document\" \"assume_role\" {\r\n  statement {\r\n    actions = [\"sts:AssumeRole\"]\r\n\r\n    principals {\r\n      type        = \"Service\"\r\n      identifiers = [\"ec2.amazonaws.com\"]\r\n    }\r\n  }\r\n}\r\n\r\nresource \"aws_iam_role\" \"role\" {\r\n  name               = \"xxxxx_ssm_MyRole\"\r\n  assume_role_policy = data.aws_iam_policy_document.assume_role.json\r\n}\r\n\r\ndata \"aws_iam_policy\" \"systems_manager\" {\r\n  arn = \"arn:aws:iam::aws:policy\/AmazonSSMManagedInstanceCore\"\r\n}\r\n\r\nresource \"aws_iam_role_policy_attachment\" \"default\" {\r\n  role       = aws_iam_role.role.name\r\n  policy_arn = data.aws_iam_policy.systems_manager.arn\r\n}\r\n\r\nresource \"aws_iam_instance_profile\" \"systems_manager\" {\r\n  name = \"xxxxx_MyInstanceProfile\"\r\n  role = aws_iam_role.role.name\r\n}\r\n<\/code><\/pre>\n<h3>ec2.tf\u7684\u4e2d\u6587\u91ca\u4e49<\/h3>\n<p>\u6211\u53ea\u662f\u5728\u4e4b\u524d\u7684Terraform\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4e86\u201ciam_instance_profile\u201d\u7684\u8bbe\u7f6e\u3002<\/p>\n<pre class=\"post-pre\"><code>resource \"aws_instance\" \"c069544_tf-ec2\" {\r\n  count         = 1\r\n  ami           = \"ami-03d5c68bab01f3496\" # Ubuntu 20.04 LTS official ami\r\n  instance_type = \"t2.micro\"\r\n  iam_instance_profile = aws_iam_instance_profile.systems_manager.name\r\n  tags = {\r\n    Name = \"${format(\"xxxxx_tf-ec2-%02d\", count.index + 1)}\"\r\n  }\r\n}\r\n<\/code><\/pre>\n<h3>\u5efa\u7acb<\/h3>\n<h4>\u8ba1\u5212<\/h4>\n<pre class=\"post-pre\"><code># 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    :\r\n        }\r\n    }\r\n\r\nPlan: 4 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<\/code><\/pre>\n<h4>\u529e\u7406<\/h4>\n<p>\u8fd9\u6b21\u6211\u4eec\u4e5f\u8bd5\u8bd5\u4f7f\u7528\u201c-auto-approve\u201d\u9009\u9879\u5728\u81ea\u52a8\u5316\u73af\u5883\u4e0b\u8fdb\u884c\u624b\u52a8\u6784\u5efa\u786e\u8ba4\u3002<\/p>\n<pre class=\"post-pre\"><code># terraform apply -auto-approve\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    :\r\n\r\nApply complete! Resources: 4 added, 0 changed, 0 destroyed.\r\n<\/code><\/pre>\n<h4>\u5c55\u793a<\/h4>\n<p>\u6211\u8fd0\u884c\u4e86 terraform show \u547d\u4ee4\u8fdb\u884c\u786e\u8ba4\uff0c\u770b\u8d77\u6765\u5df2\u7ecf\u6210\u529f\u6784\u5efa\u4e86\u3002\uff08\u7701\u7565\u6267\u884c\u7ed3\u679c\uff09<\/p>\n<h2>\u8bf7\u786e\u8ba4\u8fde\u63a5<\/h2>\n<p>\u7531\u4e8e\u4f3c\u4e4e\u6210\u529f\u6784\u5efa\u4e86\uff0c\u6211\u4f1a\u7acb\u5373\u5c1d\u8bd5\u8fdb\u884cSSM\u8fde\u63a5\u3002<\/p>\n<p>\u9996\u5148\u6267\u884c\u9b54\u6cd5\u822c\u7684aws\u914d\u7f6e\u547d\u4ee4\u3002<\/p>\n<pre class=\"post-pre\"><code># aws configure\r\nAWS Access Key ID []:\r\nAWS Secret Access Key []:\r\nDefault region name []:\r\nDefault output format []:\r\n<\/code><\/pre>\n<p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c1d\u8bd5\u83b7\u53d6EC2\u5b9e\u4f8b\u7684\u5217\u8868\u3002<\/p>\n<pre class=\"post-pre\"><code># aws ec2 describe-instances --output=table --query 'Reservations[].Instances[].{InstanceId: InstanceId, PrivateIp: join(`, `, NetworkInterfaces[].PrivateIpAddress), GlobalIP: join(`, `, NetworkInterfaces[].Association.PublicIp), Platform:Platform, State: State.Name, SecurityGroupId: join(`, `, SecurityGroups[].GroupId) ,Name: Tags[?Key==`Name`].Value|[0]}'\r\n----------------------------------------------------------------------------------------------------------------------------\r\n|                                                     DescribeInstances                                                    |\r\n+-------------+----------------------+--------------------+-----------+---------------+------------------------+-----------+\r\n|  GlobalIP   |     InstanceId       |       Name         | Platform  |   PrivateIp   |    SecurityGroupId     |   State   |\r\n+-------------+----------------------+--------------------+-----------+---------------+------------------------+-----------+\r\n|  xx.xx.xx.xx|  xxxxxxxxxx          |  xxxxx_tf-ec2-01   |  None     |   xx.xx.xx.xx |  xxxxxxxxxx            |  running  |\r\n+-------------+----------------------+--------------------+-----------+---------------+------------------------+-----------+\r\n\r\n<\/code><\/pre>\n<p>\u7531\u4e8e\u786e\u8ba4\u5df2\u7ecf\u6210\u529f\u5efa\u7acb\uff0c\u53ef\u4ee5\u4f7f\u7528InstanceId\u6765\u8fde\u63a5SSM\u3002<\/p>\n<pre class=\"post-pre\"><code># aws ssm start-session --target xxxxx\r\n\r\nStarting session with SessionId: xxxxx_xxxxx-xxxxx\r\n$ ls -al\r\ntotal 8\r\ndrwxr-xr-x 2 root root 4096 Apr 30 23:36 .\r\ndrwxr-xr-x 4 root root 4096 Apr 30 23:36 ..\r\n$ uname -a\r\nLinux ip-172-31-14-64 5.4.0-1045-aws #47-Ubuntu SMP Tue Apr 13 07:02:25 UTC 2021 x86_64 x86_64 x86_64 GNU\/Linux\r\n<\/code><\/pre>\n<p>\u6211\u786e\u8ba4\u6210\u529f\u5730\u8fde\u63a5\u4e86SSM\u3002<\/p>\n<h2>\u6700\u540e<\/h2>\n<p>\u8fd9\u6b21\u9a8c\u8bc1\u8fc7\u7a0b\u4e2d\uff0c\u6211\u4eec\u5728\u6ca1\u6709\u8bbf\u95eeManagement Console\u7684\u60c5\u51b5\u4e0b\u5b8c\u6210\u4e86\u642d\u5efa\u5de5\u4f5c\u3002<br \/>\n\u5f53\u7136\uff0c\u5728\u5b8c\u6210\u642d\u5efa\u9a8c\u8bc1\u540e\uff0c\u6211\u4eec\u6267\u884c\u4e86terraform destroy\u547d\u4ee4\uff0c\u9500\u6bc1\u4e86\u73af\u5883\u3002<\/p>\n<p>\u6211\u611f\u5230\u5f88\u9ad8\u5174\u80fd\u591f\u5229\u7528\u4e4b\u524d\u4f7f\u7528\u8fc7\u7684Terraform\u5de5\u5177\u8fdb\u884c\u4fee\u6539\uff0c\u5c06\u5176\u5e94\u7528\u4e8e\u672c\u6b21\u9a8c\u8bc1\uff0c\u5e76\u4e14\u80fd\u591f\u4e3a\u4eca\u540e\u7684\u53d1\u5c55\u63d0\u4f9b\u53ef\u80fd\u6027\u3002<\/p>\n<p>\u6211\u5011\u6b63\u5728\u8207\u540c\u4f34\u4e00\u8d77\u9032\u884cCICD\u74b0\u5883\u7684\u69cb\u5efa\u3002\u6211\u5011\u6b63\u8003\u616e\u5c07\u672c\u6b21\u9a57\u8b49\u7684Terraform\u96c6\u6210\u5230CICD\u4e2d\uff0c\u4ee5\u4fbf\u5728CICD\u6d41\u7a0b\u4e2d\u9032\u884cAWS\u74b0\u5883\u7684\u69cb\u5efa\u3002<\/p>\n<p>\u6211\u4eec\u8ba1\u5212\u7ee7\u7eed\u8fdb\u884c\u4e00\u9879\u80fd\u591f\u8ba9\u6210\u5458\u4eec\u9010\u6e10\u63d0\u5347\u6280\u80fd\u7684\u6d3b\u52a8\uff0c\u5c31\u662f\u4ece\u5c0f\u4e8b\u505a\u8d77\uff0c\u4e00\u8fb9\u8fdb\u884c\u8ba8\u8bba\uff0c\u5171\u4eab\u5f7c\u6b64\u7684\u9a8c\u8bc1\u7ed3\u679c\uff0c\u4e00\u8fb9\u5b9e\u9645\u52a8\u624b\u3001\u9a8c\u8bc1\u548c\u4f53\u9a8c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u80cc\u666f &#8211; context \u4e0a\u6b21\uff0c\u6211\u7b2c\u4e00\u6b21\u4f7f\u7528Terraform\u6210\u529f\u5730\u5728AWS EC2\u4e0a\u6784\u5efa\u4e86\u4e00\u4e2a\u5b9e [&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-49070","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>\u901a\u8fc7SSM\u8bbf\u95eeEC2 - 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\/\u901a\u8fc7ssm\u8bbf\u95eeec2\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u901a\u8fc7SSM\u8bbf\u95eeEC2\" \/>\n<meta property=\"og:description\" content=\"\u80cc\u666f &#8211; context \u4e0a\u6b21\uff0c\u6211\u7b2c\u4e00\u6b21\u4f7f\u7528Terraform\u6210\u529f\u5730\u5728AWS EC2\u4e0a\u6784\u5efa\u4e86\u4e00\u4e2a\u5b9e [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u901a\u8fc7ssm\u8bbf\u95eeec2\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-22T20:13:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-15T04:48:00+00:00\" \/>\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=\"2 \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%80%9a%e8%bf%87ssm%e8%ae%bf%e9%97%aeec2\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e9%80%9a%e8%bf%87ssm%e8%ae%bf%e9%97%aeec2\/\",\"name\":\"\u901a\u8fc7SSM\u8bbf\u95eeEC2 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-07-22T20:13:32+00:00\",\"dateModified\":\"2024-01-15T04:48:00+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e9%80%9a%e8%bf%87ssm%e8%ae%bf%e9%97%aeec2\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e9%80%9a%e8%bf%87ssm%e8%ae%bf%e9%97%aeec2\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e9%80%9a%e8%bf%87ssm%e8%ae%bf%e9%97%aeec2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u901a\u8fc7SSM\u8bbf\u95eeEC2\"}]},{\"@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%80%9a%e8%bf%87ssm%e8%ae%bf%e9%97%aeec2\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u901a\u8fc7SSM\u8bbf\u95eeEC2 - 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\/\u901a\u8fc7ssm\u8bbf\u95eeec2\/","og_locale":"zh_CN","og_type":"article","og_title":"\u901a\u8fc7SSM\u8bbf\u95eeEC2","og_description":"\u80cc\u666f &#8211; context \u4e0a\u6b21\uff0c\u6211\u7b2c\u4e00\u6b21\u4f7f\u7528Terraform\u6210\u529f\u5730\u5728AWS EC2\u4e0a\u6784\u5efa\u4e86\u4e00\u4e2a\u5b9e [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u901a\u8fc7ssm\u8bbf\u95eeec2\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-07-22T20:13:32+00:00","article_modified_time":"2024-01-15T04:48:00+00:00","author":"\u5b87, \u534e","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u5b87, \u534e","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e9%80%9a%e8%bf%87ssm%e8%ae%bf%e9%97%aeec2\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e9%80%9a%e8%bf%87ssm%e8%ae%bf%e9%97%aeec2\/","name":"\u901a\u8fc7SSM\u8bbf\u95eeEC2 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-07-22T20:13:32+00:00","dateModified":"2024-01-15T04:48:00+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e9%80%9a%e8%bf%87ssm%e8%ae%bf%e9%97%aeec2\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e9%80%9a%e8%bf%87ssm%e8%ae%bf%e9%97%aeec2\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e9%80%9a%e8%bf%87ssm%e8%ae%bf%e9%97%aeec2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u901a\u8fc7SSM\u8bbf\u95eeEC2"}]},{"@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%80%9a%e8%bf%87ssm%e8%ae%bf%e9%97%aeec2\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/49070","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=49070"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/49070\/revisions"}],"predecessor-version":[{"id":59604,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/49070\/revisions\/59604"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=49070"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=49070"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=49070"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}