Skip to main content
Skip to main content

Cloud Service Authentication

Overview

When accessing a service on the cloud, we need to provide the credentials needed to access the service so that the service can be authenticated by IAM of cloud vendors.

AWS​

Now Doris support two types of authentication to access AWS service.

Catalog Credentials​

The Catalog supports filling in basic Credentials properties, such as:

  1. For S3: s3.endpoint,s3.access_key,s3.secret_key。
  2. For Glue: glue.endpoint,glue.access_key,glue.secret_key。

When access Glue though Iceberg Catalog, we can access tables on Glue by filling in the following properties:

CREATE CATALOG glue PROPERTIES (
"type"="iceberg",
"iceberg.catalog.type" = "glue",
"glue.endpoint" = "https://glue.us-east-1.amazonaws.com",
"glue.access_key" = "ak",
"glue.secret_key" = "sk"
);

System Credentials​

For applications running on AWS resources, such as EC2 instances, this approach enhances security by avoiding hardcoded credentials.

If we create the Catalog but not fill any Credentials in properties, the DefaultAWSCredentialsProviderChain will be used to read in the system environment variables or instance profile.

For details about how to configure environment variables and system properties, see: AWS CLI .

  • The configurable environment variables are: AWS_ACCESS_KEY_ID、AWS_SECRET_ACCESS_KEY、AWS_SESSION_TOKEN、AWS_ROLE_ARN、AWS_WEB_IDENTITY_TOKEN_FILE and so on.
  • In addition, you can also use aws configure to configure Credentials, the Credentials file will be written to the ~/.aws directory.