-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbanyan.tf
35 lines (33 loc) · 1.18 KB
/
banyan.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
terraform {
required_providers {
banyan = {
source = "banyansecurity/banyan"
version = ">=1.2.0"
}
}
}
resource "banyan_accesstier" "accesstier" {
name = var.name
address = google_compute_address.external.address
cluster = var.cluster
disable_snat = var.disable_snat
src_nat_cidr_range = var.src_nat_cidr_range
api_key_id = banyan_api_key.accesstier.id
tunnel_private_domains = var.tunnel_private_domains
tunnel_cidrs = var.tunnel_cidrs
console_log_level = var.console_log_level
file_log_level = var.file_log_level
file_log = var.file_log
log_num = var.log_num
log_size = var.log_size
statsd_address = var.statsd_address
events_rate_limiting = var.events_rate_limiting
event_key_rate_limiting = var.event_key_rate_limiting
forward_trust_cookie = var.forward_trust_cookie
enable_hsts = var.enable_hsts
}
resource "banyan_api_key" "accesstier" {
name = "${var.name}-key"
description = "API key for ${var.name} access tier"
scope = "access_tier"
}