great-alligator-26951
07/28/2021, 12:48 AM# define a function to write an arn to a file
def write_to_file(arn):
f = open("arn.txt", "a")
f.write(arn)
f.close()
json = lb.arn.apply(lambda a: write_to_file(arn=a))
red-match-15116
07/28/2021, 12:52 AMThe string I need to feed is to another python module for configuring a SaaS application, but I can imagine I am going to have the same problem if I need to use a pulumi program inline with AWS boto3.Or maybe you need a stack output? I can’t quite pinpoint what you mean by this. Can you show what it looks like when the file is being read? I can give you more specific help with a more complete code sample.
great-alligator-26951
07/28/2021, 12:36 PMred-match-15116
07/28/2021, 3:44 PMdef create_gateway(listen_address):
return strongdm.Gateway(
name="example-gateway009834",
listen_address=listen_address,
)
gateway = firststack.get_output("NLB").apply(create_gateway)
is there any way to get a python output object to a string that can be used for templating and where strings are requiredyes but the strings or templates must be created within the apply
great-sunset-355
07/29/2021, 7:32 AMgreat-alligator-26951
07/30/2021, 6:50 PMgreat-sunset-355
08/01/2021, 3:30 PMOutput[MyType]
in another languages to see how it behaves