Skip to content
This repository was archived by the owner on May 16, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 16 additions & 17 deletions .terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file modified hooks/pre-commit
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions modules/service-repo/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ resource "github_repository" "this" {
web_commit_signoff_required = false

template {
owner = var.gh_org_name
repository = var.template_repo
owner = "infrahouse"
repository = "terraform-root-template"
}
}

Expand Down
2 changes: 1 addition & 1 deletion modules/service-repo/terraform.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
github = {
source = "integrations/github"
version = "~> 6.7, >= 6.7.3"
version = "~> 6.7"
}
random = {
source = "hashicorp/random"
Expand Down
14 changes: 4 additions & 10 deletions modules/service-repo/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -101,18 +101,12 @@ variable "state_bucket" {
type = string
}

variable "template_repo" {
variable "repo_private" {
description = <<-EOT
Name of the template repository to use when creating the service repo.
The template provides CI/CD workflows, Makefile, .gitignore, and other
boilerplate. Files are copied once at creation time — the service repo
owns them after that.
If true, the repository is private.
Rulesets and environments on private repos require a GitHub Team
plan ($4/user/month).
EOT
type = string
}

variable "repo_private" {
description = "If true, the repository is private."
type = bool
default = true
}
Expand Down
1 change: 0 additions & 1 deletion repo-aws-service-infrahouse-app.tf
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ module "aws_service_infrahouse_app" {
repo_description = "AWS infrastructure for the InfraHouse product app"
gh_org_name = local.gh_org_name
github_app_slug = "infrahouse-github-terraform"
template_repo = "terraform-root-template"
state_bucket = module.aws_service_infrahouse_app_state.bucket_name

environments = {
Expand Down
Empty file modified repos.tf
100755 → 100644
Empty file.
7 changes: 5 additions & 2 deletions terraform.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ terraform {

required_providers {
github = {
source = "integrations/github"
version = "6.7.3"
source = "integrations/github"
# 6.7.3 causes "Root object was present, but now absent"
# on github_actions_secret due to destroy_on_drift bug.
# https://github.com/integrations/terraform-provider-github/issues/2387
version = "~> 6.7, != 6.7.3"
}
aws = {
source = "hashicorp/aws"
Expand Down
Loading