Error when trying to create a destination for bulk export

When calling the API endpoint to create a bulk export according to the docs I get an error: “detail”: “Failed to validate S3 destination: Access Denied”. I confirmed that when using the same AWS credentials on my local machine I can succesfully connect to the bucket and get / upload files.

curl --request POST \
  --url 'https://eu.api.smith.langchain.com/api/v1/bulk-exports/destinations' \
  --header 'Content-Type: application/json' \
  --header "X-API-Key: ${LANGSMITH_API_KEY}" \
  --header "X-Tenant-Id: ${LANGSMITH_TENANT_ID}" \
  --data '{
    "destination_type": "s3",
    "display_name": "Funnel Chat Prod History Export",
    "config": {
      "bucket_name": "prod-langsmith-history.insify.io",
      "prefix": "traces",
      "region": "eu-west-1"
    },
    "credentials": {
      "access_key_id": "***",
      "secret_access_key": "***"
    }
  }'

I’m hoping to get in touch with someone from langsmith to help me out.

Thanks,

Ralph

Please try the solution in Cannot create S3 bulk export destination - KMS GenerateDataKey error - #2 by ramon

Hey Ramon, thanks for your reply, this worked! I see the docs have been updated as well :+1:

1 Like

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.