简体   繁体   English

AWS 调整实例体积给出 UnauthorizedOperation

[英]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.

相关问题 AWS EBS CSI 驱动程序:无法删除卷 ID“vol-XXX”:DeleteDisk 无法删除卷:UnauthorizedOperation - AWS EBS CSI Driver: Could not delete volume ID "vol-XXX": DeleteDisk could not delete volume: UnauthorizedOperation 启动源实例时出错:UnauthorizedOperation:您无权执行此操作 - Error launching source instance: UnauthorizedOperation: You are not authorized to perform this operation AWS Python SDK - 保证EBS卷和EC实例在同一个可用区 - AWS Python SDK - guarantee that EBS volume and EC instance are in the same availability zone 如何使用 AWS CDK 将 EC2 卷附加到 EC2 实例 - How to attach an EC2 volume to an EC2 instance using AWS CDK AWS EC2:如何将设置更改为“实例终止后保持音量”? - AWS EC2: how to change setting to be "keep volume after instance termination"? 为 AWS Batch 安装卷 - Mounting a volume for AWS Batch AWS EC2 EBS 卷映射 - 如何识别主机上的卷 - AWS EC2 EBS Volume mapping - how to identify volume on host 调用 DescribeLaunchTemplates 操作时发生错误(UnauthorizedOperation)? - An error occurred (UnauthorizedOperation) when calling the DescribeLaunchTemplates operation? 无法在已安装的卷 aws efs 上写入文件 - Cannot write files on mounted volume aws efs AWS Spot 实例限制 - AWS Spot Instance Limit
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM