We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b402e7 commit 25c405fCopy full SHA for 25c405f
workshops/serverless-testing-workshop/demo-app/urs-ui.py
@@ -225,6 +225,13 @@ def update_unicorn_reserve_list():
225
key="api_endpoint_url",
226
on_change=update_api_endpoint
227
)
228
+ if st.button("Retrieve API Endpoint"):
229
+ cfn_client = boto3.client('cloudformation')
230
+ response = cfn_client.describe_stacks(StackName=os.environ.get('BACKEND_STACK_NAME','urs-backend'))
231
+ for output in response['Stacks'][0]['Outputs']:
232
+ if output['OutputKey'] == 'ApiEndpoint':
233
+ st.session_state['api_endpoint_url'] = output['OutputValue']
234
+
235
236
# File picker for uploading to the unicorn inventory
237
uploaded_file = st.file_uploader("Choose a CSV file for the Unicorn Inventory.", type=["csv"])
0 commit comments