calm-energy-71162
01/03/2023, 12:29 PMterraform plan the METAFLOW_DATASTORE_SYSROOT_S3 and METAFLOW_DATATOOLS_S3ROOT have to point to the same buckets as before. But I am unsure about the Metadata service? How can I make sure this data is preserved after the update?
Thanks a lot for any helpcalm-energy-71162
01/03/2023, 2:29 PMterraform plan regarding the metadata RDS I see the following two lines:
# module.metaflow.module.metaflow-datastore.aws_db_instance.this will be destroyed
and
# module.metaflow-datastore.aws_db_instance.this[0] will be created
+ resource "aws_db_instance"
So I assume I will lose my metadata if I run the current template. It looks like it’s mostly because the module/directory structure has been changed between scripts. I am not sure I will be able to manually align that (or whether it’s a good idea).calm-energy-71162
01/03/2023, 2:30 PMterraform apply and then restore the old RDS from the snapshot? This plus preserving the S3 buckets should allow me to keep the current data and metadata, right?fresh-laptop-72652
01/03/2023, 6:04 PMcalm-energy-71162
01/03/2023, 6:19 PMfresh-laptop-72652
01/03/2023, 7:07 PMresource "aws_db_instance" "this" {
count = local.use_aurora ? 0 : 1
it looks like that didn't always exist in the tf template, so that could be what's breaking it for youfresh-laptop-72652
01/03/2023, 7:08 PMfresh-laptop-72652
01/03/2023, 7:09 PMcalm-energy-71162
01/04/2023, 8:16 AMhallowed-byte-90517
01/04/2023, 7:00 PMterraform import to put it in your tf state and tell in that you want it to use the existing db