aws_ec2: KeyPair static methods do not retrieve existing key pairs #28569
Labels
@aws-cdk/aws-ec2
Related to Amazon Elastic Compute Cloud
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p2
Describe the bug
using the static methods
and the the keyPair property on the InstanceProps interface does not set the public key on the instance at instance deployment
Should result in the public key being set on in the ~/.ssh/authorized_keys file of the instance.
Current Behavior
No keys are set when that property / method is used.
the "keyName" property marked as obsolete DOES work however.
Reproduction Steps
using the methods:
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.117.0 (build 59d9b23)
Framework Version
No response
Node.js Version
v18.16.0
OS
macOS sonoma 14.1.2 (23B92)
Language
TypeScript
Language Version
5.3.3
Other information
No response
The text was updated successfully, but these errors were encountered: