【发布时间】:2022-01-03 13:25:03
【问题描述】:
我正在尝试使用aws ec2 authorize-security-group-egress 在 ec2 实例上临时设置一个脚本(我将与 revoke 配对)打开一个指向特定 IP 的端口。但是,当我尝试运行该命令时,它告诉我用户无权执行该命令。错误消息的其余部分已加密,不幸的是aws sts decode-authorization-message 也未授权,因此我无法获得更多信息。我收集到我需要进入 Web 控制台并为用户提供特定的 IAM 角色,但我无法找到该角色。
错误消息是:An error occurred (UnauthorizedOperation) when calling the AuthorizeSecurityGroupIngress operation: You are not authorized to perform this operation. 后跟五行垃圾邮件,即消息的加密剩余部分。
【问题讨论】:
标签: amazon-web-services amazon-ec2 amazon-iam