Releases: udondan/cdk-ec2-key-pair
Releases · udondan/cdk-ec2-key-pair
v2.1.0
v2.0.0
- Adds support for storing the public key in secrets manager. Set
storePublicKey = true
on the input properties - Since now you have potentially two secrets (private and public key), some input properties and construct methods have been renamed:
- Additional to property
kms
now you havekmsPrivateKey
andkmsPublicKey
, to specify different keys for the secrets. If one property is not set, it falls back to the value provided viakms
- The construct method
grantRead
has been replaced with two new methodsgrantReadOnPrivateKey
andgrantReadOnPublicKey
to grant access to the two secrets separately - The construct property
arn
has been replaces withprivateKeyArn
andpublicKeyArn
- Additional to property
- The construct property
name
has been replaced withkeyPairName
- New construct property
keyPairID
, which holds the resource ID of the Key Pair, e.g.key-1234567890
- EC2 Key Pairs now are tagged. In v1.x only the secrets were tagged
- With Key Pair tagging support, we now have improved IAM restrictions, based on tags. The lambda cannot touch keys it didn't create
- The tag name for identifying resources has bee renamed from
CreaedBy
toCreatedByCfnCustomResource
- Default secret prefix has been renamed from
ec2-private-key/
toec2-ssh-key/
- The private key secret now is suffixied with
/private
. The public key will be suffixed with/public
- Construct properties
keyLength
andtags
have been removed. These were remains of previous versions which had no effect since long time