sparse-intern-71089
12/03/2021, 7:40 PMacceptable-notebook-17653
12/03/2021, 7:42 PMpulumi 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'
acceptable-notebook-17653
12/03/2021, 7:51 PMpulumi 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 PMacceptable-notebook-17653
12/03/2021, 7:55 PMacceptable-notebook-17653
12/03/2021, 7:56 PMacceptable-notebook-17653
12/03/2021, 7:57 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
acceptable-notebook-17653
12/03/2021, 7:57 PMacceptable-notebook-17653
12/03/2021, 7:58 PMclusters
├── Pulumi.yaml
├── eks-eu-01 <-- stack
├── go.mod <- this seems redundant
└── main.go <- this too
acceptable-notebook-17653
12/03/2021, 7:59 PMacceptable-notebook-17653
12/03/2021, 8:01 PMpulumi stack ls
NAME LAST UPDATE RESOURCE COUNT URL
eks-eu-01 n/a n/a <https://app.pulumi.com/example/clusters/eks-eu-01>
acceptable-notebook-17653
12/03/2021, 8:02 PMpulumi stack init --stack eks-eu-02
acceptable-notebook-17653
12/03/2021, 8:03 PMmkdir eks-eu-02
acceptable-notebook-17653
12/03/2021, 8:04 PMacceptable-notebook-17653
12/03/2021, 9:55 PMbillowy-army-68599
billowy-army-68599
billowy-army-68599
acceptable-notebook-17653
12/05/2021, 4:52 PM