https://github.com/jabez007/terraform-practice
Practicing Terraform with Github provider
https://github.com/jabez007/terraform-practice
terraform
Last synced: 4 months ago
JSON representation
Practicing Terraform with Github provider
- Host: GitHub
- URL: https://github.com/jabez007/terraform-practice
- Owner: jabez007
- Created: 2024-07-28T16:30:15.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-07-30T21:37:09.000Z (about 1 year ago)
- Last Synced: 2025-02-24T15:32:49.736Z (7 months ago)
- Topics: terraform
- Language: HCL
- Homepage:
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# terraform-practice
## Gotchas
### Searching for Forked Repos
Github does not index forks, so the query in data.github_repositories.my_topics will never find any repos created as a fork
### Searching for Private Repos
Unless you are paying money to Github, the query in data.github_repositories.my_topics will probably NOT find your private repos
## Prerequisites
### Secrets
#### TF_TOKEN
A user API token from app.terraform.io to save state to the cloud
#### GH_PAT
A personal access token from Github that has permissions to manage all of the repos you want to manage through Terraform
##### Permissions
* For github_branch_protection - "Administration" repository permissions (write)
* For github_repository_environment - "Administration" repository permissions (write)