sparse-intern-71089
11/03/2022, 1:49 PMbillowy-army-68599
billowy-army-68599
billowy-laptop-50664
11/03/2022, 2:00 PMeu-west-2
and I needed to create some resources a few months ago in us-west-2
. So I created a new provider and set the region. Now I need to add some more resources to us-west-2
. How do I get this provider from the current stack?billowy-laptop-50664
11/03/2022, 2:00 PMbillowy-laptop-50664
11/03/2022, 2:02 PMlet provider = new aws.Provider(`default-us-west-2`, {
region: 'us-west-2'
});
So need to get default-us-west-2
from the stack!?billowy-army-68599
export const provider = new aws.provider
add an import into the place you want to use it
import * from as westprovider from "./providerfile"
And then you can reference it as
westprovider.provider
billowy-laptop-50664
11/03/2022, 2:05 PMaws.secretsmanager.getSecret()
billowy-army-68599
get
a providerbillowy-army-68599
billowy-laptop-50664
11/03/2022, 2:13 PM