From fec74e8145c165749a8c9abd7d704fe6acd23ab4 Mon Sep 17 00:00:00 2001 From: Erin Millard Date: Fri, 13 Oct 2023 14:32:46 +1000 Subject: [PATCH] Uncomment variables and providers --- .terraform.lock.hcl | 24 ++++++++++++++++++++++++ provider.tf | 32 ++++++++++++++++---------------- variables.tf | 26 +++++++++++++------------- 3 files changed, 53 insertions(+), 29 deletions(-) create mode 100644 .terraform.lock.hcl diff --git a/.terraform.lock.hcl b/.terraform.lock.hcl new file mode 100644 index 0000000..e166b33 --- /dev/null +++ b/.terraform.lock.hcl @@ -0,0 +1,24 @@ +# This file is maintained automatically by "terraform init". +# Manual edits may be lost in future updates. + +provider "registry.terraform.io/integrations/github" { + version = "5.40.0" + constraints = "~> 5.0" + hashes = [ + "h1:BFga0rliQ6SklW0J7/78GRQ+tazszyeFx5xVLKhOqkQ=", + "zh:02922b9eb54dcdbad524caaef7901a800759ae5d3a6c8cbdf934d4cfce395d5d", + "zh:282b9736c2afa9f4a7817d5da9ac0caeddb4edc085c7236b71f3ecbb539b2132", + "zh:49275a2a1b523da1794f0ea19dfc0f595d1ac8c711d24c6887bb672a5a571e01", + "zh:521bdef1fdd3211be6ba30edb3092acbed5974b62497d83028f0e8fd2d7bcd24", + "zh:62e8e8de673859a3c0c1e9fb0fd623e0012c8d9b44d45728ad1aa04d744b724c", + "zh:6fc1fbecf16b896f791d5708208295267f20cf4a62e393ecb93f70538306f30e", + "zh:6fef1d1c77ca2f77501a6ffd63640e0174905c7ae88aca516ede1a7263af8bc3", + "zh:923968a2eb3856db4e02b2e87dd0f09555531d09ad707c6dd53b1c9c3af0ff82", + "zh:95e409dfb3437171f66c97493c6ae9a75a7329c90a1d4c489663c6e3823d32af", + "zh:a45d0f1449bc2833974ba88e238a5ec0b41da64b18da626153ec0b650bf90e4c", + "zh:af5d8e506f3280ecf22824549c5b2b68ec047a0df9da0a19721b1a6303f77d5a", + "zh:ba03a3a81ebc68cc452930bca9289a5feb2b0d22d7997bea7f9e59bfd89babed", + "zh:d941df409e689f3deb06f912a57f2ee36ab223e1f48d395e3d43937e62a7fbea", + "zh:eaf71e9586b98c631218a67b1f1d7295ff224ba31b0c899e88e4aa217a160116", + ] +} diff --git a/provider.tf b/provider.tf index bcfd262..65162af 100644 --- a/provider.tf +++ b/provider.tf @@ -1,18 +1,18 @@ -# terraform { -# required_providers { -# github = { -# source = "integrations/github" -# version = "~> 5.0" -# } -# } -# } +terraform { + required_providers { + github = { + source = "integrations/github" + version = "~> 5.0" + } + } +} -# provider "github" { -# owner = module.constants.org +provider "github" { + owner = module.constants.org -# app_auth { -# id = var.GITHUB_APP_ID -# installation_id = var.GITHUB_APP_INSTALLATION_ID -# pem_file = var.GITHUB_APP_PEM_FILE -# } -# } + app_auth { + id = var.GITHUB_APP_ID + installation_id = var.GITHUB_APP_INSTALLATION_ID + pem_file = var.GITHUB_APP_PEM_FILE + } +} diff --git a/variables.tf b/variables.tf index f2f6540..96bac2e 100644 --- a/variables.tf +++ b/variables.tf @@ -1,16 +1,16 @@ -# module "constants" { -# source = "./modules/constants" -# } +module "constants" { + source = "./modules/constants" +} -# variable "GITHUB_APP_ID" { -# type = string -# } +variable "GITHUB_APP_ID" { + type = string +} -# variable "GITHUB_APP_INSTALLATION_ID" { -# type = string -# } +variable "GITHUB_APP_INSTALLATION_ID" { + type = string +} -# variable "GITHUB_APP_PEM_FILE" { -# type = string -# sensitive = true -# } +variable "GITHUB_APP_PEM_FILE" { + type = string + sensitive = true +}