Skip to content

The general, high-level Terraform configuration for GitHub, including thebootstrapping of basic GCP access for state management, and the creation andconfiguration of repositories and common resources.

License

Notifications You must be signed in to change notification settings

n3tuk/infra-github

Repository files navigation

n3tuk Terraform Workspace for Cloudflare DNS

License: MIT

A Terraform repository for the management of GitHub repositories for the n3tuk Organisation.

Workspace

The terraform/ workspace hosts the configuration for GitHub, including configuration of the Organisation, the repositories, and associated resources. The README.md therein for further information on supported variables and outputs, as well as the what is managed by the workspace.

Usage

In the event that the terraform/ needs to be deployed manually, ensure that the following is configured in the local environment first:

$ set -x GITHUB_TOKEN xxx
$ gcloud auth login
...
You are now logged in as [jon@than.io].
$ gcloud config set project genuine-caiman

Developing

The Taskfiles for this repository have a develop task which allows it to continuously run checking and integration tasks during development:

$ task develop
task: Started watching for tasks: develop
...
[lint] Passed
[validate] Passed
...

Running Terraform

To run Terraform, this must only be done inside each individual Terraform configuration.

$ cd terraform/
$ task plan
...
[plan] Plan: 0 to add, 0 to change, 0 to destroy.
...
$ task apply
...
[apply] Apply complete! Resources: 0 added, 0 changed, 0 destroyed.

License

Copyright (c) 2024 Jonathan Wright

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Authors

About

The general, high-level Terraform configuration for GitHub, including thebootstrapping of basic GCP access for state management, and the creation andconfiguration of repositories and common resources.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages