Skip to content

Instantly share code, notes, and snippets.

@lucashenning
Created November 3, 2020 12:25
Show Gist options
  • Save lucashenning/19db7bd778890930b785913254fab934 to your computer and use it in GitHub Desktop.
Save lucashenning/19db7bd778890930b785913254fab934 to your computer and use it in GitHub Desktop.
AWS KMS get public key
import { KMS } from 'aws-sdk';
const kms = new KMS({
accessKeyId: '<access_key_id>',
secretAccessKey: '<access_secret>',
region: 'us-east-1',
apiVersion: '2014-11-01',
});
kms.getPublicKey({
KeyId: '<KMS key id>'
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment