https://linen.dev logo
What is the lifetime of the created infrastructure...
# help
h
I was looking at the docs (https://docs.shuttle.rs/resources/shuttle-aws-rds), read the article (https://www.shuttle.rs/blog/2022/05/09/ifc) on Infrastructure-from-Code (ifc) and was browsing the code, but I cannot find the answer myself. I assume that Shuttle is configured with a management database to store 'ifc' configurations in, but it also looks like there's only one database server in which an application can get a database. Is that correct? Or is a whole database server being created on deployment? This all came from the main question I have, what is de lifetime of the infrastructure. Will this be removed when the Shuttle deployment is removed? What will happen on a new deployment, is it possible that a database gets recreated (and data is wiped)?
s
Hey @helpful-translator-84493 and welcome to shuttle > Is that correct? Or is a whole database server being created on deployment? Yip, that is correct for the shared DB which only uses one PG instance across services. The RDS ones however are a new DB for each project. > Will this be removed when the Shuttle deployment is removed? Nope, we don't currently remove anything. So the DB stays around (whether it is shared or RDS), the secrets stays around, the source files stays around and persist files stay around. When we get to a UI, we will probably have a way for users to destroy their entire infra. > What will happen on a new deployment, is it possible that a database gets recreated (and data is wiped)? Never, we only cycle the credentials on every deploy. If any of your resources ever gets wiped on a deploy, then it should be considered a bug. And please report these
h
Thank you for clarifying!