-
Notifications
You must be signed in to change notification settings - Fork 5
/
outputs.tf
120 lines (97 loc) · 3.67 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
output "enhanced_monitoring_iam_role_name" {
description = "The name of the monitoring role"
value = try(aws_iam_role.enhanced_monitoring[0].name, "")
}
output "enhanced_monitoring_iam_role_arn" {
description = "The Amazon Resource Name (ARN) specifying the monitoring role"
value = try(aws_iam_role.enhanced_monitoring[0].arn, "")
}
output "db_instance_address" {
description = "The address of the RDS instance"
value = try(aws_db_instance.this[0].address, "")
}
output "db_instance_arn" {
description = "The ARN of the RDS instance"
value = try(aws_db_instance.this[0].arn, "")
}
output "db_instance_availability_zone" {
description = "The availability zone of the RDS instance"
value = try(aws_db_instance.this[0].availability_zone, "")
}
output "db_instance_endpoint" {
description = "The connection endpoint"
value = try(aws_db_instance.this[0].endpoint, "")
}
output "db_instance_engine" {
description = "The database engine"
value = try(aws_db_instance.this[0].engine, "")
}
output "db_instance_hosted_zone_id" {
description = "The canonical hosted zone ID of the DB instance (to be used in a Route 53 Alias record)"
value = try(aws_db_instance.this[0].hosted_zone_id, "")
}
output "db_instance_id" {
description = "The RDS instance ID"
value = try(aws_db_instance.this[0].id, "")
}
output "db_instance_resource_id" {
description = "The RDS Resource ID of this instance"
value = try(aws_db_instance.this[0].resource_id, "")
}
output "db_instance_status" {
description = "The RDS instance status"
value = try(aws_db_instance.this[0].status, "")
}
output "db_instance_name" {
description = "The database name"
value = try(aws_db_instance.this[0].db_name, "")
}
output "db_instance_username" {
description = "The master username for the database"
value = try(aws_db_instance.this[0].username, "")
sensitive = true
}
output "db_instance_port" {
description = "The database port"
value = try(aws_db_instance.this[0].port, "")
}
output "db_instance_ca_cert_identifier" {
description = "Specifies the identifier of the CA certificate for the DB instance"
value = try(aws_db_instance.this[0].ca_cert_identifier, "")
}
output "db_instance_domain" {
description = "The ID of the Directory Service Active Directory domain the instance is joined to"
value = try(aws_db_instance.this[0].domain, "")
}
output "db_instance_domain_iam_role_name" {
description = "The name of the IAM role to be used when making API calls to the Directory Service. "
value = try(aws_db_instance.this[0].domain_iam_role_name, "")
}
output "db_instance_password" {
description = "The master password"
value = try(aws_db_instance.this[0].password, "")
sensitive = true
}
################################################################################
# CloudWatch Log Group
################################################################################
output "db_instance_cloudwatch_log_groups" {
description = "Map of CloudWatch log groups created and their attributes"
value = aws_cloudwatch_log_group.this
}
output "db_parameter_group_id" {
description = "The db parameter group id"
value = try(aws_db_parameter_group.this[0].id, "")
}
output "db_parameter_group_arn" {
description = "The ARN of the db parameter group"
value = try(aws_db_parameter_group.this[0].arn, "")
}
output "db_subnet_group_id" {
description = "The db subnet group name"
value = try(aws_db_subnet_group.this[0].id, "")
}
output "db_subnet_group_name" {
description = "The db subnet group name"
value = try(aws_db_subnet_group.this[0].name, "")
}