Created
November 3, 2020 12:25
-
-
Save lucashenning/19db7bd778890930b785913254fab934 to your computer and use it in GitHub Desktop.
AWS KMS get public key
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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