Skip to main content

Create encryption key configuration

Applies only to Bring Your Own Cloud warehouses.
AWS
POST/v1/cloud-settings/{cloudProvider}/encryption-keysTry it
View request and response examples ↓

Creates a reusable AWS KMS key configuration for advanced BYOC provisioning. The KMS key region is derived from keyArn. Set at least one of useTde or useEbs to 1.

Use the returned encryptionKeyId as tdeEncryptionKeyId, ebsEncryptionKeyId, or both when calling POST /v1/warehouses. The KMS key policy must grant the roles in the selected credential configuration the permissions required for the selected encryption purposes.

Authorization

X-API-Keystring · headerrequired

API key for /v1 requests.

Path parameters

cloudProviderstringrequired

Cloud provider identifier. Encryption key configurations currently support aws only.

Allowed valuesaws
Exampleaws

Headers

RequestIdstringrequired

Idempotency key for write requests.

Use a globally unique UUID or similar token for each logical write request. Never reuse a RequestId across different operations or payloads. You can safely retry the same RequestId only when the method, path, path parameters, query string, and request body are identical.

Minimum length1
Example8f6b0c2e-6a9a-4f2e-9c4c-0a1f9a2b7d31

Request body

application/jsonrequired

At least one of useTde or useEbs must be set to 1.

namestringrequired

Display name for the encryption key configuration. The name must be unique within the authenticated organization.

Exampleanalytics-encryption-key
keyArnstringrequired

ARN of a customer-managed AWS KMS key. The service derives the encryption key configuration region from this ARN.

Pattern^arn:aws:kms:[a-z0-9-]+:[0-9]{12}:key/[A-Za-z0-9_-]+$
Examplearn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
useTdeinteger

Set to 1 to allow this key to be used for transparent data encryption (TDE). Defaults to 0 when omitted.

Allowed values01
Default0
Example1
useEbsinteger

Set to 1 to allow this key to be used for EBS volume encryption. Defaults to 0 when omitted.

Allowed values01
Default0
Example1

Response

Encryption key configuration created successfully.

application/json
successbooleanrequired

Indicates whether the request succeeded.

Exampletrue
requestIdstringrequired

Request ID returned by the server for tracing.

Examplereq-20260402-001
dataobjectrequired
Child fields
encryptionKeyIdinteger · int64required

Newly created encryption key configuration ID.

Example824347710726149

Enter to send · Shift+Enter for a new line