Skip to content

Commit

Permalink
feat: Adding org management for databricks modules
Browse files Browse the repository at this point in the history
Adding github org managemement for the databricks terraform modules org.
  • Loading branch information
lazzurs committed Nov 12, 2024
1 parent 1a6867d commit b2a0fb0
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions github/terraform-databricks-modules/org.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---

github_owner: "terraform-databricks-modules"
org_name: "terraform-databricks-modules"
39 changes: 39 additions & 0 deletions github/terraform-databricks-modules/org/terragrunt.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
terraform {
source = "tfr:///mineiros-io/organization/github?version=0.9.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")))
}

inputs = {
settings = {
name = local.org_vars.org_name
description = "Organization for ${local.org_vars.org_name}"
billing_email = "rob@lazzurs.org"
members_can_create_pages = true
members_can_create_private_pages = true
members_can_create_private_repositories = true
members_can_create_public_pages = true
members_can_create_public_repositories = true
members_can_create_repositories = true
}
}

0 comments on commit b2a0fb0

Please sign in to comment.