https://pulumi.com logo
#python
Title
# python
b

brave-knife-93369

03/31/2021, 9:37 AM
I'm trying to get an instance of pulumi.FileAsset to take an Output<str> as a parameter. This doesn't work, which is a bit frustrating. Is there a way to workaround the problem to get dynamic file contents? I found https://github.com/pulumi/pulumi/issues/3017 but maybe somebody has a trick on hand?
Note: I don't mean that I want to generate the name of the resource, I want to have dynamic content so for instance:
Copy code
pulumi.StringAsset(f"project_id: {my_gcp_project.project_id}")