AWS无法在新添加的区域上验证提供的访问凭据

时间:2016-06-17 04:30:10

标签: java amazon-web-services

在重新启动aws的所有区域的vpcpeeringconnection时,新增加的区域ap-northeast-2和eu-central-1上的“AWS无法验证提供的访问凭据”。其他地区工作正常。

调试结果-------------

    START Discovering region: ap-southeast-2 
    retrieving the VPC peering connections 
    Creating ComputerSystems and Rules for the VPC 'vpc-eac32a8f' 
    The VPC 'vpc-eac32a8f' does not contain any instance hence not creating anything. 
    END Discovering region: ap-southeast-2 
    START Discovering region: eu-central-1 
    retrieving the VPC peering connections 
    AWS problem during 'autodetect' all regions - Problem with the region: eu-central-1.
    com.amazonaws.AmazonServiceException: AWS was not able to validate the provided access credentials (Service: AmazonEC2; Status Code: 401; Error Code: AuthFailure; Request ID: 14e0a60f-8605-4a59-8fd2-8433480f43bf) 
    END Discovering region: eu-central-1 
    START Discovering region: ap-northeast-2 
    retrieving the VPC peering connections 
    AWS problem during 'autodetect' all regions - Problem with the region: ap-northeast-2.
   com.amazonaws.AmazonServiceException: AWS was not able to validate  the provided access credentials (Service: AmazonEC2; Status Code: 401; Error Code: AuthFailure; Request ID: ac03b6a6-1746-4cc3-b12a-d6693079acd4) 
    END Discovering region: ap-northeast-2 
    START Discovering region: ap-northeast-1 
    retrieving the VPC peering connections 
    Creating ComputerSystems and Rules for the VPC 'vpc-f9b65c9c' 
    END Discovering region: ap-northeast-1 

我无法找到解决方案。

1 个答案:

答案 0 :(得分:0)

问题在于:

'choice_label' => function($news) {
    $article = $news->getNewsArticle()->filter(function (NewsArticle $article) use ($searchedLanguage) {
        return $this->getLanguageId() === $searchedLanguage;
    });

    return $article->getHeadline();
},

2014年或之后最初投入使用的地区不支持签名版本2,目前包括ap-northeast-2和eu-central-1以及中国。

所有地区都支持签名版本4,而较新的地区仅支持支持V4。

http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html

另见The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256