Skip to content

Commit

Permalink
Removing deprecated provider
Browse files Browse the repository at this point in the history
  • Loading branch information
REDMOND\sdeguchi committed Sep 11, 2024
1 parent 54746c5 commit ea203fe
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 10 deletions.
5 changes: 0 additions & 5 deletions modules/template_architecture_definition/data.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
data "template_file" "populated_architecture_definition_json" {
template = file(local.template_file_path)
vars = local.template_vars
}

data "local_file" "custom_architecture_definition_json" {
count = local.has_custom_architecture_definition ? 1 : 0
filename = var.architecture_definition_path
Expand Down
2 changes: 2 additions & 0 deletions modules/template_architecture_definition/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,6 @@ locals {
confidential_corp_archetypes = join(", ", local.confidential_corp)
confidential_online_archetypes = join(", ", local.confidential_online)
}

template_file = templatefile(local.template_file_path, local.template_vars)
}
2 changes: 1 addition & 1 deletion modules/template_architecture_definition/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
output "architecture_definition_json" {
value = local.has_custom_architecture_definition ? data.local_file.custom_architecture_definition_json[0].content : data.template_file.populated_architecture_definition_json.rendered
value = local.has_custom_architecture_definition ? data.local_file.custom_architecture_definition_json[0].content : local.template_file
}
4 changes: 0 additions & 4 deletions modules/template_architecture_definition/terraform.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
terraform {
required_providers {
template = {
source = "hashicorp/template"
version = "~> 2.2"
}
local = {
source = "hashicorp/local"
version = "~> 2.4"
Expand Down

0 comments on commit ea203fe

Please sign in to comment.