square-hair-965
02/22/2023, 1:01 AMInput<Region> | undefined
limitation when I try to dynamically create aws.Provider
?
I'm trying to do the following to get around another issue with default providers and using aws:profile
configs:
import { getConfig } from "@pulumi/pulumi/runtime/config";
const defaultProvider = new aws.Provider(`${stack}-peer-provider`, {
region: getConfig("aws:region"),
profile: "org_prod"
});
You get:
error TS2322: Type 'string | undefined' is not assignable to type 'Input<Region> | undefined'.
Type 'string' is not assignable to type 'Input<Region> | undefined'
So I would need to fudge that enum constant somehow but am kind of lost on how I would do that considering its expecting it to be an Input<>steep-toddler-94095
02/22/2023, 1:08 AMsquare-hair-965
02/22/2023, 1:16 AMsteep-toddler-94095
02/22/2023, 1:24 AM