-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutput.tf
122 lines (103 loc) · 3.92 KB
/
output.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
// IAM outputs
output "power_user_role" {
value = data.aws_iam_role.power_user
}
output "power_builder_role" {
value = data.aws_iam_role.power_builder
}
output "power_builder_policies" {
value = [data.aws_iam_policy.power_builder, data.aws_iam_policy.power]
}
output "role_permissions_boundary" {
value = local.role_permission_boundary_arn != null ? data.aws_iam_policy.role_permission_boundary[0] : null
}
output "user_permissions_boundary" {
value = local.user_permission_boundary_arn != null ? data.aws_iam_policy.user_permission_boundary[0] : null
}
output "github_oidc_provider" {
value = local.github_oidc_arn != null ? data.aws_iam_openid_connect_provider.github_actions[0] : null
}
// VPC outputs
output "vpc" {
value = data.aws_vpc.vpc
}
output "private_subnet_ids" {
value = local.private_a_subnet_id != null ? [data.aws_subnet.private_a[0].id, data.aws_subnet.private_b[0].id] : null
}
output "public_subnet_ids" {
value = local.public_a_subnet_id != null ? [data.aws_subnet.public_a[0].id, data.aws_subnet.public_b[0].id] : null
}
output "data_subnet_ids" {
value = local.data_a_subnet_id != null ? [data.aws_subnet.data_a[0].id, data.aws_subnet.data_b[0].id] : null
}
output "private_subnets" {
value = local.private_a_subnet_id != null ? [data.aws_subnet.private_a[0], data.aws_subnet.private_b[0]] : null
}
output "public_subnets" {
value = local.public_a_subnet_id != null ? [data.aws_subnet.public_a[0], data.aws_subnet.public_b[0]] : null
}
output "data_subnets" {
value = local.data_a_subnet_id != null ? [data.aws_subnet.data_a[0], data.aws_subnet.data_b[0]] : null
}
// DNS outputs
output "route53_zone" {
value = local.zone_id != null ? data.aws_route53_zone.zone[0] : null
}
output "certificate" {
value = local.zone_id != null ? data.aws_acm_certificate.cert[0] : null
}
output "certificate_virginia" {
value = local.zone_id != null ? data.aws_acm_certificate.virginia[0] : null
}
// RDS outputs
output "db_subnet_group_name" {
// Terraform didn't used to have a data accessor for this, so the best we could do was return the name
// Keeping for backwards compatibility
value = data.aws_db_subnet_group.db_subnet_group.name
}
output "db_subnet_group" {
value = data.aws_db_subnet_group.db_subnet_group
}
//Elasticache outputs
output "elasticache_subnet_group_name" {
// Terraform doesn't have a data accessor for this, so the best we can do is return the name
value = "${local.vpc_name}-elasticache-subnet-group"
}
// Security Group outputs
output "ssh_rdp_security_group" {
value = data.aws_security_group.ssh_rdp
}
output "oracle_security_group" {
value = local.oracle_security_group_id != null ? data.aws_security_group.oracle[0] : null
}
output "alation_security_group" {
value = local.alation_security_group_id != null ? data.aws_security_group.alation[0] : null
}
output "dremio_security_group" {
value = local.dremio_security_group_id != null ? data.aws_security_group.dremio[0] : null
}
output "globalprotect_security_group" {
value = local.globalprotect_security_group_id != null ? data.aws_security_group.globalprotect[0] : null
}
output "informatica_security_group" {
value = local.informatica_security_group_id != null ? data.aws_security_group.informatica[0] : null
}
output "tyk_security_group" {
value = local.tyk_security_group_id != null ? data.aws_security_group.tyk[0] : null
}
// Integration token outputs
output "github_token" {
value = local.github_token # there's no data source, so no need for the null check
}
output "humio_dev_token" {
value = local.humio_dev_token # there's no data source, so no need for the null check
}
output "humio_prd_token" {
value = local.humio_prd_token # there's no data source, so no need for the null check
}
output "humio_dev_endpoint" {
value = local.humio_dev_endpoint # there's no data source, so no need for the null check
}
output "humio_prd_endpoint" {
value = local.humio_prd_endpoint # there's no data source, so no need for the null check
}