https://pulumi.com logo
#general
Title
# general
r

rhythmic-branch-12845

04/14/2022, 6:44 AM
one thing that’s not clear to me based on what I’ve read so far: can 1 pulumi project only contain one pulumi program?
v

victorious-church-57397

04/14/2022, 7:03 AM
hi @rhythmic-branch-12845, i have a project with multiple pulumi stacks in the repository, is this what you mean?
r

rhythmic-branch-12845

04/14/2022, 7:13 AM
no. Stacks are just variations of the same program, but can you have different programs? https://www.pulumi.com/docs/intro/concepts/ speaks of “programs” in the plural, as if there can be many in one project. I don’t think this is the case.. but would like to confirm
v

victorious-church-57397

04/14/2022, 7:17 AM
Copy code
Each stack is an isolated, independently configurable instance of a Pulumi program. Stacks can be used to denote different phases of development
they dont have to be variations of the same program. We have multiple stacks or “programs” in repositories
Copy code
├── README.md
├── pulumi-jira-integration
│   ├── Pulumi.securityhub-jira-integration.yaml
│   ├── Pulumi.yaml
│   ├── index.ts
│   ├── node_modules
│   ├── package-lock.json
│   ├── package.json
│   ├── src
│   ├── tsconfig.json
│   ├── yarn-error.log
│   └── yarn.lock
├── pulumi-org
│   ├── Pulumi.org-security-hub.yaml
│   ├── Pulumi.yaml
│   ├── index.ts
│   ├── node_modules
│   ├── package.json
│   ├── tsconfig.json
│   ├── variables.ts
│   └── yarn.lock
└── pulumi-security-prod
    ├── Pulumi.security-prod-security-hub.yaml
    ├── Pulumi.yaml
    ├── accounts
    ├── config
    ├── export.json
    ├── iam.ts
    ├── index.ts
    ├── node_modules
    ├── package.json
    ├── s3.ts
    ├── tsconfig.json
    ├── utils.ts
    ├── variables.ts
    └── yarn.lock
hope this helps answer your question
r

rhythmic-branch-12845

04/14/2022, 8:28 AM
not exactly but thank you for trying! It would appear from https://www.pulumi.com/docs/intro/concepts/ that you have multiple pulumi projects
2 Views