alan-turing-institute / data-safe-haven

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

Script that lists deployed TREs in a given SHM #1812

Open dsj976 opened 3 months ago

dsj976 commented 3 months ago

:white_check_mark: Checklist

:strawberry: Suggested change

It would be useful to have a tool that lists (i.e. prints to the terminal) the live TREs for a given SHM. At the moment, the only way to find this out is to log into the domain controller VM and check the security groups.

:steam_locomotive: How could this be done?

A script that can be run from a terminal window.

JimMadge commented 2 months ago

Could look at getting the state or outputs from pulumi and filtering it for useful information like this.

JimMadge commented 1 month ago

The dsh config show command takes a required SRE name.

After you have uploaded the config, you have no local reference for the SREs that have been configured. Can we add a way to list all SRE configs?

https://github.com/alan-turing-institute/data-safe-haven/blob/458c19c681af12ba87e62fd9fda0f92edaf6e540/data_safe_haven/commands/config.py#L36-L42