Skip to content

Document recommended project layout structures #11766

Open
@joeduffy

Description

@joeduffy

We should document best practices for how to organize a single project: where to put files, how to break them apart, how and when to use sub-modules, the advantages and disadvantages to different approaches, etc. I'm not certain we need to be very prescriptive here -- similar to how we leave the question of project/stack granularity open-ended -- but we should help guide folks through the decision-making.

In general, the best practice we recommend are similar to those for the language you've chosen (so you might get some good information by searching for "organizing Python projects" (or whichever language)), but there are definitely some Pulumi-specific concerns that are worth calling out, like config, resource-specifics like IAM versus networking versus higher-level services, where to put application code if it's being managed alongside infrastructure code, etc.

We do have documentation on recommended layouts at the "macro" level: how to organize your projects, stacks, and how to depend on a different project/stack from another. For example, this user guide and this blog post which dives into a more real-world AWS example. The two pieces of content would be highly complementary to one another.

Metadata

Metadata

Assignees

Labels

area/docsImprovements or additions to documentationcustomer/feedbackFeedback from customerskind/enhancementImprovements or new featuresneeds-assignmentAn issue that is ready to be assigned to someone.

Type

No type

Projects

Status

🧳 Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions