Skip to content

Commit 8a534fd

Browse files
committed
Auto-set the backend API based on the stack name in env BACKEND_STACK_NAME
1 parent d7b321a commit 8a534fd

File tree

1 file changed

+0
-7
lines changed
  • workshops/serverless-testing-workshop/demo-app

1 file changed

+0
-7
lines changed

workshops/serverless-testing-workshop/demo-app/urs-ui.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -218,13 +218,6 @@ def update_unicorn_reserve_list():
218218
key="api_endpoint_url",
219219
on_change=update_api_endpoint
220220
)
221-
if st.button(f"Reset API Endpoint from Stack"):
222-
cfn_client = boto3.client('cloudformation')
223-
response = cfn_client.describe_stacks(StackName=os.environ.get('BACKEND_STACK_NAME','urs-backend'))
224-
for output in response['Stacks'][0]['Outputs']:
225-
if output['OutputKey'] == 'ApiEndpoint':
226-
st.write(f"Resetting API Endpoint to: {output['OutputValue']}")
227-
228221

229222
# File picker for uploading to the unicorn inventory
230223
uploaded_file = st.file_uploader("Choose a CSV file for the Unicorn Inventory.", type=["csv"])

0 commit comments

Comments
 (0)