Skip to content

Commit

Permalink
chore: remove deprecated hashicorp/template from module examples (ter…
Browse files Browse the repository at this point in the history
…raform-google-modules#1621)

Signed-off-by: Julien Leloup <[email protected]>
  • Loading branch information
jleloup authored May 10, 2023
1 parent fc2016f commit 434e871
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
9 changes: 1 addition & 8 deletions examples/safer_cluster_iap_bastion/bastion.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@ locals {
bastion_zone = format("%s-a", var.region)
}

data "template_file" "startup_script" {
template = <<-EOF
sudo apt-get update -y
sudo apt-get install -y tinyproxy
EOF
}

module "bastion" {
source = "terraform-google-modules/bastion-host/google"
version = "~> 5.0"
Expand All @@ -38,7 +31,7 @@ module "bastion" {
zone = local.bastion_zone
image_project = "debian-cloud"
machine_type = "g1-small"
startup_script = data.template_file.startup_script.rendered
startup_script = templatefile("${path.module}/templates/startup-script.tftpl", {})
members = var.bastion_members
shielded_vm = "false"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sudo apt-get update -y
sudo apt-get install -y tinyproxy
3 changes: 0 additions & 3 deletions examples/safer_cluster_iap_bastion/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ terraform {
kubernetes = {
source = "hashicorp/kubernetes"
}
template = {
source = "hashicorp/template"
}
}
required_version = ">= 0.13"
}

0 comments on commit 434e871

Please sign in to comment.