We need to refactor the terraform files structures so we can create our own modules (local for now).
We currently have this structure :
Which has lots of redundant configuration.
We need to create modules for api.tf and frontend.tf web services to start with. Whether we use 1 or 2 modules for this to start with is not too bad.
Ideally the end goal would be able to reuse this module for all 3 of our environment to ensure consistency.
Definition of Done
[ ] Create module for api
[ ] Create module for frontend (and/or create 1 module for both)
[ ] Use module in current terraform/ root configuration for pilot-prod (if folder structure changes we have to update the remote state ... might be a big task?)
[ ] Use module in current dev environement
[ ] Create a 3rd env called archibus for which we will eventually migrate some of the dev configurations in there.
Description
We need to refactor the terraform files structures so we can create our own modules (local for now).
We currently have this structure :
Which has lots of redundant configuration.
We need to create modules for
api.tf
andfrontend.tf
web services to start with. Whether we use 1 or 2 modules for this to start with is not too bad.Ideally the end goal would be able to reuse this module for all 3 of our environment to ensure consistency.
Definition of Done
terraform/
root configuration for pilot-prod (if folder structure changes we have to update the remote state ... might be a big task?)dev
environementarchibus
for which we will eventually migrate some of the dev configurations in there.