https://github.com/escapace/terraform-null-fetch-github
download files, folders, and release assets from a specific git commit, branch, or tag of public and private GitHub repositories
https://github.com/escapace/terraform-null-fetch-github
github terraform terraform-module
Last synced: about 2 months ago
JSON representation
download files, folders, and release assets from a specific git commit, branch, or tag of public and private GitHub repositories
- Host: GitHub
- URL: https://github.com/escapace/terraform-null-fetch-github
- Owner: escapace
- License: apache-2.0
- Created: 2020-06-11T10:59:09.000Z (about 6 years ago)
- Default Branch: trunk
- Last Pushed: 2025-02-20T01:00:05.000Z (over 1 year ago)
- Last Synced: 2025-06-09T11:04:09.627Z (about 1 year ago)
- Language: HCL
- Homepage: https://registry.terraform.io/modules/escapace/fetch-github/null/latest
- Size: 4.98 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Inputs
| Name | Description | Type | Default | Required |
| --------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -------------- | ------- | :------: |
| repo | Fully qualified URL of the GitHub repo. | `string` | n/a | yes |
| branch | The git branch from which to download the commit; the latest commit in the branch will be used. If specified, will override 'tag'. | `string` | `null` | no |
| commit | The specific git commit SHA to download. If specified, will override 'branch' and 'tag'. | `string` | `null` | no |
| github_api_version | The api version of the GitHub instance. If left blank, v3 will be used. | `string` | `null` | no |
| github_oauth_token | A GitHub Personal Access Token, which is required for downloading from private repos. | `string` | `null` | no |
| release_asset | The name of a release asset that is, a binary uploaded to a GitHub Release to download. Only works with 'tag'. | `string` | `null` | no |
| release_asset_checksum | The checksum that a release asset should have. | `string` | `null` | no |
| release_asset_checksum_algo | The algorithm Fetch will use to compute a checksum of the release asset. Acceptable values are 'sha256' and 'sha512' | `string` | `null` | no |
| source_path | The source path to download from the repo. If this or 'release_asset' aren't specified, all files are downloaded. | `list(string)` | `[]` | no |
| tag | The specific git tag to download, expressed with Version Constraint Operators. | `string` | `null` | no |
## Outputs
| Name | Description |
| ------------- | ------------- |
| download_path | Download path |
## Resources
| Name | Type |
| ------------------------------------------------------------------------------------------------------------ | -------- |
| [null_resource.fetch](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |
| [random_pet.folder](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/pet) | resource |
## Requirements
| Name | Version |
| --------- | ------- |
| terraform | >=1.9.8 |
| null | >=3.2.3 |
| random | >=3.6.3 |