https://pulumi.com logo
#general
Title
# general
m

many-garden-84306

02/02/2020, 11:19 PM
@bored-river-53178 Its an async programming model so that is kind of a builtin tax. you don't want to stall the pipeline waiting for something when you could be starting other stuff. However, the thing I've done is use Output.all with a list of things I need resolved, so I only need one apply and I can do a bunch of work. e.g., in python:
Copy code
def get_auth_container_definition_obj():
  def gen_result(
      db_password_secret_arn,
      image_url,
      region,
      log_group_name,
      db_dns_name,
      db_database_name):
    # do a bunch of stuff with these sync values passed as args
  return Output.all(
      db_password_secret.arn,
      latest_image_url,
      region,
      cloudwatch_log_group.name,
      db_dns_name,
      db_database_name,
    ).apply(lambda args: gen_result(*args))