Skip to content

Commit c17f5d3

Browse files
Added details about specifying a seperate yaml file in a YAML project (#15466)
* Update project-file.md Added details about `main` in the Pulumi.yaml file for a yaml project * Update content/docs/iac/concepts/projects/project-file.md Co-authored-by: Fraser Waters <[email protected]> --------- Co-authored-by: Fraser Waters <[email protected]>
1 parent c34b206 commit c17f5d3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

content/docs/iac/concepts/projects/project-file.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ Some languages also support using `main` to point to a specific file to change w
5353

5454
- For .NET projects, `main` can point to a .NET project file (e.g., `example.csproj`) and the file will be passed to `dotnet run`.
5555

56+
- For YAML projects, `main` can point to another YAML file (it must be named `Main.yaml` but it can be in a sub-folder of the project folder) containing the `variables`, `resources`, and `output` properties. The `config` property can exist in either the `Pulumi.yaml` or the referenced file.
57+
5658
For all other languages, the actual filename is ignored, and the system behaves as though `main` referred to the file's containing directory.
5759

5860
### `runtime` options

0 commit comments

Comments
 (0)