sparse-intern-71089
09/04/2019, 4:02 PMwhite-balloon-205
white-balloon-205
import * as cloudAws from "@pulumi/cloud-aws"
cloudAws.setComputeIAMRolePolicies(policyArns);
Then you should see any lambdas created after that will use a Role created with those policy arns attached. This is pretty limited, and requires you make this call before any Lambdas are created by @pulumi/cloud
- but may let you work around this.billowy-laptop-45963
09/04/2019, 4:33 PMwhite-balloon-205
cloud
but need to customize Roles (an AWS specific concept), then you can load up @pulumi/cloud-aws
and make the call above, but still use all the rest of the APIs from @pulumi/cloud
.
2. If you are on AWS only, you will likely find things more flexible working with @pulumi/aws
and @pulumi/awsx
- which offer many of the same capabilities - but in an AWS specific form that gives you access to every knob you may need.