is it possible to generate code from import using ...
# aws
c
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
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
got it, will give it a try. thanks a lot!