forked from hashicorp/terraform-aws-terraform-enterprise-hvd
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoutputs.tf
More file actions
81 lines (68 loc) · 2.91 KB
/
outputs.tf
File metadata and controls
81 lines (68 loc) · 2.91 KB
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
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
#------------------------------------------------------------------------------
# TFE URLs
#------------------------------------------------------------------------------
output "tfe_url" {
value = "https://${var.tfe_fqdn}"
description = "URL to access TFE application based on value of `tfe_fqdn` input."
}
output "lb_dns_name" {
value = var.lb_type == "alb" ? aws_lb.alb[0].dns_name : aws_lb.nlb[0].dns_name
description = "DNS name of the Load Balancer."
}
#------------------------------------------------------------------------------
# Database
#------------------------------------------------------------------------------
output "tfe_database_host" {
value = "${aws_rds_cluster.tfe.endpoint}:5432"
description = "PostgreSQL server endpoint in the format that TFE will connect to."
}
output "rds_aurora_global_cluster_id" {
value = try(aws_rds_global_cluster.tfe[0].id, null)
description = "RDS Aurora global database cluster identifier."
}
output "rds_aurora_cluster_arn" {
value = aws_rds_cluster.tfe.arn
description = "ARN of RDS Aurora database cluster."
depends_on = [aws_rds_cluster_instance.tfe]
}
output "rds_aurora_cluster_members" {
value = aws_rds_cluster.tfe.cluster_members
description = "List of instances that are part of this RDS Aurora database cluster."
depends_on = [aws_rds_cluster_instance.tfe]
}
output "rds_aurora_cluster_endpoint" {
value = aws_rds_cluster.tfe.endpoint
description = "RDS Aurora database cluster endpoint."
}
#------------------------------------------------------------------------------
# Object storage
#------------------------------------------------------------------------------
output "s3_bucket_name" {
value = aws_s3_bucket.tfe.id
description = "Name of TFE S3 bucket."
}
output "s3_bucket_arn" {
value = aws_s3_bucket.tfe.arn
description = "ARN of TFE S3 bucket."
}
output "s3_crr_iam_role_arn" {
value = try(aws_iam_role.s3_crr[0].arn, null)
description = "ARN of S3 cross-region replication IAM role."
}
#------------------------------------------------------------------------------
# Redis
#------------------------------------------------------------------------------
output "elasticache_replication_group_arn" {
value = try(aws_elasticache_replication_group.redis_cluster[0].arn, null)
description = "ARN of ElastiCache Replication Group (Redis) cluster."
}
output "elasticache_replication_group_id" {
value = try(aws_elasticache_replication_group.redis_cluster[0].id, null)
description = "ID of ElastiCache Replication Group (Redis) cluster."
}
output "elasticache_replication_group_primary_endpoint_address" {
value = try(aws_elasticache_replication_group.redis_cluster[0].primary_endpoint_address, null)
description = "Primary endpoint address of ElastiCache Replication Group (Redis) cluster."
}