https://pulumi.com logo
c

cuddly-lizard-88530

06/01/2020, 2:36 PM
@white-balloon-205 I think it is your example on that gist.
w

white-balloon-205

06/01/2020, 10:04 PM
If you use the regular Function constructor, you will need to creat a Role and attach policies to that role manually, and the. Pass that role to the Function. CallbackFunction takes care of automating a bit of that boilerplate in the common case, but it’s equivalent to doing it manually.
c

cuddly-lizard-88530

06/02/2020, 1:45 AM
Right, thank you for clearing that up. But why such a difference in the interface? Seems confusing.
w

white-balloon-205

06/02/2020, 2:36 AM
Mostly for historical reasons - and agreed that this is a non-orthogonality in the api design here that can be confusing.