little-market-63455
07/13/2021, 6:00 PMasync/await
really awkward. you need to wrap the main code in an async funtion then call that from index.ts
using the then/catch/finally
syntax. Not the end of the world but truly annoying
2. You could wrap all async code in pulumi.output
which is perfect for things that are resources or resource-like but not really needed for other async API calls
3. Certain things like IAM policies which are arguably part of almost every single AWS program don't support Input<T>
properties. I don't want to create an independent IAM policy for every IAM role/user (mainly because that indicates they are re-usable and then you need to assign them an intuitive name) so I tend to use inline policies which suffer from the aforementioned problem. I feel either those should accept Input<T>
or there should be dedicated IamInlinePolicyDocument
type that does. Wrapping everything in all()/apply()
is just resulting in ugly looking code when used excessivelysteep-toddler-94095
07/13/2021, 6:44 PMPolicyDocument
and the nested types within all accept Input<T>
little-market-63455
07/13/2021, 7:23 PMOutput<T>
properties like a JSON representation of the policy so I still cannot use it with inline policies, but thanks for pointing it out.inline_policies
in favor of other resources like BucketPolicy
or RolePolicy
steep-toddler-94095
07/13/2021, 8:44 PMInput<T>
as the type for the property keys. But here's the path to the typings file in node_modules node_modules/@pulumi/aws/iam/documents.d.ts
helpful-tent-95136
07/14/2021, 1:14 AMexport = async () => {
// do stuff
return {
myStackOutput: foo.name
};
};
little-market-63455
07/14/2021, 7:43 AMPolicyDocument
doesn't support CanonicalUser
for Principal
😞