TypeScript: @dnsid-ai/key-aws
AWS KMS-backed DNSid KeyProvider.
Private keys stay in AWS KMS. This package fetches public keys, exposes them as DNSid JWKs, signs through KMS, and manages active/pending/retained key state.
Install
Section titled “Install”npm install @dnsid-ai/key-aws @dnsid-ai/protocol @aws-sdk/client-kmsimport { KMSClient } from '@aws-sdk/client-kms';import { AwsKmsKeyProvider, AwsSdkKmsFacade } from '@dnsid-ai/key-aws';
const state = { activeKeyId: 'alias/dnsid-current', retainedKeyIds: [], pendingKeyIds: [],};
const provider = await AwsKmsKeyProvider.load( new AwsSdkKmsFacade(new KMSClient({ region: 'us-east-1' })), { state, algorithm: 'ECDSA_SHA_256', keySpec: 'ECC_NIST_P256', },);
const signature = await provider.sign(new TextEncoder().encode('payload'));const jwk = await provider.signingKey();For an existing active provider, persist provider.stateSnapshot() after
generateKey(), activate(), or supersede(). The package mutates the supplied
state object, but persistence is the caller’s job.
First-key create() is different: persist the returned immutable keyRef and
public-key binding in application-owned durable storage before activation. Its
pending-only snapshot has no active key ID and cannot be reopened with
load({ state }). If restarting with only the handed-off reference, deliberately
select it with load({ activeKeyId: savedKeyRef, ... }); prior local activation
is not required, and the reopened key is locally active. Do not discard saved
provider or managed-rotation state to use this reference-only path. Local
signing eligibility does not establish publication or protocol identity status.
For first-key creation, explicitly call AwsKmsKeyProvider.create; no existing
key is required. See the
KMS-first setup guide
for pending-key activation, canonical ARN handoff, publication boundaries, and
failure recovery. Subsequent startup must reopen the saved key with load,
never recreate it; normal configuration remains open-only.
SDK configuration
Section titled “SDK configuration”The Node SDK lazily selects this optional package for keySource.provider: "aws-kms".
Use an existing keyRef and non-secret settings with optional region and
algorithm (EdDSA, the default, or ES256). Authentication uses ambient AWS credentials;
raw secrets are rejected. createAwsKmsKeyProvider(keyRef, settings) provides the same factory
for explicit composition.
Configuration-driven cloud generation is not supported: use an existing stable reference because KMS creation lacks atomic named create-or-recover. The SDK configuration constructor checks the resolved key against verified publication before returning a signing manager. Changing an alias to another key requires authorized rotation and updated publication. The standalone factory only opens the key; its caller owns identity binding checks.
AWS Ed25519 multi-Region keys
Section titled “AWS Ed25519 multi-Region keys”AWS documents asymmetric multi-Region keys and Ed25519 signing. This is a vendor-documented setup pattern, not live-service verification or a promise that every account/region supports the combination. Check current service availability, CLI support and organization policies before provisioning; stop on an unsupported combination rather than substituting another algorithm.
Provision outside application startup, using a separately authorized operator. For example, in one account and AWS partition (shell variables below are operator inputs/output, not SDK environment settings):
set -euprimary_region=us-east-1replica_region=us-west-2primary_arn=$(aws kms create-key --region "$primary_region" \ --multi-region --key-spec ECC_NIST_EDWARDS25519 --key-usage SIGN_VERIFY \ --query KeyMetadata.Arn --output text)replica_arn=$(aws kms replicate-key --region "$primary_region" \ --key-id "$primary_arn" --replica-region "$replica_region" \ --query ReplicaKeyMetadata.Arn --output text)aws kms describe-key --region "$primary_region" --key-id "$primary_arn"aws kms describe-key --region "$replica_region" --key-id "$replica_arn"Save the exact returned ARNs. Confirm MultiRegionConfiguration links the two
keys, KeySpec is ECC_NIST_EDWARDS25519, KeyUsage is SIGN_VERIFY, and both
keys are enabled before use. Set a finite readiness deadline and RPC timeouts;
if a key is still creating, recheck within that budget, not in an endless loop.
Do not blindly repeat creation after a lost response. Runtime principals need
kms:GetPublicKey and kms:Sign on each regional key; replication/provisioning
permissions belong to the operator, not ordinary startup.
For standalone cryptographic use, open two independent providers with
different immutable regional key ARNs and matching regions, explicitly
selecting EdDSA. The JSON below shows each regional key source, not a complete
shared-identity deployment. Replace the illustrative account/key IDs with the
returned ARNs:
{"keySource":{"provider":"aws-kms","keyRef":"arn:aws:kms:us-east-1:123456789012:key/mrk-0123456789abcdef0123456789abcdef","settings":{"region":"us-east-1","algorithm":"EdDSA"}}}{"keySource":{"provider":"aws-kms","keyRef":"arn:aws:kms:us-west-2:123456789012:key/mrk-0123456789abcdef0123456789abcdef","settings":{"region":"us-west-2","algorithm":"EdDSA"}}}Use ambient AWS credentials. Do not send the primary ARN to the replica region
and rely on redirection. Related MRKs share key material and a key ID, not one
global ARN: policies, grants, aliases and enabled state are regional. An mrk-
prefix alone proves neither relationship nor public-key equality.
Opening configuration never generates or replicates keys and has no automatic regional failover or local-signer fallback. Explicit provider creation/rotation is not automatic MRK replication or fleet coordination. Preserve existing publication/signing-key binding checks; changing configuration does not authorize replacing an established signer.
EdDSA uses ED25519_SHA_512 with RAW data, at most 4096 bytes. Oversized
payloads fail. Do not hash them and substitute Ed25519ph/DIGEST: that is not the
same signature scheme. See AWS Sign limits.
Go and TypeScript AWS providers retain canonical native KMS identifiers as
JWK kid values. The two regional ARNs above therefore produce different
kids even when their public key material and RFC 7638 thumbprints are identical.
Python AWS instead uses public-key thumbprint kids while retaining native
references separately; do not assume the same identity-binding behavior across SDKs.
Identity-bound configuration limitation: constructIdentityManager checks the
configuration-selected signing key against the verified publication by kid,
algorithm and thumbprint, not public material alone. A publication made with
region A’s ARN cannot be reused by configuration selecting region B’s ARN:
construction rejects the different kid. Each identity-bound setup needs a
verified publication matching its selected regional kid; these fragments do not
provide two regional signers for one unchanged published identity. Any change to
an established signer must follow authorized publication/key-rotation procedures,
not just a regional configuration switch.
Standalone provider opens and raw signature cross-verification remain supported
for the two regional references, independently of identity-manager construction.
They demonstrate cryptographic key equality, not shared published-identity
compatibility or automatic failover. Injecting a provider is not a documented
workaround: the owning workflow still has identity-binding responsibilities, and
signature kid values must match the published identity’s expectations. This
setup does not normalize regional kids or solve that shared-identity limitation.
For cryptographic equality, require public JWK kty=OKP, crv=Ed25519,
alg=EdDSA, equal x, and no private d. Independently compute RFC 7638 SHA-256
thumbprints over canonical JSON containing only crv, kty, x; compare those,
not entire serialized JWKs or native references. Sign the same bounded raw payload through
each client and independently verify both signatures with the common public key
(and the other client’s public key). Reopen the exact saved references and repeat;
signature-byte equality is not the acceptance criterion. Unrelated keys cannot
satisfy this check; the SDK does not discover cross-region misconfiguration.
Plan cleanup before allocation. For owned disposable fixtures, schedule replica deletion before deleting the primary and verify each key’s disposition. Scheduled deletion is delayed, not completed removal; retain an owner/follow-up for outstanding resources. Never delete shared keys as test cleanup.
Supported KMS keys
Section titled “Supported KMS keys”| DNSid/JWS alg | AWS signing algorithm | AWS key spec |
|---|---|---|
ES256 | ECDSA_SHA_256 | ECC_NIST_P256 |
EdDSA | ED25519_SHA_512 | ECC_NIST_EDWARDS25519 |
Loaded keys must have:
KeyUsage: SIGN_VERIFY- matching
KeySpec SigningAlgorithmscontaining the configured algorithm
Aliases, alias ARNs, key IDs, and key ARNs are accepted. They are resolved to canonical KMS key IDs on load.
IAM permissions
Section titled “IAM permissions”Minimum runtime permissions:
kms:GetPublicKeykms:Sign
First-key creation permission:
kms:CreateKeyforAwsKmsKeyProvider.create()kms:TagResourceonly whentagsare supplied
Rotation permissions, if used:
kms:CreateKeyforgenerateKey()kms:TagResourceonly whentagsare suppliedkms:ScheduleKeyDeletionforsupersede()whenscheduleKeyDeletionOnPurgeis enabled
Rotation
Section titled “Rotation”Like first-key create(), generateKey() requires the getPublicKey response
for the newly created key to include a nonempty immutable keyId matching the
created reference. A bare key UUID may resolve to its matching canonical key ARN.
An omitted or unrelated response ID rejects generation before adding a pending
key, even though the remote key has already been created; the operator owns
reconciliation and cleanup. Response keyId remains optional when opening an
existing key with load().
const nextKid = await provider.generateKey();await provider.activate(nextKid);await provider.supersede('old-key-id');
await saveState(provider.stateSnapshot());Pending keys are not published by listKeyIds() or jwk(). Activating a pending key moves the previous active key to retained.
Large payloads
Section titled “Large payloads”AWS KMS RAW signing is limited to 4096 bytes. For ECDSA_SHA_256, larger payloads are SHA-256 hashed locally and signed with KMS DIGEST mode. ED25519_SHA_512 remains RAW-only.
LocalStack smoke test
Section titled “LocalStack smoke test”From the repo root:
DNSID_AWS_KMS_LOCALSTACK=1 npm run test:aws-kms:localstackAWS KMS-backed key provider for DNSid.
@dnsid-ai/key-aws implements the KeyProvider contract from
@dnsid-ai/protocol on top of AWS KMS: private key material never
leaves KMS, while AwsKmsKeyProvider exposes public keys as DNSid JWKs, signs
through KMS, and manages the active/pending/retained key lifecycle. Callers persist
stateSnapshot() after lifecycle changes. AwsSdkKmsFacade adapts AWS SDK v3’s
KMSClient to the narrow AwsKmsFacade interface this package depends on.
Classes
Section titled “Classes”AwsKmsKeyProvider
Section titled “AwsKmsKeyProvider”Defined in: index.ts:201
AWS KMS-backed DNSid KeyProvider.
AWS KMS owns private key material and signing. This provider owns DNSid’s active/pending/retained lifecycle state and exposes public keys as JWKs.
Implements
Section titled “Implements”Methods
Section titled “Methods”activate()
Section titled “activate()”activate(kid): Promise<void>;Defined in: index.ts:349
Blocks new signing and drains in-flight signatures before promoting a pending key. The previously active key transitions to retained.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<void>
Implementation of
Section titled “Implementation of”generateKey()
Section titled “generateKey()”generateKey(algorithm?): Promise<string>;Defined in: index.ts:328
Generates a new key pair in the pending state. Returns the new key’s kid.
Parameters
Section titled “Parameters”algorithm?
Section titled “algorithm?”string
Returns
Section titled “Returns”Promise<string>
Implementation of
Section titled “Implementation of”jwk(kid): Promise<DnsIdJWK>;Defined in: index.ts:262
Returns the JWK representation of a key by ID (active, pending, or retained). Raises if not found.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<DnsIdJWK>
Implementation of
Section titled “Implementation of”listKeyIds()
Section titled “listKeyIds()”listKeyIds(): Promise<string[]>;Defined in: index.ts:269
Returns the IDs of all active and retained keys (pending keys excluded). The active key ID MUST appear first; retained keys follow in any order.
Returns
Section titled “Returns”Promise<string[]>
Implementation of
Section titled “Implementation of”purge()
Section titled “purge()”purge(kid): Promise<void>;Defined in: index.ts:385
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<void>
Deprecated
Section titled “Deprecated”Use supersede().
Implementation of
Section titled “Implementation of”sign()
Section titled “sign()”sign(payload): Promise<Uint8Array<ArrayBufferLike>>;Defined in: index.ts:281
Signs the given payload with the current active signing key. Returns raw signature bytes.
Parameters
Section titled “Parameters”payload
Section titled “payload”Uint8Array
Returns
Section titled “Returns”Promise<Uint8Array<ArrayBufferLike>>
Implementation of
Section titled “Implementation of”signingKey()
Section titled “signingKey()”signingKey(): Promise<DnsIdJWK>;Defined in: index.ts:257
Returns the JWK representation of the current active public signing key. The returned kid MUST NOT contain ’#’.
Returns
Section titled “Returns”Promise<DnsIdJWK>
Implementation of
Section titled “Implementation of”signKey()
Section titled “signKey()”signKey(kid, payload): Promise<Uint8Array<ArrayBufferLike>>;Defined in: index.ts:286
Signs with a specified active or pending key.
Parameters
Section titled “Parameters”string
payload
Section titled “payload”Uint8Array
Returns
Section titled “Returns”Promise<Uint8Array<ArrayBufferLike>>
Implementation of
Section titled “Implementation of”stateSnapshot()
Section titled “stateSnapshot()”stateSnapshot(): AwsKmsKeyState;Defined in: index.ts:273
Returns
Section titled “Returns”supersede()
Section titled “supersede()”supersede(kid): Promise<void>;Defined in: index.ts:363
Supersedes and removes a retained key from this provider’s published key set.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<void>
Implementation of
Section titled “Implementation of”validateKeyGeneration()
Section titled “validateKeyGeneration()”validateKeyGeneration(algorithm): Promise<void>;Defined in: index.ts:321
Validates generation settings and algorithm support without creating a key.
Parameters
Section titled “Parameters”algorithm
Section titled “algorithm”string
Returns
Section titled “Returns”Promise<void>
Implementation of
Section titled “Implementation of”KeyProvider.validateKeyGeneration
create()
Section titled “create()”static create(client, config): Promise<{ keyRef: string; kid: string; provider: AwsKmsKeyProvider;}>;Defined in: index.ts:233
Explicitly creates a native KMS signing key, locally pending until activate(kid). Returns its canonical immutable reference; never writes state or imports private keys. The caller owns the client and recovery of remote keys after ambiguous failures. Normal load/configuration opening never creates keys.
Parameters
Section titled “Parameters”client
Section titled “client”config
Section titled “config”Pick<AwsKmsConfig,
| "algorithm"
| "keySpec"
| "description"
| "tags"
| "scheduleKeyDeletionOnPurge"
| "deletionWindowInDays">
Returns
Section titled “Returns”Promise<{
keyRef: string;
kid: string;
provider: AwsKmsKeyProvider;
}>
load()
Section titled “load()”static load(client, config): Promise<AwsKmsKeyProvider>;Defined in: index.ts:245
Parameters
Section titled “Parameters”client
Section titled “client”config
Section titled “config”Returns
Section titled “Returns”Promise<AwsKmsKeyProvider>
AwsSdkKmsFacade
Section titled “AwsSdkKmsFacade”Defined in: index.ts:131
Adapter from AWS SDK v3’s KMSClient to the narrow facade used by AwsKmsKeyProvider.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new AwsSdkKmsFacade(client): AwsSdkKmsFacade;Defined in: index.ts:132
Parameters
Section titled “Parameters”client
Section titled “client”Returns
Section titled “Returns”Methods
Section titled “Methods”createSigningKey()
Section titled “createSigningKey()”createSigningKey(input): Promise<{ keyId: string;}>;Defined in: index.ts:134
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Promise<{
keyId: string;
}>
Implementation of
Section titled “Implementation of”getPublicKey()
Section titled “getPublicKey()”getPublicKey(input): Promise<{ keyId?: string; keySpec?: string; keyUsage?: string; publicKey: Uint8Array; signingAlgorithms?: string[];}>;Defined in: index.ts:146
For newly created keys, including rotation through generateKey(), the response
must include a nonempty immutable keyId matching the created reference. A bare
key UUID may resolve to its matching canonical key ARN. Omitted or unrelated
IDs reject generation after remote creation and before pending-key insertion.
Response keyId remains optional when opening an existing key with load().
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Promise<{
keyId?: string;
keySpec?: string;
keyUsage?: string;
publicKey: Uint8Array;
signingAlgorithms?: string[];
}>
Implementation of
Section titled “Implementation of”scheduleKeyDeletion()
Section titled “scheduleKeyDeletion()”scheduleKeyDeletion(input): Promise<void>;Defined in: index.ts:187
Parameters
Section titled “Parameters”AwsKmsScheduleKeyDeletionInput
Returns
Section titled “Returns”Promise<void>
Implementation of
Section titled “Implementation of”AwsKmsFacade.scheduleKeyDeletion
sign()
Section titled “sign()”sign(input): Promise<{ keyId?: string; signature: Uint8Array; signingAlgorithm?: string;}>;Defined in: index.ts:168
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Promise<{
keyId?: string;
signature: Uint8Array;
signingAlgorithm?: string;
}>
Implementation of
Section titled “Implementation of”Interfaces
Section titled “Interfaces”AwsKmsConfig
Section titled “AwsKmsConfig”Defined in: index.ts:56
Extends
Section titled “Extends”Partial<AwsKmsKeyState>
Properties
Section titled “Properties”activeKeyArn?
Section titled “activeKeyArn?”optional activeKeyArn?: string;Defined in: index.ts:63
Legacy alias for activeKeyId kept for existing callers.
activeKeyId?
Section titled “activeKeyId?”optional activeKeyId?: string;Defined in: index.ts:49
ARN, key ID, alias, or alias ARN of the currently active signing key. Aliases are resolved to canonical key IDs on load.
Inherited from
Section titled “Inherited from”algorithm
Section titled “algorithm”algorithm: AwsKmsSigningAlgorithm;Defined in: index.ts:69
KMS signing algorithm to request. Must match the key spec.
deletionWindowInDays?
Section titled “deletionWindowInDays?”optional deletionWindowInDays?: number;Defined in: index.ts:79
Waiting period for ScheduleKeyDeletion. AWS allows 7-30 days. Default: 30.
description?
Section titled “description?”optional description?: string;Defined in: index.ts:73
Optional description passed to generated KMS keys.
keySpec?
Section titled “keySpec?”optional keySpec?: AwsKmsKeySpec;Defined in: index.ts:71
KMS key spec to use when generateKey creates a new key.
pendingKeyArns?
Section titled “pendingKeyArns?”optional pendingKeyArns?: string[];Defined in: index.ts:67
Legacy alias for pendingKeyIds kept for existing callers.
pendingKeyIds?
Section titled “pendingKeyIds?”optional pendingKeyIds?: string[];Defined in: index.ts:53
KMS key IDs generated but not yet active.
Inherited from
Section titled “Inherited from”retainedKeyArns?
Section titled “retainedKeyArns?”optional retainedKeyArns?: string[];Defined in: index.ts:65
Legacy alias for retainedKeyIds kept for existing callers.
retainedKeyIds?
Section titled “retainedKeyIds?”optional retainedKeyIds?: string[];Defined in: index.ts:51
KMS key IDs retained for verification of previous signatures.
Inherited from
Section titled “Inherited from”scheduleKeyDeletionOnPurge?
Section titled “scheduleKeyDeletionOnPurge?”optional scheduleKeyDeletionOnPurge?: boolean;Defined in: index.ts:77
Schedule deletion of retained KMS keys on purge. Default: false.
state?
Section titled “state?”optional state?: AwsKmsKeyState;Defined in: index.ts:61
Mutable state object for provider lifecycle. Prefer this over the legacy top-level active/retained/pending fields when state must persist.
optional tags?: Record<string, string>;Defined in: index.ts:75
Optional tags passed to generated KMS keys.
AwsKmsCreateSigningKeyInput
Section titled “AwsKmsCreateSigningKeyInput”Defined in: index.ts:82
Properties
Section titled “Properties”description?
Section titled “description?”optional description?: string;Defined in: index.ts:84
keySpec
Section titled “keySpec”keySpec: AwsKmsKeySpec;Defined in: index.ts:83
optional tags?: Record<string, string>;Defined in: index.ts:85
AwsKmsFacade
Section titled “AwsKmsFacade”Defined in: index.ts:104
Methods
Section titled “Methods”createSigningKey()
Section titled “createSigningKey()”createSigningKey(input): Promise<{ keyId: string;}>;Defined in: index.ts:105
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Promise<{
keyId: string;
}>
getPublicKey()
Section titled “getPublicKey()”getPublicKey(input): Promise<{ keyId?: string; keySpec?: string; keyUsage?: string; publicKey: Uint8Array; signingAlgorithms?: string[];}>;Defined in: index.ts:113
For newly created keys, including rotation through generateKey(), the response
must include a nonempty immutable keyId matching the created reference. A bare
key UUID may resolve to its matching canonical key ARN. Omitted or unrelated
IDs reject generation after remote creation and before pending-key insertion.
Response keyId remains optional when opening an existing key with load().
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Promise<{
keyId?: string;
keySpec?: string;
keyUsage?: string;
publicKey: Uint8Array;
signingAlgorithms?: string[];
}>
scheduleKeyDeletion()?
Section titled “scheduleKeyDeletion()?”optional scheduleKeyDeletion(input): Promise<void>;Defined in: index.ts:125
Parameters
Section titled “Parameters”AwsKmsScheduleKeyDeletionInput
Returns
Section titled “Returns”Promise<void>
sign()
Section titled “sign()”sign(input): Promise<{ keyId?: string; signature: Uint8Array; signingAlgorithm?: string;}>;Defined in: index.ts:120
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Promise<{
keyId?: string;
signature: Uint8Array;
signingAlgorithm?: string;
}>
AwsKmsGetPublicKeyInput
Section titled “AwsKmsGetPublicKeyInput”Defined in: index.ts:88
Properties
Section titled “Properties”keyId: string;Defined in: index.ts:89
AwsKmsKeyState
Section titled “AwsKmsKeyState”Defined in: index.ts:47
Properties
Section titled “Properties”activeKeyId
Section titled “activeKeyId”activeKeyId: string;Defined in: index.ts:49
ARN, key ID, alias, or alias ARN of the currently active signing key. Aliases are resolved to canonical key IDs on load.
pendingKeyIds?
Section titled “pendingKeyIds?”optional pendingKeyIds?: string[];Defined in: index.ts:53
KMS key IDs generated but not yet active.
retainedKeyIds?
Section titled “retainedKeyIds?”optional retainedKeyIds?: string[];Defined in: index.ts:51
KMS key IDs retained for verification of previous signatures.
AwsKmsScheduleKeyDeletionInput
Section titled “AwsKmsScheduleKeyDeletionInput”Defined in: index.ts:99
Properties
Section titled “Properties”keyId: string;Defined in: index.ts:100
pendingWindowInDays
Section titled “pendingWindowInDays”pendingWindowInDays: number;Defined in: index.ts:101
AwsKmsSignInput
Section titled “AwsKmsSignInput”Defined in: index.ts:92
Properties
Section titled “Properties”keyId: string;Defined in: index.ts:93
message
Section titled “message”message: Uint8Array;Defined in: index.ts:94
messageType
Section titled “messageType”messageType: "RAW" | "DIGEST";Defined in: index.ts:96
signingAlgorithm
Section titled “signingAlgorithm”signingAlgorithm: AwsKmsSigningAlgorithm;Defined in: index.ts:95
Type Aliases
Section titled “Type Aliases”AwsKmsKeySpec
Section titled “AwsKmsKeySpec”type AwsKmsKeySpec = "ECC_NIST_P256" | "ECC_NIST_EDWARDS25519";Defined in: index.ts:43
AwsKmsSigningAlgorithm
Section titled “AwsKmsSigningAlgorithm”type AwsKmsSigningAlgorithm = "ECDSA_SHA_256" | "ED25519_SHA_512";Defined in: index.ts:41
AwsSdkKmsClient
Section titled “AwsSdkKmsClient”type AwsSdkKmsClient = Pick<KMSClient, "send">;Defined in: index.ts:128
Functions
Section titled “Functions”createAwsKmsKeyProvider()
Section titled “createAwsKmsKeyProvider()”function createAwsKmsKeyProvider(keyRef, settings?): Promise<AwsKmsKeyProvider>;Defined in: index.ts:33
Opens an existing KMS key, without generation or private-key import.
Parameters
Section titled “Parameters”keyRef
Section titled “keyRef”string
settings?
Section titled “settings?”Record<string, unknown> = {}
Returns
Section titled “Returns”Promise<AwsKmsKeyProvider>
validateAwsKmsSettings()
Section titled “validateAwsKmsSettings()”function validateAwsKmsSettings(settings?): void;Defined in: index.ts:25
Deployment-file settings use ambient AWS credentials; raw credentials are not accepted.
Parameters
Section titled “Parameters”settings?
Section titled “settings?”Record<string, unknown> = {}
Returns
Section titled “Returns”void