Skip to main content
client.kms.create_key() creates an encryption key in a KMS project. The key stays in Infisical, so your application never holds it.

Parameters

str
required
The name of the key, in lowercase letters, numbers, and hyphens.
str
required
The ID of the KMS project.
SymmetricEncryption
required
SymmetricEncryption.AES_GCM_256 or SymmetricEncryption.AES_GCM_128.
str
A description of the key.

Returns

KmsKey
The new key, with its id, which the other KMS methods take as key_id.