1. Docs
  2. Reference
  3. REST API Docs
  4. Schema
  5. DeploymentSource

DeploymentSource

    DeploymentSource describes the source of a deployment, which may be a Git repository or a template.

    Properties

    • git DeploymentSourceGit optional
      The Git source configuration for the deployment.
    • repoURL string required
      The URL of the Git repository.
    • branch string optional
      The branch to deploy from.
    • repoDir string optional
      RepoDir is the directory to work from in the project’s source repository where Pulumi.yaml is located. It is used in case Pulumi.yaml is not in the project source root.
    • commit string optional
      (optional) Commit is the hash of the commit to deploy. If used, HEAD will be in detached mode. This is mutually exclusive with the Branch setting. Either value needs to be specified.
    • template DeploymentSourceTemplate optional
      The template source configuration for the deployment.
    • sourceUrl string required

      The URL of the template source. Supports two URL schemes:

      Registry-backed templates use the registry:// scheme with the format: registry://templates/source/publisher/name[@version]

      • source: The template source identifier (e.g., the registry source name)
      • publisher: The organization or user that published the template
      • name: The template name
      • version: Optional semver version (e.g., 1.0.0). If omitted, defaults to the latest version

      Example: registry://templates/pulumi/acme-corp/aws-vpc@2.1.0

      VCS-backed templates use standard VCS URLs (GitHub, GitLab, Azure DevOps, etc.): https://github.com/org/repo