alan-turing-institute / data-safe-haven

https://data-safe-haven.readthedocs.io
BSD 3-Clause "New" or "Revised" License
61 stars 15 forks source link

Show the Guacamole URL on the terminal after creating an SRE #2274

Open cptanalatriste opened 2 weeks ago

cptanalatriste commented 2 weeks ago

:white_check_mark: Checklist

:strawberry: Suggested change

When SRE creation finishes successfully, it would be nice to see the Guacamole URL printed on the terminal, to go ahead and check the SRD. Maybe it would also be good to see some "next steps" (i.e. user enrollment,...)

:steam_locomotive: How could this be done?

Send the information to standard output, maybe?

JimMadge commented 2 weeks ago

The sre FQDN is an output of SRENetworkingComponent

https://github.com/alan-turing-institute/data-safe-haven/blob/40089a677f809c0017a0990945ffe07a6d7d67f5/data_safe_haven/infrastructure/programs/sre/networking.py#L1973

If we exported it from the Pulumi stack here

https://github.com/alan-turing-institute/data-safe-haven/blob/40089a677f809c0017a0990945ffe07a6d7d67f5/data_safe_haven/infrastructure/programs/declarative_sre.py#L419-L423

I think we should be able to print it.