https://pulumi.com logo
Title
f

few-tent-80031

03/24/2021, 4:58 PM
Hello everybody, I have a question about pulumi output. In my project, I am deploying infrastructure on AWS. I want to use "address" output from RDS instance, and use that as environment variable for ecs container definition. However, it seems that I cannot extract string from address output.
s

salmon-ghost-86211

03/24/2021, 5:01 PM
There are two channels that might be better for this question: #python or #aws
w

witty-candle-66007

03/24/2021, 5:04 PM
@few-tent-80031 This example may shed some light on things: https://github.com/pulumi/examples/blob/master/aws-py-wordpress-fargate-rds Specifically, https://github.com/pulumi/examples/blob/master/aws-py-wordpress-fargate-rds/__main__.py#L47 you see RDS info being passed to a component resource to stand up the frontend webservice. And then here you see it being used in an
Output.all().apply()
block: https://github.com/pulumi/examples/blob/master/aws-py-wordpress-fargate-rds/frontend.py#L98
f

few-tent-80031

03/24/2021, 5:16 PM
Thank you guys. I'm gonna try that.