When instances of a template stack is managed using a Continuous Delivery Pipeline, stack instance values can be defined in pipeline job configuration. Each stage which applies the stack code to a given environment includes configuration values for that environment, which is then passed to the command which applies to the code.
How to implement it
This is normally used with a template stack, which has parameters that can be set differently for different instances of the stack. For example, a stack that is used to create a web server cluster may have different values for the sizing of the cluster in different environments:
The pipeline job configuration could specify the command line for running the stack management tool, passing the parameter values on the commandline. This essentially implements the command-line parameter pattern.
This pattern could also be used in conjunction with the stack instance configuration file pattern, passing the path to the relevant configuration file to the stack management tool on its command line.
Or, the pipeline job could pass an instance_id value to the stack management tool, or to the orchestration tool, that is then used to look up the needed parameter values for the instance in a parameter registry.
Generally speaking, these later approaches are preferable, because it keeps the pipeline configuration from becoming overly complicated.