change sign to ver 4 to support newer regions

Signed-off-by: Simon Thulbourn <simon+github@thulbourn.com>
This commit is contained in:
Simon Thulbourn 2015-01-14 22:42:01 +00:00
parent c2f1fea9dc
commit 1d958f5b63
1 changed files with 2 additions and 1 deletions

View File

@ -149,7 +149,8 @@ func (e *EC2) awsApiCall(v url.Values) (http.Response, error) {
return http.Response{}, fmt.Errorf("error creating request from client")
}
req.Header.Add("Content-type", "application/json")
awsauth.Sign(req, awsauth.Credentials{
awsauth.Sign4(req, awsauth.Credentials{
AccessKeyID: e.Auth.AccessKey,
SecretAccessKey: e.Auth.SecretKey,
SecurityToken: e.Auth.SessionToken,