This message was deleted.
# aws
s
This message was deleted.
l
Yes šŸ˜‰
According to the documention (https://www.pulumi.com/registry/packages/aws/api-docs/ec2/keypair/#import), the import ID for key pairs is the name.
That's the first column, not the last column.
p
šŸ™‚ Thanks tenwit. I still don’t know how you understood this from the document. The doc is very confusing. To me,name is dealt differently from id in this doc. Anyways, no error from pulumi up ! thanks !
l
At the bottom of the page, the docs are about the import opt:
Key Pairs can be imported using the key_name, e.g.,
pulumi import awsec2/keyPairKeyPair deployer deployer-key
The docs are migrated from Terraform, so the name of the property doesn't always match up exactly, but
key_name
is pretty clear.
p
Thanks. ā€œmigrated from Terraformā€ is something I should consider. I always have issues with pulumi docs. šŸ™