https://github.com/bounteous17/terraform-github-template
https://github.com/bounteous17/terraform-github-template
github template terraform
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bounteous17/terraform-github-template
- Owner: bounteous17
- License: gpl-3.0
- Created: 2023-11-10T10:45:43.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-11-12T20:30:13.000Z (over 2 years ago)
- Last Synced: 2024-12-30T20:25:27.342Z (over 1 year ago)
- Topics: github, template, terraform
- Language: HCL
- Homepage:
- Size: 25.4 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# terraform-github-template
## How to use it
Create the file `terraform.tfvars` containing your secrets:
```
github_token = ""
```
Before using it for the first time you would need to run:
```bash
terraform init
```
For reviewing and deploying future changes:
```bash
terraform plan
terraform apply
```
## Examples
### Importing repositories
```bash
terraform import module.repositories.module.terraform-github-template.github_repository.repo terraform-github-template
terraform import module.repositories.module.terraform-github-template.github_branch.default terraform-github-template:master
terraform import module.repositories.module.terraform-github-template.github_branch_default.default terraform-github-template
```