-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathmain.tf
37 lines (32 loc) · 1.06 KB
/
main.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
36
37
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
resource "random_pet" "main" {
length = 1
}
# Store TFE License as secret
# ---------------------------
module "secrets" {
source = "../../fixtures/secrets"
license = {
id = random_pet.main.id
path = var.license_file
}
}
# TFE installation into an existing network
# -----------------------------------------
module "existing_network" {
source = "../../"
distribution = "ubuntu"
dns_zone_name = var.dns_zone_name
existing_service_account_id = var.existing_service_account_id
fqdn = var.fqdn
labels = var.labels
load_balancer = "PUBLIC"
namespace = var.namespace
network = var.network
node_count = var.node_count
ssl_certificate_name = var.ssl_certificate_name
subnetwork = var.subnetwork
tfe_license_secret_id = module.secrets.license_secret
vm_machine_type = "n1-standard-32"
}