如何分享快照和ami?

发布于 2024-12-09 16:38:55 字数 315 浏览 0 评论 0原文

我有 ebs 支持的实例的快照。我已经注册了它的图像。我想与其他帐户分享我的快照。共享成功,但当我尝试从中创建图像时,它显示错误(如下所示)

"Invalid snapshot snap-xxxxxx" You are not authorized.

所以,我的问题是:

  1. 如何才能成功?
  2. 我是否需要自己创建一个卷,以便创建的新映像具有一个卷?
  3. 如果我将 ami 共享给其他用户,并且其他用户从中运行一个实例。谁将为这个运行实例付费?
  4. 欢迎任何其他想法。

I have a snapshot of my ebs backed instance. I have registered an image of it. I wanted to share my snapshot with other account. Sharing was successful but when I tried to create an image from it, It showed an error (shown below)

"Invalid snapshot snap-xxxxxx" You are not authorized.

So, My questions are:

  1. How can I make it successful ?
  2. Do I need to create a volume by myself so that new image being created has a volume?
  3. If I share an ami to other user, and other user runs an instance from it. who will be paying for this running instance ?
  4. Any other ideas are welcome.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

烦人精 2024-12-16 16:38:55

几乎可以肯定,您没有像您认为的那样申请启动权限。

运行命令

ec2-describe-image-attribute ami-xxxxxxxx -l launchPermission ami-xxxxxxxx 组全部

并确保从快照生成的 AMI 具有允许其他账户启动它的启动权限。

You almost certainly did not apply the launch permission that you thought you did.

Run the command

ec2-describe-image-attribute ami-xxxxxxxx -l launchPermission ami-xxxxxxxx group all

and make sure that the AMI generated from the snapshot has launch permissions that allow the other account to launch it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文