https://pulumi.com logo
Title
w

wide-apple-61576

01/20/2023, 6:36 PM
Hi everyone. I am newbie in Pulumi i have a question. Question is that we have data source in terraform to use existing resources in terraform. So what options are available in Pulumi to use existing resource without import ?. Thanks in advanced.
b

billowy-army-68599

01/20/2023, 6:38 PM
you can use a
get
method: https://www.pulumi.com/registry/packages/aws/api-docs/amplify/webhook/#look-up All resources have a lookup function
m

miniature-musician-31262

01/20/2023, 6:44 PM
☝️ That’s right! Here are some additional docs and examples on how to do that: https://www.pulumi.com/docs/intro/concepts/resources/get/
w

wide-apple-61576

01/20/2023, 6:49 PM
Last question. how to copy local directory on remote ec2 server while create ec2 ?
b

billowy-army-68599

01/20/2023, 6:52 PM
w

wide-apple-61576

01/20/2023, 6:55 PM
Got it. Thanks @billowy-army-68599and @miniature-musician-31262 for supporting.