const region: aws.Region = new pulumi.Config("aws").require('region');
b
billowy-army-68599
03/04/2022, 8:35 PM
@busy-lion-51883 you'd need to use an
apply
for this, as the config is retrieved async
billowy-army-68599
03/04/2022, 8:36 PM
also, the config setting is global, so unless you need an explicit provider you probably don't actually need to do this
b
busy-lion-51883
03/04/2022, 8:41 PM
it appears to work without using apply. Is the recommendation to use apply in order to get it functional or to avoid some sort of undesirable side effect?
b
billowy-army-68599
03/04/2022, 8:59 PM
it may not always behave as expected, but if it works that's great. if you see anyweird behaviour, let us know
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.