-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
79 lines (65 loc) · 2.47 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
output "region" {
value = local.region
description = "string ||| The AWS Region that this instance is deployed"
}
output "db_instance_arn" {
value = aws_db_instance.this.arn
description = "string ||| ARN of the Postgres instance"
}
output "db_instance_id" {
value = aws_db_instance.this.id
description = "string ||| ID of the Postgres instance"
}
output "db_master_secret_name" {
value = aws_secretsmanager_secret.password.name
description = "string ||| The name of the secret in AWS Secrets Manager containing the password"
}
output "db_endpoint" {
value = aws_db_instance.this.endpoint
description = "string ||| The endpoint URL to access the Postgres instance."
}
output "db_security_group_id" {
value = aws_security_group.this.id
description = "string ||| The ID of the security group attached to the Postgres instance."
}
output "db_admin_function_name" {
value = module.db_admin.function_name
description = "string ||| AWS Lambda Function name for database admin utility"
}
output "db_admin_function_url" {
value = module.db_admin.function_url
description = "string ||| AWS Lambda Function url for database admin utility"
}
output "db_admin_version" {
value = "0.7"
description = "string ||| The version number of the pg-db-admin utility"
}
output "db_admin_invoker" {
value = module.db_admin.invoker
description = "object({ name: string, access_key: string, secret_key: string }) ||| IAM User with explicit permissions to invoke db admin lambda function."
sensitive = true
}
output "db_log_group" {
value = aws_cloudwatch_log_group.this.name
description = "string ||| The name of the Cloudwatch Log Group where postgresql logs are emitted for the DB Instance"
}
output "db_upgrade_log_group" {
value = aws_cloudwatch_log_group.upgrade.name
description = "string ||| The name of the Cloudwatch Log Group where upgrade logs are emitted for the DB Instance"
}
output "metrics_provider" {
value = "cloudwatch"
description = "string ||| "
}
output "metrics_reader" {
value = {
name = aws_iam_user.log_reader.name
access_key = aws_iam_access_key.log_reader.id
secret_key = aws_iam_access_key.log_reader.secret
}
description = "object({ name: string, access_key: string, secret_key: string }) ||| An AWS User with explicit privilege to read metrics from Cloudwatch."
sensitive = true
}
output "metrics_mappings" {
value = local.metrics_mappings
}