Hi, question about outputs and strings. I have bee...
# general
f
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
Copy code
esa.create_app_role(example.endpoint.apply(lambda endpoint: f"{endpoint}"),admin_username,admin_password,app_role_payload,role_name)
b
Hi Chris, there's no a whole lot to go on here. What's not working? what error are you getting?
f
@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 ?
Copy code
TypeError: can only concatenate str (not "Output") to str