Test Amazon S3 connection
I setup a Amazon S3 connection to a Minio server using an http endpoint and using path style option.
When i click on the TEST button , the following error appears:
Connection failed: Bad Request (Service: Amazon S3; Status Code: 400; Error Code: 400 Bad Request; Request ID: 17EC370F655CA6AA; S3 Extended Request ID: 7ce489d5d50db7f29e4b69d22e30326651db985b78b63934915c308acf08654e; Proxy: null)
A minio mc client with trace option shows this error corresponds to an incorrect bucket name __dku_test_bucket:
s3-1.s3-svc.object-store.svc.cluster.local:9000 [RESPONSE] [2024-08-16T12:30:11.887] [ Duration 139µs TTFB 109.453µs ↑ 153 B ↓ 323 B ]s3-1.s3-svc.object-store.svc.cluster.local:9000 400 Bad Requests3-1.s3-svc.object-store.svc.cluster.local:9000 Content-Length: 323s3-1.s3-svc.object-store.svc.cluster.local:9000 Content-Type: application/xmls3-1.s3-svc.object-store.svc.cluster.local:9000 Server: MinIOs3-1.s3-svc.object-store.svc.cluster.local:9000 Vary: Origins3-1.s3-svc.object-store.svc.cluster.local:9000 X-Amz-Bucket-Region: us-east-1s3-1.s3-svc.object-store.svc.cluster.local:9000 X-Content-Type-Options: nosniffs3-1.s3-svc.object-store.svc.cluster.local:9000 Accept-Ranges: bytess3-1.s3-svc.object-store.svc.cluster.local:9000 Strict-Transport-Security: max-age=31536000; includeSubDomainss3-1.s3-svc.object-store.svc.cluster.local:9000 X-Amz-Id-2: ecf92c7d7802b68331be3ffc9ea9745025427d2077398fbd4c55c11b5036f059s3-1.s3-svc.object-store.svc.cluster.local:9000 X-Amz-Request-Id: 17EC3558914BC907s3-1.s3-svc.object-store.svc.cluster.local:9000 X-Xss-Protection: 1; mode=blocks3-1.s3-svc.object-store.svc.cluster.local:9000 <?xml version="1.0" encoding="UTF-8"?><Error><Code>InvalidBucketName</Code><Message>The specified bucket is not valid.</Message><Resource>/__dku_test_bucket/</Resource><Region>us-east-1</Region><RequestId>17EC3558914BC907</RequestId><HostId>ecf92c7d7802b68331be3ffc9ea9745025427d2077398fbd4c55c11b5036f059</HostId></Error>
According to the AWS S3 bucket name convention (https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html) , the underscore in bucket name is not allowed.
How do i configure the bucket name used by the TEST button on a AWS S3 connection ?
Dataiku version 13.1.0
Minio server version RELEASE.2024-04-18T19-09-19Z
Minio mc version RELEASE.2024-08-13T05-33-17Z
Operating system used: Rocky 8
Answers
-
Turribeach Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,162 Neuron
Are you setting the Bucket and Default Bucket S3 connection properties to a valid bucket name?
-
If set the Bucket in Path Restrictions then the Default Bucket in Managed datasets & folders disappears.
Either i set the Bucket in Path Restrictions or the Default Bucket in Managed datasets & folders , the TEST button produce the same error.