Channels
esc
welcome
pulumi-cdk
cloudengineering
yaml
blog-posts
localstack
pulumi-ai
package-authoring
policy-as-code
pulumiup-booth-support
oracle-cloud-infrastructure
learn-pulumi-events
linen
registry
built-with-pulumi
pulumi-cloud
contribex
testingtesting321
hacktoberfest
pulumi-crosscode
content-share
finops
multi-language-hackathon
office-hours
workshops
gitlab
general
pulumi-kubernetes-operator
jobs
pulumi-deployments
dotnet
aws
golang
announcements
java
pulumiverse
python
install
getting-started
cloudengineering-support
testingtesting123
hackathon-03-19-2020
typescript
google-cloud
contribute
azure
kubernetes
docs
automation-api
status
Powered by
#general
Title
# general
b
busy-napkin-83700
09/22/2023, 2:55 PM
Is there an easy way to convert an object arn to a string so it can be used as part of a JSON policy Document?
m
millions-furniture-75402
09/22/2023, 2:57 PM
Are you familiar with this page?
https://www.pulumi.com/docs/concepts/inputs-outputs/
c
cuddly-nightfall-71097
09/25/2023, 7:00 AM
This is even better for that purpose:
https://www.pulumi.com/registry/packages/aws/api-docs/iam/getpolicydocument/
Otherwise there is a helper function (at least in python) to convert a dict with a mixture of values and outputs into a json text. A link above, but at more exact place:
https://www.pulumi.com/docs/concepts/inputs-outputs/#converting-outputs-to-json
Post