Thread
#general
    f

    fast-spoon-69536

    6 months ago
    Hi, question about outputs and strings. I have been reading over the docs. Not finding a good example of of what I need. I created a python function which calls some apis after the aws cloud resources is created. The 'endpoint' is the dns name for the resource I'm calling. I cannot figure out how to make this work. please give me some advice
    esa.create_app_role(example.endpoint.apply(lambda endpoint: f"{endpoint}"),admin_username,admin_password,app_role_payload,role_name)
    b

    billowy-army-68599

    6 months ago
    Hi Chris, there's no a whole lot to go on here. What's not working? what error are you getting?
    f

    fast-spoon-69536

    6 months ago
    @billowy-army-68599 Sorry for not including more info. So create_app_role is a function i created within the main.py. The create_app_role function takes the following inputs._endpoint - the endpoint is only available after the previous resource is deployed. admin_username - username to log into the endpoint admin_password - admin password app_role_payload - a dictionary / REST payload role_name - name of the role to create The basics of what I'm trying to do is.1. deploy aws opensearch 2. call the opensearch internal API to create roles and users after it is deployed. endpoint needs to be a str, but it is a Output<str>. How can I get it to be a str? Or is there a better approach ?
    TypeError: can only concatenate str (not "Output") to str