sparse-intern-71089
04/10/2019, 6:52 PMwhite-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 PMquick-action-34599
04/10/2019, 7:13 PMconst key = aws.ec2.KeyPair.get({ name: 'mykey', id: ... });
quick-action-34599
04/10/2019, 7:14 PMInput<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 PMquick-action-34599
04/10/2019, 7:18 PMquick-action-34599
04/10/2019, 7:19 PM