busy-lion-51883
03/04/2022, 8:06 PMpulumi.Config("aws").require("region")
to confrom to type Region. For example:
const region = new pulumi.Config("aws").require('region');
const codepipelinesProvider = new aws.Provider("codepipelinesProvider", {
profile: CODEPIPELINES_PROFILE_ID,
region: region,
});
in this case I get a type mismatch error: Type string is not assignable to Type Input
const region: aws.Region = new pulumi.Config("aws").require('region');
billowy-army-68599
03/04/2022, 8:35 PMapply
for this, as the config is retrieved asyncbusy-lion-51883
03/04/2022, 8:41 PMbillowy-army-68599
03/04/2022, 8:59 PMjolly-alligator-19698
03/04/2022, 9:26 PMapply
, they're all using plain require*()
or get*()
. Is the need for apply
an omission in that documentation?billowy-army-68599
03/05/2022, 12:12 AMInput<T>
and usually, you'd pass those values to another resource which take an Input<T>
However, if you need to pass a value to a resource which is a string, you'd need to use an apply
It looks like the region can be tInputty typein this case, so an apply is not needed, I should have checked before commenting