[英]getting some difficulty to populate all servers from all regions with fog
[英]Getting the list of aws regions
我试图在下拉列表中填充aws区域,我也跟着这个问题,但我一直得到错误
[AWS EC2 403 1.950727 0 retries] describe_regions() AWS::EC2::Errors::UnauthorizedOperation You are not authorized to perform this operation.
AWS::EC2::Errors::UnauthorizedOperation: You are not authorized to perform this operation.
我有正确的访问密钥,但我不知道为什么会这样。
这是需要添加的策略,您可以访问描述ec2实例的区域。 在AWS IAM中创建此自定义策略(Root用户或AWS控制台管理员将能够执行此操作)。
{
"Version": "2012-10-17",
"Statement": [{
"Effect": "Allow",
"Action": "ec2:Describe*",
"Resource": "*"
}]
}
根据错误消息判断,您需要做的就是确保拥有该密钥的IAM用户可以访问ec2:: DescribeRegions
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.