SourceContext
SourceContext describes some source code, and how to obtain it.
Properties
- Git-based source context for obtaining source code from a repository.
- ↳
repoUrlstring optionalThe URL of the git repository. - ↳
branchstring optionalThe branch to use from the repository. - ↳
repoDirstring optional(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. - ↳
commitstring 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. (optional) GitAuth allows configuring git authentication options There are 3 different authentication options:
- SSH private key (and its optional password)
- Personal access token
- Basic auth username and password Only one authentication mode will be considered if more than one option is specified, with ssh private key/password preferred first, then personal access token, and finally basic auth credentials.
- Mercurial-based source context for obtaining source code from a repository.
- ↳
repoUrlstring optionalThe URL of the Mercurial repository. - ↳
branchstring optionalThe branch to use from the repository. - ↳
repoDirstring optional(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. - ↳
revisionstring optional(optional) Revision is the changeset hash to check out. If used, the working directory will be updated to this specific revision. This is mutually exclusive with the Branch setting. Either value needs to be specified. (optional) HgAuth allows configuring Mercurial authentication options. There are 3 different authentication options:
- SSH private key (and its optional password)
- Personal access token
- Basic auth username and password Only one authentication mode will be considered if more than one option is specified, with ssh private key/password preferred first, then personal access token, and finally basic auth credentials.
- Template-based source context for obtaining source code from a template URL.
- ↳
sourceUrlstring optionalThe 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 templatename: The template nameversion: 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.0VCS-backed templates use standard VCS URLs (GitHub, GitLab, Azure DevOps, etc.):
https://github.com/org/repo - GitAuth allows configuring git authentication options The only authentication option is personal access token as of now.
Thank you for your feedback!
If you have a question about how to use Pulumi, reach out in Community Slack.
Open an issue on GitHub to report a problem or suggest an improvement.