You accept either of the two outputs, not an output that can resolve to one of those regions
green-school-95910
02/05/2020, 10:11 PM
Also, it would be better if you use
pulumi.Input
as it includes passing the internal type directly or with a promise. Then in your function you can use
pulumi.output(region)
b
bitter-dentist-28132
02/10/2020, 5:40 PM
@green-school-95910 thanks, you're right that was an error on my part to not distinguish between either of two outputs and an output that could resolve to either. much appreciated.
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.