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