https://pulumi.com logo
#typescript
Title
# typescript
a

able-hair-32695

12/11/2021, 12:02 AM
When creating an AWS Role in a
pulumi.All
block what’s the proper way to return the role to the caller?
b

billowy-army-68599

12/11/2021, 12:22 AM
would you mind clarifying a little more what you mean here? Some code will help!
TS complains because it doesn’t see a return at all
(ESlint technically)
q

quiet-wolf-18467

12/11/2021, 12:32 AM
Probably best to do `assumePolicy.apply(policy => new Role(
))`