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.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
region AWS region (overrides the connection). | string | No | — | — | — |
key_id Key id, alias or ARN. | string | Yes | — | — | — |
key_spec AES_256 or AES_128. | string | No | — | — | — |
Output
One shape.
result
| Field | Type | Example |
|---|---|---|
key_id | string | — |
plaintext_b64 | string | — |
ciphertext_b64 | string | — |
{
"ciphertext_b64": "",
"key_id": "",
"plaintext_b64": ""
}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.