Skip to main content

S3

Before creating a catalog or running a load or export job, ensure that the warehouse can reach the service endpoint and that its credentials have the required metadata and data permissions. For private endpoints or service-side credential files, coordinate connectivity and provisioning with VeloDB Cloud support.

This document describes the parameters required for accessing AWS S3. These parameters apply to:

  • Catalog properties.
  • Table Valued Function properties.
  • Broker Load properties.
  • Export properties.
  • Outfile properties.

Configure HTTPS certificate trust​

VeloDB Cloud manages the CA certificate bundle used by the query engine. For a service using a private CA, a self-signed certificate, or a gateway that re-signs TLS traffic, contact VeloDB Cloud support to configure trust for the warehouse.

If access to S3 fails with Problem with the SSL CA cert or curl 77, provide the endpoint, certificate chain, and error text to support. Certificate-file configuration such as ca_cert_file_paths is a service setting; warehouse users do not edit be.conf, install operating-system packages, or restart backend nodes.

Parameters​

Property NameLegacy NameDescriptionDefaultRequired
s3.endpointS3 service access endpoint, e.g., s3.us-east-1.amazonaws.comNoneNo
s3.access_keyAWS Access Key for authenticationNoneNo
s3.secret_keyAWS Secret Key for authenticationNoneNo
s3.regionS3 region, e.g., us-east-1. Strongly recommendedNoneYes
s3.use_path_styleWhether to use path-style accessFALSENo
s3.connection.maximumMaximum number of connections for high concurrency scenarios50No
s3.connection.request.timeoutRequest timeout (milliseconds), controls connection acquisition timeout3000No
s3.connection.timeoutConnection establishment timeout (milliseconds)1000No
s3.role_arnRole ARN specified when using Assume Role modeNoneNo
s3.external_idExternal ID used with s3.role_arnNoneNo
s3.credentials_provider_typeCredentials provider type for AWS authentication (used without AK/SK; used as STS source credentials in IAM Role mode)DEFAULTNo

The credential-provider settings below are engine properties. Providers that depend on instance roles, pod identity, environment variables, or token files require the corresponding identity to be provisioned for the warehouse by VeloDB Cloud support.

Configure authentication​

VeloDB Cloud supports the following three methods to access S3:

1. Use access keys​

"s3.access_key"="your-access-key",
"s3.secret_key"="your-secret-key",
"s3.endpoint"="https://s3.us-east-1.amazonaws.com",
"s3.region"="us-east-1"

2. Assume an IAM role​

Suitable for cross-account and temporary authorization access. VeloDB Cloud automatically obtains temporary credentials through role authorization.

"s3.role_arn"="arn:aws:iam::<account-id>:role/<role-name>",
"s3.external_id"="external-identifier",
"s3.endpoint"="https://s3.us-east-1.amazonaws.com",
"s3.region"="us-east-1"

Configure s3.credentials_provider_type in IAM Role mode​

When s3.role_arn is configured, s3.credentials_provider_type controls which source credentials provider is used for STS AssumeRole:

  1. Get source credentials from s3.credentials_provider_type.
  2. Call STS AssumeRole with source credentials.
  3. Access S3 with the returned temporary credentials.

IAM Role + s3.credentials_provider_type examples​

Example 1: EC2 Instance Profile as STS source credentials

"s3.role_arn"="arn:aws:iam::<account-id>:role/<role-name>",
"s3.external_id"="external-identifier",
"s3.credentials_provider_type"="INSTANCE_PROFILE",
"s3.endpoint"="https://s3.us-east-1.amazonaws.com",
"s3.region"="us-east-1"

Example 2: Web Identity (for example IRSA) as STS source credentials

"s3.role_arn"="arn:aws:iam::<account-id>:role/<role-name>",
"s3.credentials_provider_type"="WEB_IDENTITY",
"s3.endpoint"="https://s3.us-east-1.amazonaws.com",
"s3.region"="us-east-1"

Example 3: Container metadata as STS source credentials

"s3.role_arn"="arn:aws:iam::<account-id>:role/<role-name>",
"s3.credentials_provider_type"="CONTAINER",
"s3.endpoint"="https://s3.us-east-1.amazonaws.com",
"s3.region"="us-east-1"

Example 4: Default provider chain as STS source credentials

"s3.role_arn"="arn:aws:iam::<account-id>:role/<role-name>",
"s3.credentials_provider_type"="DEFAULT",
"s3.endpoint"="https://s3.us-east-1.amazonaws.com",
"s3.region"="us-east-1"

3. Select a credential source​

This is suitable for scenarios without explicit AK/SK, such as EC2 Instance Profile, container metadata, or Web Identity.

"s3.credentials_provider_type"="INSTANCE_PROFILE",
"s3.endpoint"="https://s3.us-east-1.amazonaws.com",
"s3.region"="us-east-1"

Supported values for s3.credentials_provider_type​

ValueDescription
DEFAULTUse default provider chain
ENVRead credentials from environment variables
SYSTEM_PROPERTIESRead credentials from system properties
WEB_IDENTITYUse Web Identity Token credentials
CONTAINERUse container metadata credentials
INSTANCE_PROFILEUse EC2 Instance Profile credentials
ANONYMOUSAnonymous access (for public buckets)

Effective rules when configured together​

  1. If s3.access_key and s3.secret_key are both configured, AK/SK is used first.
  2. If AK/SK is not configured and s3.role_arn is configured, IAM Role is used. In this case, s3.credentials_provider_type is used to select STS source credentials.
  3. If neither AK/SK nor s3.role_arn is configured, s3.credentials_provider_type directly determines the credentials provider used by the S3 client.

Note:

s3.access_key and s3.secret_key must be configured together.

Grant only the permissions required by the operation. See the policies below for data access; warehouse-managed IAM identities require coordination with VeloDB Cloud support.

EKS Pod Identity in a future release​

In a future release, backend storage-access paths are planned to support the EKS Pod Identity container credential endpoint and authorization token file. This requires service-side provisioning: EKS must inject AWS_CONTAINER_CREDENTIALS_FULL_URI and AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE into the Pod, and the VeloDB Cloud process must be able to reach the endpoint and read the token file. When using the container credential provider (s3.credentials_provider_type=CONTAINER, or a default chain that selects it), do not also configure higher-priority AK/SK credentials.

The planned provider rereads the token file when fetching credentials to support token rotation. The ECS-compatible AWS_CONTAINER_CREDENTIALS_RELATIVE_URI and AWS_CONTAINER_AUTHORIZATION_TOKEN remain supported. If both relative and full URIs are present, the relative URI takes precedence. This change does not replace the FE's separate Java credential configuration; verify FE and BE access independently.

Access an S3 directory bucket​

.

Amazon S3 Express One Zone (also known as Directory Bucket) uses a different endpoint format from a general-purpose bucket. Check regional availability and request costs in the AWS documentation.

  • Regular bucket: s3.us-east-1.amazonaws.com
  • Directory Bucket: s3express-usw2-az1.us-west-2.amazonaws.com

For more available regions, refer to: AWS Official Documentation

Example:

"s3.access_key"="ak",
"s3.secret_key"="sk",
"s3.endpoint"="https://s3express-usw2-az1.us-west-2.amazonaws.com",
"s3.region"="us-west-2"

Permission policies​

Depending on the use case, permissions can be categorized into read-only and read-write policies.

1. Read-only permissions​

Only allows reading objects from S3. Suitable for LOAD, TVF, querying EXTERNAL CATALOG, and other scenarios.

{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:GetObject",
"s3:GetObjectVersion"
],
"Resource": "arn:aws:s3:::<your-bucket>/your-prefix/*"
},
{
"Effect": "Allow",
"Action": [
"s3:ListBucket",
"s3:GetBucketLocation"
],
"Resource": "arn:aws:s3:::<your-bucket>"
}
]
}

2. Read-write permissions​

Based on read-only permissions, additionally allows deleting, creating, and modifying objects. Suitable for EXPORT, OUTFILE, and EXTERNAL CATALOG write-back scenarios.

{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:GetObject",
"s3:GetObjectVersion",
"s3:DeleteObject",
"s3:DeleteObjectVersion",
"s3:AbortMultipartUpload",
"s3:ListMultipartUploadParts"
],
"Resource": "arn:aws:s3:::<your-bucket>/<your-prefix>/*"
},
{
"Effect": "Allow",
"Action": [
"s3:ListBucket",
"s3:GetBucketLocation",
"s3:GetBucketVersioning",
"s3:GetLifecycleConfiguration"
],
"Resource": "arn:aws:s3:::<your-bucket>"
}
]
}

Notes​

  1. Placeholder Replacement

    • <bucket> → Your S3 Bucket name.
    • <account-id> → Your AWS account ID (12-digit number).
  2. Principle of Least Privilege

    • If only querying, do not grant write permissions.

Common errors​

For access-denied errors, check the identity and its permissions for both metadata and data. For timeouts, verify the service endpoint and network path from the warehouse. For errors involving a keytab, CA certificate, Hadoop XML file, or JDBC driver, contact VeloDB Cloud support with the error text and the operation that failed.

Ask AI