我试过以下命令
ec2-authorize default -P icmp -t -1:-1 -o 'Monitoring Servers'
我已经使用 ec2-describe-security-groups 验证了它是一个组
"GroupName": "Monitoring Servers",
"UserId": "WITHHELD",
"GroupId": "WITHHELD"
我尝试了此命令的以下排列:
ec2-authorize default -P icmp -t -1:-1 --region us-east-1 -o "Monitoring Servers"
ec2-authorize default -P icmp -t -1:-1 --region us-east-1 -o 'Monitoring Servers' -u WITHHELD
我仍然得到同样的错误:
Client.InvalidGroup.NotFound: Unable to find group 'Monitoring Servers'