Generate Data Key

kms.generate_data_key
ActionAmazon Web Servicesconnection required

Calls the AWS kms API (SigV4).

Derive a data key (plaintext + encrypted).

Connection

Required
Yes — the node will not save without one
Auth type
API key
Providers
AWS KMS
Secret shape
{"access_key_id", "secret_access_key"}
Config it needs
region
Resolved by
config.connection_id, else node.connection_id

Configuration

3 fields, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
region
AWS region (overrides the connection).
stringNo———
key_id
Key id, alias or ARN.
stringYes———
key_spec
AES_256 or AES_128.
stringNo———

Output

One shape.

result

FieldTypeExample
key_id
string—
plaintext_b64
string—
ciphertext_b64
string—
{
  "ciphertext_b64": "",
  "key_id": "",
  "plaintext_b64": ""
}

Related AWS KMS nodes

See Generate Data Key run in a workflow.

In a technical demo we add the AWS KMS connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.