Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/filfreire/terraform-provider-git
https://github.com/filfreire/terraform-provider-git
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/filfreire/terraform-provider-git
- Owner: filfreire
- License: mpl-2.0
- Created: 2024-06-17T14:20:10.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-07-08T07:20:33.000Z (3 months ago)
- Last Synced: 2024-07-09T08:43:02.214Z (3 months ago)
- Language: Go
- Size: 5.22 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Terraform Provider for Git
> ⚠️ Note: This repository is a copy of , which no longer exists on GitHub.
## Requirements
- [Terraform](https://www.terraform.io/downloads.html) >= 0.12.x
- [Go](https://golang.org/doc/install) >= 1.14## Usage
```hcl
provider "git" {}data "git_repository" "example" {
path = path.root
}resource "azurerm_resource_group" "example" {
...tags = {
branch = data.git_repository.example.branch
commit = substr(data.git_repository.example.commit_sha, 0, 7)
tag = data.git_repository.example.tag
}
}
```## Contributing
To build the provider:
```sh
$ go build
```To test the provider:
```sh
$ go test -v ./...
```To run all acceptance tests:
*Note:* Acceptance tests create real resources, and often cost money to run.
```sh
$ TF_ACC=1 go test -v ./...
```To run a subset of acceptance tests:
```sh
$ TF_ACC=1 go test -v ./... -run=TestAccDataSourceGitRepository
```