[英]AWS resize volume of instance gives UnauthorizedOperation
I started an AWS instance of an Ubuntu 18.04 Server via the CLI from my Linux machine.我从我的 Linux 机器上通过 CLI 启动了一个 Ubuntu 18.04 服务器的 AWS 实例。 That worked.
那奏效了。 However, I wanted to increase the size of the volume from the standard of 8gb to 100gb with the command
但是,我想使用命令将卷的大小从标准的 8gb 增加到 100gb
aws ec2 modify-volume --volume-id "vol-XXXXXXXX" --size 100
However, this returns an "UnauthorizedOperation"-error.但是,这会返回“UnauthorizedOperation”错误。
I already tried to do it manually via the console, but there it didn't work as well.我已经尝试通过控制台手动执行此操作,但效果不佳。 But I could create a new volume of size 100 gb.
但我可以创建一个大小为 100 GB 的新卷。 I have enough credits, since I'm using the Education Starter Account with 100 credits left.
我有足够的学分,因为我使用的是 Education Starter Account,还剩 100 个学分。
I also checked my SecurityGroup, but the only rules I applied where for.network protocols.我还检查了我的安全组,但我应用的唯一规则是网络协议。
Why am I not authorized and how do I change this?为什么我没有被授权,我该如何更改?
The "UnauthorizedOperation" error indicates that permissions attached to the IAM role or user trying to perform the operation does not have the required permissions. “UnauthorizedOperation”错误表示附加到 IAM 角色的权限或尝试执行该操作的用户没有所需的权限。
You can gain more detail by decoding error message from CLI.您可以通过解码来自 CLI 的错误消息来获得更多详细信息。 https://awscli.amazonaws.com/v2/documentation/api/latest/reference/sts/decode-authorization-message.html
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/sts/decode-authorization-message.html
The solution is simple and disappointing.解决方案简单而令人失望。 Vocareum limits possible operations, also, you don't have root access.
Vocareum 限制了可能的操作,而且,您没有 root 访问权限。 Therefore, some operations are restricted and not executable.
因此,有些操作是受限的,不可执行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.