1
0
mirror of synced 2025-12-29 09:00:13 -05:00

Delete sandbox

This commit is contained in:
Petri Autero
2019-02-05 19:36:09 +02:00
parent 54f260786a
commit 065249b964

View File

@@ -1,45 +0,0 @@
provider "google-beta" {
region = "${var.region}"
}
variable "region" {
default = "europe-north1"
}
variable "project" {
default = "petri-sandbox"
}
variable "endpoints" {
type = "list"
default = ["192.168.11.1", "192.168.11.2"]
}
data "template_file" "single_ip" {
count = "${length(var.endpoints)}"
template = <<YAML
{
name = "$${name}"
value = "$${val}"
}
YAML
vars {
name = "network-${count.index}"
val = "${var.endpoints[count.index]}"
}
}
output "demo" {
value = "${data.template_file.ip_configuration.rendered}"
}
data "template_file" "ip_configuration" {
template = <<YAML
authorized_endpoints = [
$${cidrs}
]
YAML
vars {
cidrs = "${join(",", var.endpoints)}"
}
}