Skip to content

Commit

Permalink
feat: Adding a new Terraform module repo
Browse files Browse the repository at this point in the history
Adding a new Terraform module repo to manage the home router.
  • Loading branch information
lazzurs committed Dec 1, 2024
1 parent b2a0fb0 commit 204f824
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions github/lazzurs/repos/terraform-routeros-home-router/terragrunt.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
terraform {
source = "tfr:///mineiros-io/repository/github?version=0.18.0"
}

include {
path = find_in_parent_folders()
}

# Indicate what region to deploy the resources into
generate "provider" {
path = "provider.tf"
if_exists = "overwrite_terragrunt"
contents = <<EOF
provider "github" {
owner = "${local.org_vars.github_owner}"
}
terraform {
backend "s3" {}
}
EOF
}

locals {
org_vars = yamldecode(file(find_in_parent_folders("org.yaml")))
repo_name = basename(get_terragrunt_dir())
}

inputs = {
name = local.repo_name
license_template = "MIT"
gitignore_template = "Terraform"
vulnerability_alerts = true
visibility = "public"
description = "Terraform module for ${local.repo_name}"
has_issues = true
}

0 comments on commit 204f824

Please sign in to comment.