aws-es-proxy-go is the proxy for signing AWS signature v4.
- build aws-es-proxy-go
- run make build, then aws-es-proxy-go created under build dir
- Write config file. see example directory
- Configure AWS credentials: instance profile/env vars/credential files
- run
./build/run -config config.json
If config is followings:
{
"list_path": "/_list",
"server_map": {
"/id001": {
"region": "us-west-2",
"host": "id001-foo.us-west-2.es.amazonaws.com"
},
"/id002": {
"region": "us-west-2",
"host": "id002-bar.us-west-2.es.amazonaws.com"
}
}
}
- The request
http://{this_proxy}/id001/foo/bar
transfer tohttps://id001-foo.us-west-2.es.amazonaws.com/foo/bar
, and the request signed by sigv4. - The request
http://{this_proxy}/_list
return endpoint list.