worried-plastic-45846
03/13/2020, 4:27 PM<BUCKET>
with a bucket.id
.
userScript.replace('<BUCKET_NAME>', bucket.id)
causes the error "Expected type 'str', got 'Output[str]' instead"
, which makes perfect sense.
Could someone please tell me how I can tell Pulumi to execute this replacement only after the bucket resource has been created? (similar to what I usually pulumi.Output.concat()
).userScript_built = userScript.replace('<BUCKET_NAME>', bucket.id)
becomes something like:
userScript_built = bucket.id.apply(lambda id: userScript.replace('<BUCKET_NAME>', id))