File tree Expand file tree Collapse file tree 3 files changed +3
-11
lines changed
examples/safer_cluster_iap_bastion Expand file tree Collapse file tree 3 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -19,13 +19,6 @@ locals {
1919 bastion_zone = format (" %s-a" , var. region )
2020}
2121
22- data "template_file" "startup_script" {
23- template = <<- EOF
24- sudo apt-get update -y
25- sudo apt-get install -y tinyproxy
26- EOF
27- }
28-
2922module "bastion" {
3023 source = " terraform-google-modules/bastion-host/google"
3124 version = " ~> 5.0"
@@ -38,7 +31,7 @@ module "bastion" {
3831 zone = local. bastion_zone
3932 image_project = " debian-cloud"
4033 machine_type = " g1-small"
41- startup_script = data . template_file . startup_script . rendered
34+ startup_script = templatefile ( " ${ path . module } /templates/startup-script.tftpl " , {})
4235 members = var. bastion_members
4336 shielded_vm = " false"
4437}
Original file line number Diff line number Diff line change 1+ sudo apt- get update - y
2+ sudo apt- get install - y tinyproxy
Original file line number Diff line number Diff line change @@ -27,9 +27,6 @@ terraform {
2727 kubernetes = {
2828 source = " hashicorp/kubernetes"
2929 }
30- template = {
31- source = " hashicorp/template"
32- }
3330 }
3431 required_version = " >= 0.13"
3532}
You can’t perform that action at this time.
0 commit comments