sparse-intern-71089
02/14/2021, 12:25 PMflaky-flower-13459
02/14/2021, 12:26 PMpulumi -C .\pulumi\myproject\ -s mystackname_dev--provider provider-us-west-2=urn:pulumi:mystackname_dev::myproject::pulumi:providers:aws::provider-us-west-2 import aws:ec2/keyPair:KeyPair dev_keypair dev_keypair
flaky-flower-13459
02/14/2021, 12:27 PMflaky-flower-13459
02/14/2021, 12:28 PMflaky-flower-13459
02/14/2021, 12:30 PMflaky-flower-13459
02/14/2021, 1:02 PMlittle-cartoon-10569
02/14/2021, 7:49 PMlittle-cartoon-10569
02/14/2021, 7:50 PMpulumi import
, or update the code with the correct publicKey and add the import opt.flaky-flower-13459
02/15/2021, 9:32 AMflaky-flower-13459
02/15/2021, 9:33 AMflaky-flower-13459
02/15/2021, 9:34 AMflaky-flower-13459
02/15/2021, 9:42 AMflaky-flower-13459
02/16/2021, 4:17 AMimport: dev_keypair
to the pulumi options on the resource, but now it says my public-key is mis-matched with the resource that already exists in AWS,
Although I confirmed the saved (MD5) fingerprint in AWS console, matches exactly the same fingerprint I generated locally using the private\public key filesflaky-flower-13459
02/16/2021, 2:58 PMssh-rsa
form, do I need to convert it to -----BEGIN PUBLIC KEY-----
form?little-cartoon-10569
02/16/2021, 8:38 PMlittle-cartoon-10569
02/16/2021, 8:39 PMpulumi state delete <urn>
to delete the "wrong" keypair from the state. You should probably do that before adding the code you get from pulumi import
.