Commit eca169b6 authored by Craig Furman's avatar Craig Furman

Upgrade CI to terraform 0.12

parent 337f4ff1
resource "google_compute_firewall" "block_miners" {
name = "block-miners"
direction = "EGRESS"
network = "${var.network}"
network = var.network
priority = 1000
target_tags = ["docker-machine"]
destination_ranges = ["${var.miner_ips}"]
destination_ranges = var.miner_ips
deny {
protocol = "all"
......@@ -15,7 +15,7 @@ resource "google_compute_firewall" "block_miners" {
resource "google_compute_firewall" "docker_machine_deny_ingress" {
name = "docker-machine-block-ingress"
direction = "INGRESS"
network = "${var.network}"
network = var.network
priority = 65500
target_tags = ["docker-machine"]
......@@ -29,7 +29,7 @@ resource "google_compute_firewall" "docker_machine_deny_ingress" {
resource "google_compute_firewall" "docker_machines" {
name = "docker-machines"
direction = "INGRESS"
network = "${var.network}"
network = var.network
priority = 1000
target_tags = ["docker-machine"]
......@@ -44,7 +44,7 @@ resource "google_compute_firewall" "docker_machines" {
resource "google_compute_firewall" "prometheus" {
name = "prometheus"
direction = "INGRESS"
network = "${var.network}"
network = var.network
priority = 1000
source_ranges = [
......@@ -72,7 +72,7 @@ resource "google_compute_firewall" "prometheus" {
resource "google_compute_firewall" "runners_cache" {
name = "runners-cache"
direction = "INGRESS"
network = "${var.network}"
network = var.network
priority = 1000
source_ranges = ["174.138.71.155/32"]
......@@ -88,7 +88,7 @@ resource "google_compute_firewall" "thanos" {
name = "thanos"
description = "Prometheus Thanos access"
direction = "INGRESS"
network = "${var.network}"
network = var.network
priority = 1000
target_tags = ["prometheus-server"]
......@@ -112,7 +112,7 @@ resource "google_compute_firewall" "thanos" {
resource "google_compute_firewall" "windows_autoscaled_runner" {
name = "windows-autoscaled-runner"
direction = "INGRESS"
network = "${var.network}"
network = var.network
priority = 1000
target_tags = ["windows-autoscaled-runner"]
......@@ -123,3 +123,4 @@ resource "google_compute_firewall" "windows_autoscaled_runner" {
ports = [5985, 3389]
}
}
......@@ -7,7 +7,8 @@ terraform {
}
provider "google" {
project = "${var.project}"
region = "${var.region}"
project = var.project
region = var.region
version = "~> 2.12.0"
}
......@@ -12,6 +12,7 @@ variable "network" {
# See 1password
variable "miner_ips" {
type = "list"
type = list(string)
default = []
}
terraform {
required_version = ">= 0.12"
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment