forked from alibabacloud-automation/terraform-alicloud-rds
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
120 lines (115 loc) · 4.1 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
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
#################
# Rds Instance
#################
output "this_db_instance_id" {
description = "Rds instance id."
value = local.this_instance_id
}
output "this_db_instance_engine" {
description = "Rds instance engine."
value = concat(alicloud_db_instance.this.*.engine, [""])[0]
}
output "this_db_instance_engine_version" {
description = "Rds instance engine version."
value = concat(alicloud_db_instance.this.*.engine_version, [""])[0]
}
output "this_db_instance_type" {
description = "Rds instance type."
value = concat(alicloud_db_instance.this.*.instance_type, [""])[0]
}
output "this_db_instance_storage" {
description = "Rds instance storage."
value = concat(alicloud_db_instance.this.*.instance_storage, [""])[0]
}
output "this_db_instance_charge_type" {
description = "Rds instance charge type."
value = concat(alicloud_db_instance.this.*.instance_charge_type, [""])[0]
}
output "this_db_instance_name" {
description = "Rds instance name."
value = concat(alicloud_db_instance.this.*.instance_name, [""])[0]
}
output "this_db_instance_period" {
description = "Rds instance charge period when Prepaid."
value = concat(alicloud_db_instance.this.*.period, [""])[0]
}
output "this_db_instance_security_ips" {
description = "Rds instance security ip list."
value = concat(alicloud_db_instance.this.*.security_ips, [""])[0]
}
output "this_db_instance_zone_id" {
description = "The zone id in which the Rds instance."
value = concat(alicloud_db_instance.this.*.zone_id, [""])[0]
}
output "this_db_instance_vswitch_id" {
description = "The vswitch id in which the Rds instance."
value = concat(alicloud_db_instance.this.*.vswitch_id, [""])[0]
}
output "this_db_instance_security_group_ids" {
description = "The security group ids in which the Rds instance."
value = alicloud_db_instance.this.*.security_group_id
}
output "this_db_instance_tags" {
description = "Rds instance tags"
value = alicloud_db_instance.this.*.tags
}
#################
# Rds instance connection
#################
output "this_db_instance_connection_string" {
description = "Rds instance public connection string"
value = concat(alicloud_db_instance.this.*.connection_string, [""])[0]
}
output "this_db_instance_port" {
description = "Rds instance public connection string"
value = concat(alicloud_db_instance.this.*.port, [""])[0]
}
output "this_db_instance_connection_ip_address" {
description = "Rds instance public connection string's ip address"
value = concat(alicloud_db_connection.db_connection.*.ip_address, [""])[0]
}
#################
# Rds database
#################
output "this_db_database_description" {
description = "Rds database description."
value = module.databases.this_database_description
}
output "this_db_database_id" {
description = "Rds database id."
value = module.databases.this_database_id
}
output "this_db_database_name" {
description = "Rds database id."
value = module.databases.this_database_name
}
#################
# Rds database account
#################
output "this_db_database_account" {
description = "Rds database account."
value = module.databases.this_database_account
}
output "this_db_database_account_privilege" {
description = "Rds database account privilege."
value = module.databases.this_database_account_privilege
}
output "this_db_database_account_type" {
description = "Rds database account type."
value = module.databases.this_database_account_type
}
#################
# Deprecated outputs
#################
output "db_instance_id" {
description = "`(Deprecated)` It has been deprecated and use `this_db_instance_id` instead."
value = local.this_instance_id
}
output "this_db_database_accountprivilege" {
description = "`(Deprecated)` It has been deprecated and use `this_db_database_account_privilege` instead."
value = local.this_instance_id
}
output "this_db_instance_instance_name" {
description = "`(Deprecated)` It has been deprecated and use `this_db_instance_name` instead."
value = local.this_instance_id
}