Merge pull request #284 from sthulb/fix-sec-group

change sign to ver 4 to support newer regions
This commit is contained in:
Evan Hazlett 2015-01-15 09:05:31 -05:00
commit 55c3562795
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,