nimh-dsst / osm

OpenSciMetrics (OSM) applies NLP and LLM-based metrics and indicators related to transparency, data sharing, rigor, and open science on biomedical publications.
Creative Commons Zero v1.0 Universal
1 stars 3 forks source link

Create Terraform/OpenTofu configuration for shared resources #61

Open marcelovilla opened 2 months ago

marcelovilla commented 2 months ago

Currently, there's a configuration file for shared resources, including the network configuration. I suggest we expand that configuration (and maybe split it into different files) to include other shared resources we'll need across the different environments, such as:

[^1]: Judging by the deploy GHA workflow, there's probably an existing repository. We can import that into the Terraform/OpenTofu configuration we write to keep everything in the same place.

leej3 commented 2 months ago

there's probably an existing repository.

I used docker hub. Switching to ECR is also fine.

For now, I think we need to repositories

I'm assuming you mean images here. Also, to match the development override it would be good to build and push the base image too.

marcelovilla commented 2 months ago

@leej3:

I'm assuming you mean images here. Also, to match the development override it would be good to build and push the base image too.

I mean ECR repositories. Each repository will contain the images of a particular service (e.g., API and dashboard). Each image will be tagged with a git commit hash so we can easily identify what has been deployed and eventually rollback to a previous commit if we ever need to. Regarding pushing the base image, see: https://github.com/nimh-dsst/osm/issues/64#issuecomment-2363945834