amazon-web-services - AWS : Difference between User data and Metadata tags when creating EC2 instance

标签 amazon-web-services amazon-ec2 metadata ec2-userdata ec2-metadata

Amazon EC2 实例可以使用“用户数据”(一个长字符串)或元数据标签(一些键/值对)创建。

它们之间有什么区别?为什么这两个系统并行存在?

特别是,我希望在启动时将某些自定义数据(即连接字符串和两个资源 URL)传递给 EC2 机器,以便它可以自行配置。大概这些最好作为三个键/值对发送?

最佳答案

根据 this文档页面、亚马逊提供的元数据和用户指定的用户数据:

Amazon EC2 instances can access instance-specific metadata as well as data supplied when launching the instances.

You can use this data to build more generic AMIs that can be modified by configuration files supplied at launch time. For example, if you run web servers for various small businesses, they can all use the same AMI and retrieve their content from the Amazon S3 bucket you specify at launch. To add a new customer at any time, simply create a bucket for the customer, add their content, and launch your AMI.

关于amazon-web-services - AWS : Difference between User data and Metadata tags when creating EC2 instance,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12820275/

相关文章:

docker - Docker(Spotify)API-无法连接到Docker

database - Schemaspy 与敏感数据一起使用是否安全?

metadata - OpenText 内容服务器搜索 API : Retrieve a file's category data via URL link in XMLformat?

amazon-web-services - Docker Swarm关于AWS Cloudformation的说明

node.js - 如何在并发 AWS lambda 函数中管理 Postgres 连接?

JavaScript 无法在我的服务器上运行

Javascript:在没有 Sum 的情况下添加数字?

linux - 无法在 Amazon Linux 实例上运行后台进程,但在 MAC OS X 上运行

metadata - 什么是最好的/非常好的元数据阅读器库?

python - 在哪里实例化 boto s3 客户端以便在请求期间重用它?