从aws访问外部数据的好方法是什么
我想从我的 aws ec2 实例访问外部数据。
更详细地说:我想在 user-data 内部指定包含大约 2M 二进制数据的文件夹的名称。当我的 aws 实例启动时,我希望它下载该文件夹中的文件并将它们复制到本地磁盘上的特定位置。我只需要在启动时访问数据一次。
我不想将数据存储在 S3 中,因为据我了解,这需要将我的 aws 凭证存储在实例本身上,或者将它们作为用户数据传递,这也是一个安全风险。如果我在这里错了,请纠正我。
我正在寻找一种既安全又高度可靠的解决方案。
I would like to access external data from my aws ec2 instance.
In more detail: I would like to specify inside by user-data the name of a folder containing about 2M of binary data. When my aws instance starts up, I would like it to download the files in that folder and copy them to a specific location on the local disk. I only need to access the data once, at startup.
I don't want to store the data in S3 because, as I understand it, this would require storing my aws credentials on the instance itself, or passing them as userdata which is also a security risk. Please correct me if I am wrong here.
I am looking for a solution that is both secure and highly reliable.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您运行哪种操作系统?
您可以使用弹性块存储。它就像一个可以在启动时安装的设备(无需凭据),并且在那里有永久存储。
which operating system do you run ?
you can use an elastic block storage. it's like a device you can mount at boot (without credentials) and you have permanent storage there.
您还可以使用 Gluster 文件系统之类的东西来同步实例。请参阅此线程。
You can also sync up instances using something like Gluster filesystem. See this thread on it.