quick-action-34599
04/10/2019, 6:52 PMaws.ec2.KeyPair.get(...)
how would one use the id
property for a key that already exists and wasn’t created through pulumi?white-balloon-205
.get()
no problem. You should be able to pass the KeyyPair's name as the id
here. Does that not work for you? What error do you see?quick-action-34599
04/10/2019, 7:13 PMconst key = aws.ec2.KeyPair.get({ name: 'mykey', id: ... });
Input<string>
and not just a stringwhite-balloon-205
const key = aws.ec2.KeyPair.get('mykey', id);
quick-action-34599
04/10/2019, 7:16 PMwhite-balloon-205
quick-action-34599
04/10/2019, 7:16 PM