acceptable-notebook-17653
12/03/2021, 7:40 PMproject
and stack
.
We are using pulumi version v3.19.0
Thankspulumi new
command but only generate a project. Then to add a stack pulumi stack init
?green-stone-37839
12/03/2021, 7:44 PMpulumi new...
will create a project and ask you to create a single stack as well. If you'd like to add additional stacks to a project, pulumi stack init...
is the command you'd use.acceptable-notebook-17653
12/03/2021, 7:45 PMpulumi new
to add more stacks as we would benefit from pulumis’ built in ability to install dependencies etcgreen-stone-37839
12/03/2021, 7:46 PMMyWebApp
and your stacks could be associated to your different environments, like dev, test, stage, prod, etc.acceptable-notebook-17653
12/03/2021, 7:49 PMclusters/
├── eks-eu-01
└── eks-eu-02
green-stone-37839
12/03/2021, 7:50 PMacceptable-notebook-17653
12/03/2021, 7:51 PMpulumi new go --generate-only --name clusters --description 'Kubernetes clusters'
pulumi stack init --stack eks-eu-01
green-stone-37839
12/03/2021, 7:52 PMPulumi.yaml
file which tracks the project.acceptable-notebook-17653
12/03/2021, 7:52 PMgreen-stone-37839
12/03/2021, 7:52 PMacceptable-notebook-17653
12/03/2021, 7:54 PMpulumi new go --generate-only --name clusters --description 'Kubernetes clusters at <http://example.com|example.com>' --dir clusters
cd clusters
pulumi stack init --name eks-eu-01
clusters
├── Pulumi.yaml
├── eks-eu-01 <-- stack
├── go.mod <- this seems redundant
└── main.go <- this too
pulumi stack ls
NAME LAST UPDATE RESOURCE COUNT URL
eks-eu-01 n/a n/a <https://app.pulumi.com/example/clusters/eks-eu-01>
pulumi stack init --stack eks-eu-02
mkdir eks-eu-02
billowy-army-68599
12/04/2021, 12:18 AMacceptable-notebook-17653
12/05/2021, 4:52 PM