-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
94 lines (79 loc) · 2.25 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
provider "aws" {
allowed_account_ids = [""]
region = ""
default_tags {
tags = {
Author = ""
Purpose = ""
Env = ""
}
}
}
terraform {
backend "s3" {
bucket = ""
key = ""
region = ""
}
}
locals {
name = ""
// Place a local copy of your CloudFormation YAML Template at build_file_path
// and check it into git
build_file_path = ""
quilt_web_host = ""
}
module "quilt" {
// We recommend that you pin the module to the latest hash from the present
// repository to insulate from future module changes and simplify future `apply`s.
source = "github.com/quiltdata/iac//modules/quilt?ref=xxxxxxxx"
name = local.name
template_file = local.build_file_path
internal = false
create_new_vpc = true
cidr = ""
// Optional: initialize a new stack from an existing database
// db_snapshot_identifier = ""
// Optional: for VPCs that do not support IPV6
// db_network_type = "IPV4"
// Optional: deploy Quilt stack to an existing VPC (create_new_vpc = false)
// vpc_id = ""
// api_endpoint = ""
// intra_subnets = ["", ""]
// private_subnets = ["", ""]
// public_subnets = ["", ""]
// user_security_group = ""
// user_subnets = ["", ""]
parameters = {
AdminEmail = ""
CertificateArnELB = ""
ChunkedChecksums = "Enabled"
QuiltWebHost = local.quilt_web_host
PasswordAuth = "Enabled"
SingleSignOnProvider = "(Disabled)"
SingleSignOnClientSecret = ""
SingleSignOnDomains = ""
SingleSignOnClientId = ""
SingleSignOnBaseUrl = ""
Qurator = "Enabled"
}
}
module "cnames" {
source = "github.com/quiltdata/iac//modules/cnames"
lb_dns_name = lookup(module.quilt.stack.outputs, "LoadBalancerDNSName")
quilt_web_host = local.quilt_web_host
zone_id = ""
}
output "admin_password" {
description = "Admin password"
sensitive = true
value = module.quilt.admin_password
}
output "admin_email" {
value = lookup(module.quilt.stack.parameters, "AdminEmail")
description = "Admin email"
}
output "quilt_web_host" {
description = "Catalog URL"
value = local.quilt_web_host
}