https://pulumi.com logo
#aws
Title
# aws
c

clean-window-19746

05/22/2023, 10:32 PM
is it possible to generate code from import using an explicit provider? i have resources in another region i would like to import. i created an explicit aws provider for a different region, and am able to import the resource. however, i get an
undefined variable
error when the import is trying to generate the code.
b

billowy-army-68599

05/22/2023, 11:53 PM
Not with an explicit provider now. When you run Pulumi import, the Pulumi CLI (not the provider) needs to have valid credentials. You can more than likely achieve what you want to by just setting the correct AWS env vars like
AWS_REGION
c

clean-window-19746

05/23/2023, 2:58 PM
got it, will give it a try. thanks a lot!
2 Views