This makes it practical to run two independent instances using variables in the same secretsmanager namespace.
It would have been an option to bake use of SECRET_NAME_PREFIX into the get_secret function; I eleceted not to do this as I preferred to have it more obvious where the names themselves appear that another component is added to them, but this trades off against the possibility that we will forget to include it if we add another variable, so I could have my mind changed.
This makes it practical to run two independent instances using variables in the same secretsmanager namespace.
It would have been an option to bake use of
SECRET_NAME_PREFIX
into theget_secret
function; I eleceted not to do this as I preferred to have it more obvious where the names themselves appear that another component is added to them, but this trades off against the possibility that we will forget to include it if we add another variable, so I could have my mind changed.