This message was deleted.
# typescript
s
This message was deleted.
s
regarding 3, are you sure? The type
PolicyDocument
and the nested types within all accept
Input<T>
l
Can you please link to that type as I cannot seem to find it
I found this article about the `PolicyDocument` type but that type doesn't expose any
Output<T>
properties like a JSON representation of the policy so I still cannot use it with inline policies, but thanks for pointing it out.
After a second look, it seems like I should ditch
inline_policies
in favor of other resources like
BucketPolicy
or
RolePolicy
s
If you use an IDE like VS Code the hinting will show
Input<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
h
regarding 1. you can export an async function that returns stack outputs
Copy code
export = async () => {
  // do stuff
  return {
    myStackOutput: foo.name
  };
};
l
I am doing that at the moment Anthony
Ah welp
PolicyDocument
doesn't support
CanonicalUser
for
Principal
😞