https://pulumi.com logo
#golang
Title
b

bright-sandwich-93783

06/26/2021, 4:57 PM
Hey all! I have a questions related to the golang AWS SDK. Why do all of the Pulumi SDK APIs return inputs/outputs instead of primitive values? I don't fully understand the architectural decisions around why Pulumi uses Inputs/Outputs with Apply/Lift methods. This adds a lot of boilerplate and complexity to access the underlying raw value. As I understand it, it's because Pulumi runs the code before actually making AWS API calls? Can someone help me understand this?
b

billowy-army-68599

06/26/2021, 7:03 PM
b

bright-sandwich-93783

06/27/2021, 10:50 PM
thanks!
I see, what I just realized is that creating a resource synchronously and getting the ID may not be possible, since the API may be a submit/poll-for-updates type of pattern
3 Views