concept stack in category pulumi

This is an excerpt from Manning's book Pulumi in Action.
We’ll cover stacks in more detail in chapter 3, but you can think of them as logical groupings of resources roughly analogous to environments, in the "development", "staging", and "production" sense. You can create as many stacks as you like for a given project, configure them independently of one another, and name them however you choose. By default, Pulumi offers to create a
devstack for every new project; we accepted that offer when we ranpulumi newa bit ago.
When you start a new project with
pulumi new, you’ll be asked for a few details, including the project’s name, a brief description of it, and the name of the stack you’d like to build first. A stack, as you’ll recall from chapter 1, is a collection of cloud resources managed by a single Pulumi program, and you can think of them somewhat analogously to environments: dev, test, production, and so on. Stacks are configurable independently, and you can create as many of them as you like. It’s conventional to begin with adevstack, so Pulumi supplies this for you as the default, and it recognizes the current directory as the default name for your program as well.
On the Resources tab, you’ll see a list of all of the cloud resources comprising the stack, along with a graph view that can be helpful for visualizing the relationships between resources.
Figure 2.7. The Resources tab provides a full inventory of the stack, including a graph view for visualizing resource dependencies.
![]()