|
1 | 1 | output "proxy_id" { |
2 | | - value = aws_db_proxy.this.id |
| 2 | + value = join("", aws_db_proxy.this[*].id) |
3 | 3 | description = "Proxy ID" |
4 | 4 | } |
5 | 5 |
|
6 | 6 | output "proxy_arn" { |
7 | | - value = aws_db_proxy.this.arn |
| 7 | + value = join("", aws_db_proxy.this[*].arn) |
8 | 8 | description = "Proxy ARN" |
9 | 9 | } |
10 | 10 |
|
11 | 11 | output "proxy_endpoint" { |
12 | | - value = aws_db_proxy.this.endpoint |
| 12 | + value = join("", aws_db_proxy.this[*].endpoint) |
13 | 13 | description = "Proxy endpoint" |
14 | 14 | } |
15 | 15 |
|
16 | 16 | output "proxy_target_endpoint" { |
17 | | - value = aws_db_proxy_target.this.endpoint |
| 17 | + value = join("", aws_db_proxy_target.this[*].endpoint) |
18 | 18 | description = "Hostname for the target RDS DB Instance. Only returned for `RDS_INSTANCE` type" |
19 | 19 | } |
20 | 20 |
|
21 | 21 | output "proxy_target_id" { |
22 | | - value = aws_db_proxy_target.this.id |
| 22 | + value = join("", aws_db_proxy_target.this[*].id) |
23 | 23 | 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 (`/`)" |
24 | 24 | } |
25 | 25 |
|
26 | 26 | output "proxy_target_port" { |
27 | | - value = aws_db_proxy_target.this.port |
| 27 | + value = join("", aws_db_proxy_target.this[*].port) |
28 | 28 | description = "Port for the target RDS DB instance or Aurora DB cluster" |
29 | 29 | } |
30 | 30 |
|
31 | 31 | output "proxy_target_rds_resource_id" { |
32 | | - value = aws_db_proxy_target.this.rds_resource_id |
| 32 | + value = join("", aws_db_proxy_target.this[*].rds_resource_id) |
33 | 33 | description = "Identifier representing the DB instance or DB cluster target" |
34 | 34 | } |
35 | 35 |
|
36 | 36 | output "proxy_target_target_arn" { |
37 | | - value = aws_db_proxy_target.this.target_arn |
| 37 | + value = join("", aws_db_proxy_target.this[*].target_arn) |
38 | 38 | description = "Amazon Resource Name (ARN) for the DB instance or DB cluster" |
39 | 39 | } |
40 | 40 |
|
41 | 41 | output "proxy_target_tracked_cluster_id" { |
42 | | - value = aws_db_proxy_target.this.tracked_cluster_id |
| 42 | + value = join("", aws_db_proxy_target.this[*].tracked_cluster_id) |
43 | 43 | 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" |
44 | 44 | } |
45 | 45 |
|
46 | 46 | output "proxy_target_type" { |
47 | | - value = aws_db_proxy_target.this.type |
| 47 | + value = join("", aws_db_proxy_target.this[*].type) |
48 | 48 | description = "Type of target. e.g. `RDS_INSTANCE` or `TRACKED_CLUSTER`" |
49 | 49 | } |
50 | 50 |
|
51 | 51 | output "proxy_default_target_group_arn" { |
52 | | - value = aws_db_proxy_default_target_group.this.arn |
| 52 | + value = join("", aws_db_proxy_default_target_group.this[*].arn) |
53 | 53 | description = "The Amazon Resource Name (ARN) representing the default target group" |
54 | 54 | } |
55 | 55 |
|
56 | 56 | output "proxy_default_target_group_name" { |
57 | | - value = aws_db_proxy_default_target_group.this.name |
| 57 | + value = join("", aws_db_proxy_default_target_group.this[*].name) |
58 | 58 | description = "The name of the default target group" |
59 | 59 | } |
60 | 60 |
|
|
0 commit comments