strong-musician-98782
10/05/2020, 10:39 AMnutritious-shampoo-16116
10/05/2020, 10:43 AMpriv_ip = some_pulumi_code
now we have to wait for it to be ready so:
priv_id.apply(lambda ip: FrontendClass(ip))
the code should look similarstrong-musician-98782
10/05/2020, 10:56 AMnutritious-shampoo-16116
10/05/2020, 11:23 AMOutput
strong-musician-98782
10/05/2020, 12:26 PMks_db = KSDBServer(ks_id,KSDBServerArgs(ks_id))
ks_db.private_ip.apply(lambda ip: KSAppServer(ks_id,KSAppServerArgs(ks_id,ip),opts=pulumi.ResourceOptions(depends_on=[ks_db])))
basically ignore ks_id, i create the db first and then get the private ip out of it while running apply on the frontend(app) class but what if i have two classes i need args from?
other than passing the private ip from the database i also have a class for creating an ALB and i want to pass the alb's id/arn to the frontend class
really sorry if i got it completely wrong by the way and thanks again for the amazing help π
nutritious-shampoo-16116
10/06/2020, 6:26 AM