https://pulumi.com logo
#python
Title
# python
p

prehistoric-beach-79855

02/09/2022, 8:16 PM
Hello all, I am trying to import a key pair resource with: key=pulumi_aws.ec2.KeyPair.get(“myKeyPairs”, id=‘key-00789edf16bef11xx’) but pulumi up is giving: “error: Preview failed: resource ‘key-00789edf16bef11xx’ does not exist”. While I can see this Key pair in console > EC2 > Key pairs, under ID column. Am I missing something?
p

prehistoric-activity-61023

02/10/2022, 9:34 AM