-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
Which version of Elastic are you using?
elastic.v2 (for Elasticsearch 1.x)
Please describe the expected behavior
Successful document put into the index.
Please describe the actual behavior
Error is returned:
elastic: Error 403 (Forbidden)
Any steps to reproduce the behavior?
Setup:
creds := credentials.NewEnvCredentials()
signer := v4.NewSigner(creds)
awsClient, err := aws_signing_client.New(signer, nil, "es", "us-west-2")
if err != nil {
return nil, err
}
return elastic.NewClient(
elastic.SetURL(...),
elastic.SetScheme("https"),
elastic.SetHttpClient(awsClient),
elastic.SetSniff(false),
)
Put:
_, err = e.Client.Index().Index(indexName).Type(indexType).
Id(doc.ID).
BodyJson(doc).
Do()
Not sure if this is elastic or aws_signing_client issue.
Metadata
Metadata
Assignees
Labels
No labels