It isn't possible. If the cli or console allows it, it's because they create the key in the background for you and just hide that bit.
Creating a key in Pulumi is trivial. One line:
Copy code
const tlsKey = new tls.PrivateKey(name, { algorithm: "RSA" });
little-cartoon-10569
02/01/2021, 1:17 AM
An EC2 KeyPair is a simple wrapper around a public key. There must be a public key to wrap, in order to have a key pair.
It is an odd name though, since it isn't a pair of keys. It's a single key, the public half of a public/private key pair.
❤️ 1
p
purple-mouse-61376
02/01/2021, 2:39 AM
Okay I'll give it a go thanks a lot! 😄
l
little-cartoon-10569
02/01/2021, 2:48 AM
👍 You'll need to export the key's private pem value to decode the auto-generated password for the default user (.\Administrator or similar). You might not need this if you join the machine to a Windows domain, or some other authentication service.
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.