victorious-toddler-58071
09/15/2022, 12:42 PM├── infrastructure
│ ├── foundation (Platform wide Core components [VPC, K8s, ...])
│ │ ├── main.go
│ │ ├── Pulumi.yaml
│ │ ├── Pulumi.dev.yaml
│ │ ├── Pulumi.staging.yaml
│ │ └── Pulumi.prod.yaml
│ ├── solution1 (Solution specific infra components [MongoDB, API Gateway, ...] )
│ │ ├── main.go
│ │ ├── Pulumi.yaml
│ │ ├── Pulumi.dev.yaml
│ │ ├── Pulumi.staging.yaml
│ │ └── Pulumi.prod.yaml
│ ├── solution2 (Solution specific infra components [Postgres, SNS, ...] )
│ │ ├── main.go
│ │ ├── Pulumi.yaml
│ │ ├── Pulumi.dev.yaml
│ │ ├── Pulumi.staging.yaml
│ │ └── Pulumi.prod.yaml
├── services
│ ├── foundation (Platform wide Core components [Auth services, IAM services, ...])
│ │ ├── main.go
│ │ ├── Pulumi.yaml
│ │ ├── Pulumi.dev.yaml
│ │ ├── Pulumi.staging.yaml
│ │ └── Pulumi.prod.yaml
│ ├── solution1 (Solution specific services [Custom micro services, ...] )
│ │ ├── main.go
│ │ ├── Pulumi.yaml
│ │ ├── Pulumi.dev.yaml
│ │ ├── Pulumi.staging.yaml
│ │ └── Pulumi.prod.yaml
│ ├── solution2 (Solution specific services [Custom micro services, ...] )
│ │ ├── main.go
│ │ ├── Pulumi.yaml
│ │ ├── Pulumi.dev.yaml
│ │ ├── Pulumi.staging.yaml
│ │ └── Pulumi.prod.yaml
...
In this example above; the infra components from solution 1 & solution 2 can only be deployed once the infra foundation is deployed.
Next the service need to go after all infra has completed. last Solution services have to after foundation services.
How can i manage this dependencies?
And how can i execute a single pulumi command to go and execute/update/destroy all stacks at once in right order?stocky-restaurant-98004
09/15/2022, 1:15 PMearly-telephone-30941
09/15/2022, 8:20 PM