mirror of https://github.com/docker/docs.git
change sign to ver 4 to support newer regions
Signed-off-by: Simon Thulbourn <simon+github@thulbourn.com>
This commit is contained in:
parent
c2f1fea9dc
commit
1d958f5b63
|
|
@ -149,7 +149,8 @@ func (e *EC2) awsApiCall(v url.Values) (http.Response, error) {
|
||||||
return http.Response{}, fmt.Errorf("error creating request from client")
|
return http.Response{}, fmt.Errorf("error creating request from client")
|
||||||
}
|
}
|
||||||
req.Header.Add("Content-type", "application/json")
|
req.Header.Add("Content-type", "application/json")
|
||||||
awsauth.Sign(req, awsauth.Credentials{
|
|
||||||
|
awsauth.Sign4(req, awsauth.Credentials{
|
||||||
AccessKeyID: e.Auth.AccessKey,
|
AccessKeyID: e.Auth.AccessKey,
|
||||||
SecretAccessKey: e.Auth.SecretKey,
|
SecretAccessKey: e.Auth.SecretKey,
|
||||||
SecurityToken: e.Auth.SessionToken,
|
SecurityToken: e.Auth.SessionToken,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue