Handling Runmodes - AMS to AEMaaCS
Hey folks,
I am working on a project migration in AEM from AMS to Cloud.
The AMS codebase has an awful lot of runmodes and runmode based configurations.
They have Dev, Dev1 to Dev6 - 7 DEV runmodes; 5 QA runmodes and more of Stage and Prod runmodes.
Currently they are using a sandbox program which has 1 RDE, 1 Dev, 1 Stage, 1 Prod environment configured.
We are targeting 1 Dev runmode to map to RDE; 1 QA to Dev, 1 Stage to Stage and 1 Prod to Prod config mapped.
Once the customer moves out of sandbox after testing the cloud environment - should we look at a way to reduce the runmodes defined in AMS or should we simply spin off more instances in Cloud for Dev?
They have separate instances for performance as well hence a whole lot of code written on basis of runmodes.
So couple of questions here -
1. Is RDE a valid runmode? Is it possible to map configs from one of the dev explicitly to RDE?
This query because RDE does deployment by aio plugin and isn't really deployment pipeline based.
2. The site is multi-tenant based. So we have multiple domains. Is it possible to set the hostname as an environment variable and then use it dynamically for each domain? Does RDE also allow domain setup?
3. For a large project with so many runmodes, what is the best way to simplify?