Encrypt
kms.encrypt
ActionAmazon Web Servicesconnection required
Calls the AWS kms API (SigV4).
Encrypt a string under a KMS key.
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, 2 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 | — | — | — |
plaintext Text to encrypt. | string | Yes | — | — | — |
Output
One shape.
result
| Field | Type | Example |
|---|---|---|
key_id | string | — |
ciphertext_b64 | string | — |
{
"ciphertext_b64": "",
"key_id": ""
}Related AWS KMS nodes
See Encrypt 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.