Skip to content

PlatformKey ​

Customer managed KMS key for services that need their own key (most use the account key via params.account.kmsKey()).

Defaults ​

  • Key rotation on, alias alias/<platform name>, removal policy from the stack

Props highlights ​

PropPurpose
allowedPrincipalsPrincipals granted encrypt/decrypt in the key policy
grantOrganizationOrganisation id; every principal in it may use the key

Example ​

ts
const key = new PlatformKey(this, "DataKey", { grantOrganization: "o-example1234" });
new PlatformSecret(this, "Db", { name: "database", encryptionKey: key });

Released under the MIT License.