Hello,
We are trying to deploy flows on AWS and we want to add environment variables (or simply variables) dependant on which environment we are deploying.
For example, we want our flow to interact with a staging API in staging, and the production one for production (so the URL parameter would be different).
We would like to attach those environmental variables at the moment we deploy the flow on step functions.
• We already looked at .env : The problem we have is that when deploying to Step Functions, the .env file is not copied and automatically used. We would have to use docker images, and make the image dependant on the environment ?
• @environment décorator : We would like the environment variables to be set to every step, and not having to set it at every step.
• Parameters : We would like to avoid having to use the same variable each time we call the flow. The variables would always be the same for all flows, and mostly attached to the deployment environment.
• We would like not having to use custom docker images and would prefer to just use the default batch instance.
Maybe we do not really understand the philosophy of the tool for this particular case ?
Thank you !