Skip to content

Commit

Permalink
Explicitly require Terraform and provider versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jmfontaine committed Jun 9, 2023
1 parent 27a190f commit 79127dd
Show file tree
Hide file tree
Showing 6 changed files with 126 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.terraform
.terraform.lock.hcl
terraform.tfstate*
*.tfvars
!*.example.tfvars
Expand Down
59 changes: 59 additions & 0 deletions exporters/tfc/.terraform.lock.hcl

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

19 changes: 19 additions & 0 deletions exporters/tfc/main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
terraform {
required_version = "~> 1.2"

required_providers {
local = {
source = "hashicorp/local"
version = "~> 2.4.0"
}
null = {
source = "hashicorp/null"
version = "~> 3.2.1"
}
tfe = {
source = "hashicorp/tfe"
version = "~> 0.45.0"
}
}
}

locals {
stack_ids = [for i, v in data.tfe_workspace_ids.all.ids : v]
stack_names = [for i, v in data.tfe_workspace_ids.all.ids : i]
Expand Down
21 changes: 21 additions & 0 deletions generator/.terraform.lock.hcl

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

11 changes: 11 additions & 0 deletions generator/main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
terraform {
required_version = "~> 1.2"

required_providers {
local = {
source = "hashicorp/local"
version = "~> 2.4.0"
}
}
}

locals {
# Use custom template file, if present
template_file = fileexists("${path.module}/../generator.tftpl") ? "${path.module}/../generator.tftpl" : "${path.module}/generator.tftpl"
Expand Down
16 changes: 16 additions & 0 deletions manager-stack/.terraform.lock.hcl

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

0 comments on commit 79127dd

Please sign in to comment.