-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathoutputs.tf
More file actions
28 lines (23 loc) · 822 Bytes
/
outputs.tf
File metadata and controls
28 lines (23 loc) · 822 Bytes
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
#
# Module: tf_aws_redshift
#
# Output the ID of the Redshift cluster
output "redshift_cluster_id" {
value = "${aws_redshift_cluster.main_redshift_cluster.id}"
}
# Output address (hostname) of the Redshift cluster
output "redshift_cluster_address" {
value = "${replace(aws_redshift_cluster.main_redshift_cluster.endpoint, format(":%s", aws_redshift_cluster.main_redshift_cluster.port), "")}"
}
# Output endpoint (hostname:port) of the Redshift cluster
output "redshift_cluster_endpoint" {
value = "${aws_redshift_cluster.main_redshift_cluster.endpoint}"
}
# Output the ID of the Subnet Group
output "subnet_group_id" {
value = "${aws_redshift_subnet_group.main_redshift_subnet_group.id}"
}
# Output DB security group ID
output "security_group_id" {
value = "${aws_security_group.main_redshift_access.id}"
}