forked from cloudposse/terraform-aws-rds-db-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
64 lines (52 loc) · 2.27 KB
/
outputs.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
output "proxy_id" {
value = join("", aws_db_proxy.this[*].id)
description = "Proxy ID"
}
output "proxy_arn" {
value = join("", aws_db_proxy.this[*].arn)
description = "Proxy ARN"
}
output "proxy_endpoint" {
value = join("", aws_db_proxy.this[*].endpoint)
description = "Proxy endpoint"
}
output "proxy_target_endpoint" {
value = join("", aws_db_proxy_target.this[*].endpoint)
description = "Hostname for the target RDS DB Instance. Only returned for `RDS_INSTANCE` type"
}
output "proxy_target_id" {
value = join("", aws_db_proxy_target.this[*].id)
description = "Identifier of `db_proxy_name`, `target_group_name`, `target type` (e.g. `RDS_INSTANCE` or `TRACKED_CLUSTER`), and resource identifier separated by forward slashes (`/`)"
}
output "proxy_target_port" {
value = join("", aws_db_proxy_target.this[*].port)
description = "Port for the target RDS DB instance or Aurora DB cluster"
}
output "proxy_target_rds_resource_id" {
value = join("", aws_db_proxy_target.this[*].rds_resource_id)
description = "Identifier representing the DB instance or DB cluster target"
}
output "proxy_target_target_arn" {
value = join("", aws_db_proxy_target.this[*].target_arn)
description = "Amazon Resource Name (ARN) for the DB instance or DB cluster"
}
output "proxy_target_tracked_cluster_id" {
value = join("", aws_db_proxy_target.this[*].tracked_cluster_id)
description = "DB Cluster identifier for the DB instance target. Not returned unless manually importing an `RDS_INSTANCE` target that is part of a DB cluster"
}
output "proxy_target_type" {
value = join("", aws_db_proxy_target.this[*].type)
description = "Type of target. e.g. `RDS_INSTANCE` or `TRACKED_CLUSTER`"
}
output "proxy_default_target_group_arn" {
value = join("", aws_db_proxy_default_target_group.this[*].arn)
description = "The Amazon Resource Name (ARN) representing the default target group"
}
output "proxy_default_target_group_name" {
value = join("", aws_db_proxy_default_target_group.this[*].name)
description = "The name of the default target group"
}
output "proxy_iam_role_arn" {
value = local.iam_role_arn
description = "The ARN of the IAM role that the proxy uses to access secrets in AWS Secrets Manager"
}